GithubHelp home page GithubHelp logo

train problem about deblurganv2 HOT 3 OPEN

vita-group avatar vita-group commented on August 11, 2024
train problem

from deblurganv2.

Comments (3)

Sandbox3aster avatar Sandbox3aster commented on August 11, 2024

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.

Sid-XXD avatar Sid-XXD commented on August 11, 2024

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.

MelodeLi avatar MelodeLi commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.