-
Notifications
You must be signed in to change notification settings - Fork 171
Error Messages
ProGamerGov edited this page Sep 29, 2019
·
28 revisions
Traceback (most recent call last):
File "neural_style.py", line 474, in <module>
main()
File "neural_style.py", line 257, in main
optimizer.step(feval)
File "/usr/local/lib/python2.7/dist-packages/torch/optim/adam.py", line 57, in step
loss = closure()
File "neural_style.py", line 248, in feval
loss.backward()
AttributeError: 'int' object has no attribute 'backward'
If you were using the nin_imagenet.pth (NIN) model, you either forgot to specify the layers to use with -content_layers
-style_layers
, or you used invalid layers. NIN has different layer names than the VGG models.
###Driver Errors:
Traceback (most recent call last):
File "/usr/local/bin/neural-style", line 428, in <module>
main()
File "/usr/local/bin/neural-style", line 65, in main
dtype = setup_gpu()
File "/usr/local/bin/neural-style", line 293, in setup_gpu
torch.cuda.set_device(params.gpu)
File "/usr/local/lib/python3.5/dist-packages/torch/cuda/__init__.py", line 281, in set_device
torch._C._cuda_setDevice(device)
File "/usr/local/lib/python3.5/dist-packages/torch/cuda/__init__.py", line 178, in _lazy_init
_check_driver()
File "/usr/local/lib/python3.5/dist-packages/torch/cuda/__init__.py", line 108, in _check_driver
of the CUDA driver.""".format(str(torch._C._cuda_getDriverVersion())))
AssertionError:
The NVIDIA driver on your system is too old (found version 9000).
Please update your GPU driver by downloading and installing a new
version from the URL: http://www.nvidia.com/Download/index.aspx
Alternatively, go to: https://pytorch.org to install
a PyTorch version that has been compiled with your version
of the CUDA driver.
Traceback (most recent call last):
File "/usr/local/bin/neural-style", line 428, in <module>
main()
File "/usr/local/bin/neural-style", line 65, in main
dtype = setup_gpu()
File "/usr/local/bin/neural-style", line 293, in setup_gpu
torch.cuda.set_device(params.gpu)
File "/usr/local/lib/python3.5/dist-packages/torch/cuda/__init__.py", line 281, in set_device
torch._C._cuda_setDevice(device)
File "/usr/local/lib/python3.5/dist-packages/torch/cuda/__init__.py", line 178, in _lazy_init
_check_driver()
File "/usr/local/lib/python3.5/dist-packages/torch/cuda/__init__.py", line 108, in _check_driver
of the CUDA driver.""".format(str(torch._C._cuda_getDriverVersion())))
AssertionError:
The NVIDIA driver on your system is too old (found version 9010).
Please update your GPU driver by downloading and installing a new
version from the URL: http://www.nvidia.com/Download/index.aspx
Alternatively, go to: https://pytorch.org to install
a PyTorch version that has been compiled with your version
of the CUDA driver.
You will need to update your drivers if you wish to use the downloaded version of PyTorch.