Comments (4)
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.
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.
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:3616Does 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.
Hi,
Could you tell me where can I download the original Rain800 dataset.
Thanks
from rescan.
Related Issues (20)
- 问一个rain100h数据集的问题 HOT 1
- Problems encountered during retraining HOT 5
- problem encountered during running eval.py HOT 3
- our_net_G.t7 HOT 1
- Understanding ssim HOT 1
- Can you give me Rain800 dataset? HOT 2
- need trained model,thanks!
- When I try to do test, I got 'cuda out of memory' HOT 1
- Can't access the Rain800 dataset
- 关于代码运行的部分疑惑
- 你们不提供其他训练模型吗? HOT 2
- about data setting
- sess.step += 1 ?
- 关于论文第三章的rain models
- test数据集的问题 HOT 2
- about params HOT 1
- 使用show.py测试时放入网络的是没有雨的图的问题? HOT 4
- RuntimeError: The size of tensor a (241) must match the size of tensor b (240) at non-singleton dimension 3 HOT 5
- Where can I find a Pretrained Model? HOT 6
- test数据集效果甚微 HOT 3
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 rescan.