Comments (1)
The same image in different sets has the same name. However, the image format of 'train' is '.jpg', while the others are '.png'. So you need to turn the '.png' files into '.jpg' files. Otherwise, OpenCV can't find you low light images, and return TypeError. (your code can't open your low light datasets image)
Here's the code to modify the file type,
import os
file_path = r"..\train_dark"
files = os.listdir(file_path)
for file in files:
if file.endswith('png'):
src = os.path.join(file_path, file)
r_name = file.split('.')[0] + '.jpg'
dct = os.path.join(r"..\train_dark", r_name)
os.rename(src, dct)
from mbllen.
Related Issues (20)
- 关于网络输出结果 HOT 1
- Dataset HOT 4
- When deos video vision come ? HOT 3
- AttributeError: 'str' object has no attribute 'decode' HOT 1
- How long for training HOT 2
- is the code gray_fake_B define false?
- 训练数据集问题 HOT 1
- GPU or CPU HOT 2
- 数据集问题 HOT 1
- Any plan on releasing the video version ?
- ValueError: unsupported format character ',' (0x2c) at index 42
- the code for calculating variety of different metrics, including AB,VIF,LOE,TMQI HOT 1
- pytorch
- 似乎region loss部分存在错误
- Allocation of 509607936 exceeds 10% of free system memory. HOT 3
- 跑通代码? HOT 5
- Training won't initiate HOT 1
- MBLLVEN
- Running speed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbllen.