Open lucasjinreal opened 5 years ago
@jinfagang could you try running your code with develop
branch?
bug bug bug !!!!!!!!!!!!!!!!!!!!!!!!!!!! waste my time!!!!!!!!!!!
@Hujun-Cui I think this repo is not active maintained now.
@jinfagang this has been a recurring issue, however the fix has already been made on the develop
branch. Will update on master
soon. Please see #180 for a simple workaround.
The wrong code is at line 75 of supervised_trainer.py and line 38 of evaluator.py.
I change them to device = torch.device('cuda:0') if torch.cuda.is_available() else -1
and CUDA is available now.
I think this should be merged in master now.
The wrong code is at line 75 of supervised_trainer.py and line 38 of evaluator.py. I change them to
device = torch.device('cuda:0') if torch.cuda.is_available() else -1
and CUDA is available now.
Except the two files, is there any other file need to fix? After fix the two files, the code still be incorrect...
The wrong code is at line 75 of supervised_trainer.py and line 38 of evaluator.py. I change them to
device = torch.device('cuda:0') if torch.cuda.is_available() else -1
and CUDA is available now.Except the two files, is there any other file need to fix? After fix the two files, the code still be incorrect...
No, but you need to re-install the package after you do these corrections. Running python setup.py install
again helped in my case.