Closed f11894 closed 6 years ago
Hello.
I tested your script, and found that --n_threads 0 is the problem.
Would you try --n_threads 1? (I checked that it works without any error on Ubuntu 16.04.)
Because I do not use PyTorch@Windows, it may take some times to fix this problem.
Thank you.
I tried --n_threads 1 but the operation stopped.
C:\Users\yusuke\EDSR-PyTorch\code>python main.py --data_test Demo --cpu --scale 4 --n_threads 1 --pre_train ../experiment/model/EDSR_baseline_x4.pt --test_only --save_results Making model... Loading model from ../experiment/model/EDSR_baseline_x4.pt
Evaluation: 0%| | 0/1 [00:00<?, ?it/s]Making model... Loading model from ../experiment/model/EDSR_baseline_x4.pt
Evaluation:
0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last):
File "
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
@f11894 to solve this you should return used {--nthreads 0 } as you in windows, and in trainer.py line 88 change (lr, hr, filename, ) to (lr, hr, filename), to get rid not enough values to unpack (expected 4, got 3) error, then every thing will work as he should.
@ABDOELSHEMY That went well. Thank you.
Hi, Thank you for providing excellent super resolution technology. I wanted to test the behavior and I ran the following command and I got an error.
Windows 10 64bit
Anaconda 4.5.0 Python 3.6.4 pytorch 0.3.1.post2 torchvision 0.2.0