Traceback (most recent call last):
File "main.py", line 4, in <module>
import data
File "D:\EDSR-PyTorch-master\src\data\_init__.py", line 2, in <module>
from dataloader import MSDataLoader
File "D:\EDSR-PyTorch-master\src\dataloader.py", line 17, in <module>
from torch.utils.data.dataloader import_worker_manager_loop
ImportError: cannot import name '_worker_manager_loop'
You are about to run training on a super-resolution network.
URL: https://github.com/thstkdgus35/EDSR-PyTorch
The above error statement appears.
When I looked into it, I found similar errors such as duplicate file names.
I thought it didn't apply. So I need your help.
This issue was discussed in this issue of EDSR-PyTorch: https://github.com/thstkdgus35/EDSR-PyTorch/issues/98
The reason for the error is that the internal implementation changed from PyTorch v1.0rc0 and torch.utils.data.dataloader._worker_manager_loop
was deleted (named).Originally, EDSR-PyTorch was tested with PyTorch>=0.4.0, and it seemed to work well with 0.4.0, but it didn't follow PyTorch's changes and led to this ImportError.
© 2024 OneMinuteCode. All rights reserved.