Code Monkey home page Code Monkey logo

Comments (4)

AllenIrving avatar AllenIrving commented on July 18, 2024 6

Hi there. I've been reading the paper and tried to understand the codes as well. Here is what I think.
First, the Rain800 contains the training dataset and the validation dataset. The folder named "test_syn" containing 100 images should be the validation dataset. So you could rename it to "val".
Then, you may need to download the Rain100H dataset(http://www.icst.pku.edu.cn/struct/Projects/joint_rain_removal.html). This is actually the testing dataset. After that, you may want to create a new folder named "test" under your dataset folder "rain". Then take 100 rainy images from the Rain100H and move them to the "test" folder.
I think that is all in terms of preparing the dataset. Hope it can help.

from rescan.

SherlockSunset avatar SherlockSunset commented on July 18, 2024

Hello,
when I was runing the codes as "test", that is: python main.py --action test
it raised one error like this:
2018-09-05 17:28:12,461 - INFO - set log dir as ../logdir
2018-09-05 17:28:12,461 - INFO - set model dir as ../models
Traceback (most recent call last):
File "main.py", line 229, in
run_test(args.model)
File "main.py", line 205, in run_test
for i, batch in enumerate(dt):
File "C:\Users\pengx\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\utils\data\dataloader.py", line 314, in next
batch = self.collate_fn([self.dataset[i] for i in indices]) ###
File "C:\Users\pengx\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\utils\data\dataloader.py", line 184, in default_collate
return {key: default_collate([d[key] for d in batch]) for key in batch[0]}
File "C:\Users\pengx\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\utils\data\dataloader.py", line 184, in
return {key: default_collate([d[key] for d in batch]) for key in batch[0]}
File "C:\Users\pengx\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\utils\data\dataloader.py", line 173, in default_collate
return torch.stack([torch.from_numpy(b) for b in batch], 0)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 481 and 321 in dimension 2 at c:\new-builder_3\win-wheel\pytorch\aten\src\th\generic/THTensorMath.cpp:3616

Does anyone know how to fix this problem??

from rescan.

XiaLiPKU avatar XiaLiPKU commented on July 18, 2024

Hello,
when I was runing the codes as "test", that is: python main.py --action test
it raised one error like this:
2018-09-05 17:28:12,461 - INFO - set log dir as ../logdir
2018-09-05 17:28:12,461 - INFO - set model dir as ../models
Traceback (most recent call last):
File "main.py", line 229, in
run_test(args.model)
File "main.py", line 205, in run_test
for i, batch in enumerate(dt):
File "C:\Users\pengx\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\utils\data\dataloader.py", line 314, in next
batch = self.collate_fn([self.dataset[i] for i in indices]) ###
File "C:\Users\pengx\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\utils\data\dataloader.py", line 184, in default_collate
return {key: default_collate([d[key] for d in batch]) for key in batch[0]}
File "C:\Users\pengx\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\utils\data\dataloader.py", line 184, in
return {key: default_collate([d[key] for d in batch]) for key in batch[0]}
File "C:\Users\pengx\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\utils\data\dataloader.py", line 173, in default_collate
return torch.stack([torch.from_numpy(b) for b in batch], 0)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 481 and 321 in dimension 2 at c:\new-builder_3\win-wheel\pytorch\aten\src\th\generic/THTensorMath.cpp:3616

Does anyone know how to fix this problem??

This bug arises from the usage of iter, and I just fix it.
Please refer to the latest repo.

from rescan.

adityac8 avatar adityac8 commented on July 18, 2024

Hi,
Could you tell me where can I download the original Rain800 dataset.
Thanks

from rescan.

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.