adaptive-style-transfer-pytorch
adaptive-style-transfer-pytorch copied to clipboard
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
hello dude, my conda env is Pytorch 1.10 + Cuda 11.3 +Cudnn 8.0+Python 3.6, my GPU is RTX3090 so i cannot use Pytorch 1.0 version as you showed. The training process reported an error:
Processes are started.
0%| | 0/200000 [00:00<?, ?it/s]C:\ProgramData\Anaconda3\envs\pytorch110\lib\site-packages\torch\optim\lr_scheduler.py:134: UserWarning: Detected call of lr_scheduler.step()
before optimizer.step()
. In PyTorch 1.1.0 and later, you should call them in the opposite order: optimizer.step()
before lr_scheduler.step()
.
Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate
"https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate", UserWarning)
0%| | 0/200000 [00:07<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 126, in
Could you take a look at this and solve it? Many thanks~