Comments (11)
Hi, please set the dir_data to the directory that contains the benchmark folder.
from non-local-sparse-attention.
i have done so.i set it up like this
parser.add_argument('--dir_data', type=str, default='D:\data\experiments code\code\1\Non-Local-Sparse-Attention\benchmarkdata\benchmark\benchmark',
help='dataset directory')
from non-local-sparse-attention.
Hi, the directory should contain the folder benchmark not the folder like Set5. In your case, it may be 'D:\data\experiments code\code\1\Non-Local-Sparse-Attention\benchmarkdata\benchmark\’.
from non-local-sparse-attention.
My operating system is Windows 10.Do I need to change demo.sh?I changed it to look like this.Is that right
--dir_data ../benchmark --model NLSN --chunk_size 144 --data_test Set5+Set14+B100+Urban100 --n_hashes 4 --chop --save_results --rgb_range 1 --data_range 801-900 --scale 2 --n_feats 256 --n_resblocks 32 --res_scale 0.1 --pre_train ../experiment/test/model/model_x2.pt --test_only
from non-local-sparse-attention.
I changed it as you said.And that's what happened
D:\softwarezijianzhuangde\anaconda\envs\pytorch-1.9\python.exe "D:/data/experiments code/code/1/Non-Local-Sparse-Attention/src/main.py" --dir_data ../benchmark --model NLSN --chunk_size 144 --data_test Set5+Set14+B100+Urban100 --n_hashes 4 --chop --save_results --rgb_range 1 --data_range 801-900 --scale 2 --n_feats 256 --n_resblocks 32 --res_scale 0.1 --pre_train ../experiment/test/model/model_x2.pt --test_only
Making model...
Loading model from ../experiment/test/model/model_x2.pt
0it [00:00, ?it/s]
0it [00:00, ?it/s]
0it [00:00, ?it/s]
0it [00:00, ?it/s]
Total params: 41.80M
Evaluation:
[Set5 x2] PSNR: nan (Best: nan @epoch 1)
[Set14 x2] PSNR: nan (Best: nan @epoch 1)
[B100 x2] PSNR: nan (Best: nan @epoch 1)
[Urban100 x2] PSNR: nan (Best: nan @epoch 1)
Forward: 0.00s
Saving...
Total: 0.00s
Process finished with exit code 0
from non-local-sparse-attention.
The problem is the datasets are not correctly loaded. After you extracting the datasets, the structure should like this,
—/somepath/somefolder
——benchmark
———Set5
———Set14
———B100
———Urban100
And set the dir_data as /somepath/somefolder
from non-local-sparse-attention.
It does not work.
In option.py,i set the dir_data like this
parser.add_argument('--dir_data', type=str, default='D:\data\experiments code\code\1\Non-Local-Sparse-Attention\benchmarkdata\benchmark',
help='dataset directory')
In demo.sh,i set it like this
--dir_data ../D:/data/experiments code/code/1/Non-Local-Sparse-Attention/benchmarkdata --model NLSN --chunk_size 144 --data_test Set5+Set14+B100+Urban100 --n_hashes 4 --chop --save_results --rgb_range 1 --data_range 801-900 --scale 2 --n_feats 256 --n_resblocks 32 --res_scale 0.1 --pre_train ../experiment/test/model/model_x2.pt --test_only
I don't know the exact reasons.please help me.Thanks
from non-local-sparse-attention.
Hi, after extracting the zip file, you should get a folder with name “benchmark”. What is the parent folder that contains the benchmark folder? Please set the dir_data to a path pointing to the parent folder in the demo.sh.
In addition, please make sure the grammar for windows is correct.
from non-local-sparse-attention.
A new problem has arisen。
D:\softwarezijianzhuangde\anaconda\envs\pytorch-1.9\python.exe "D:/data/experiments code/code/1/Non-Local-Sparse-Attention/src/main.py" --dir_data ../benchmarkdata --model NLSN --chunk_size 144 --data_test Set5+Set14+B100+Urban100 --n_hashes 4 --chop --save_results --rgb_range 1 --data_range 801-900 --scale 2 --n_feats 256 --n_resblocks 32 --res_scale 0.1 --pre_train ../experiment/test/model/model_x2.pt --test_only
Making model...
Loading model from ../experiment/test/model/model_x2.pt
Total params: 41.80M
Evaluation:
0%| | 0/5 [00:03<?, ?it/s]
Traceback (most recent call last):
File "D:/data/experiments code/code/1/Non-Local-Sparse-Attention/src/main.py", line 35, in
main()
File "D:/data/experiments code/code/1/Non-Local-Sparse-Attention/src/main.py", line 28, in main
while not t.terminate():
File "D:\data\experiments code\code\1\Non-Local-Sparse-Attention\src\trainer.py", line 141, in terminate
self.test()
File "D:\data\experiments code\code\1\Non-Local-Sparse-Attention\src\trainer.py", line 102, in test
self.ckp.save_results(d, filename[0], save_list, scale)
File "D:\data\experiments code\code\1\Non-Local-Sparse-Attention\src\utility.py", line 159, in save_results
self.queue.put(('{}{}.png'.format(filename, p), tensor_cpu))
AttributeError: 'checkpoint' object has no attribute 'queue'
Process finished with exit code 1
from non-local-sparse-attention.
Hi, I am not sure about this problem. It may be because torch version and windows platform. The code is tested on Linux.
This code is based on EDSR and you may want to look this issue for reference sanghyun-son/EDSR-PyTorch#91.
from non-local-sparse-attention.
thank you very much
from non-local-sparse-attention.
Related Issues (20)
- 训练不了 HOT 7
- Issue about the Evaluation Metrics HOT 2
- flops
- Issue about the args.test_every HOT 2
- x3的model HOT 8
- 在Urban100上的测试结果偏差很大 HOT 2
- 论文简单来说就是Non-local Neural Networks中的NLA+Reformer中的LSH attention? HOT 1
- What does “common.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1) ”do HOT 1
- Computational complexity HOT 2
- do you need to use the x2 model like EDSR to train the x3,x4 model? HOT 1
- Computational complexity HOT 2
- 关于代码实现 bucket_score 变量的细节疑惑? HOT 3
- TypeError: conv2d() received an invalid combination of arguments HOT 1
- Mean of query in the paper HOT 1
- How much memory of the GPUS was used for the test? HOT 1
- model code error HOT 1
- I get image just full of white
- Help with codes
- Cannot load dataset
- 训练的迭代次数
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 non-local-sparse-attention.