Comments (3)
How did you arrange you data? The error indicate there is no available image under under one of the folders. Did you make sure folder ./datasets/train/blur/ & ./datasets/train/sharp/, ./datasets/test/blur/ & ./datasets/test/sharp/ has the same amount of images?
from deblurganv2.
hello, when i run the train.py,there is a mistake.How can i solve the problem? I0318 16:56:19.757143 8820 dataset.py:28] Subsampling buckets from 0 to 90.0, total buckets number is 100 I0318 16:56:19.757143 8820 dataset.py:71] Dataset has been created with 18 samples I0318 16:56:19.762583 8820 dataset.py:28] Subsampling buckets from 90.0 to 100, total buckets number is 100 Traceback (most recent call last): File "train.py", line 179, in train, val = map(get_dataloader, datasets) File "E:\DeblurGANv2\dataset.py", line 133, in from_config files_a, files_b = map(list, zip(*data)) ValueError: not enough values to unpack (expected 2, got 0)
and train: files_a: ./datasets/train/blur/.png files_b: ./datasets/train/sharp/.png val: files_a: ./datasets/test/blur/.png files_b: ./datasets/test/sharp/.png
hi, I also meet this error.
''ValueError: not enough values to unpack (expected 2, got 0)''
Have you solve this error?
thanks
from deblurganv2.
hello, when i run the train.py,there is a mistake.
I0927 12:52:07.228861 10180 dataset.py:28] Subsampling buckets from 0 to 90.0, total buckets number is 100
I0927 12:52:07.233865 10180 dataset.py:71] Dataset has been created with 1892 samples
I0927 12:52:07.259889 10180 dataset.py:28] Subsampling buckets from 90.0 to 100, total buckets number is 100
I0927 12:52:07.262892 10180 dataset.py:71] Dataset has been created with 211 samples
Epoch 0, lr 0.01: 0%| | 0/1000 [00:00<?, ?it/s]
Traceback (most recent call last):
File "D:/lxh/DeblurGANv2-master/train.py", line 194, in
Fire(main)
File "E:\anaconda3\envs\pytorch\lib\site-packages\fire\core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "E:\anaconda3\envs\pytorch\lib\site-packages\fire\core.py", line 471, in _Fire
target=component.name)
File "E:\anaconda3\envs\pytorch\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "D:/lxh/DeblurGANv2-master/train.py", line 190, in main
trainer.train()
File "D:/lxh/DeblurGANv2-master/train.py", line 41, in train
self._run_epoch(epoch)
File "D:/lxh/DeblurGANv2-master/train.py", line 66, in _run_epoch
for data in tq:
File "E:\anaconda3\envs\pytorch\lib\site-packages\tqdm\std.py", line 1180, in iter
for obj in iterable:
File "E:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 521, in next
data = self._next_data()
File "E:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 561, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "E:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\lxh\DeblurGANv2-master\dataset.py", line 111, in getitem
a, b = self.transform_fn(a, b)
File "D:\lxh\DeblurGANv2-master\aug.py", line 26, in process
return r['image'], r['sharp']
KeyError: 'sharp'
from deblurganv2.
Related Issues (20)
- Run in Linux error: RuntimeError: cuDNN error: CUDNN_STATUS_BAD_PARAM HOT 1
- How to organize train data?
- Why subsampling buckets
- The points in deblur image are all splited into two
- Is the best model on GOPRO dataset is trained on 256x256 image size or 1280x720 ? HOT 1
- Code fails due to certificate issue with server. HOT 3
- predict.py HOT 3
- how
- how to convert the model to onnx? HOT 3
- url error while running the predict.py ssl certificate error HOT 2
- The command of changing the backbone network
- get the blur estimation value?
- predict.py performs 0 iterations HOT 1
- Certificate issue HOT 4
- I have this problems!win_size exceeds image extent. Either ensure that your images are at least 7x7; HOT 3
- Cannot use predict.py on my dataset
- The imagecolor was changed ? why ? my mistake HOT 1
- Missing Discriminator Weights for pretraining HOT 1
- 模型训练不收敛,loss一直震荡。
- Fixing Security Bugs
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 deblurganv2.