AttributeError: in Colab #359
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
when I try to run Simswap in Colab, I keep getting this error. Could some one kindly guide me on how to correct the error?
Error --------->>>>>>>>>
AttributeError Traceback (most recent call last)
in
14
15 torch.nn.Module.dump_patches = True
---> 16 model = create_model(opt)
17 model.eval()
18
5 frames
/usr/local/lib/python3.8/dist-packages/torch/optim/optimizer.py in setstate(self, state)
82 self.dict.update(state)
83 self._hook_for_profile() # To support multiprocessing pickle/unpickle.
---> 84 self.defaults.setdefault('differentiable', False)
85
86 def repr(self):
AttributeError: 'SGD' object has no attribute 'defaults'
I also met the same problem, did you solve it?
No I didn't
if you'll get the solution please tell me my friend
You should try previous pytorch versions (< 1.13):
pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
where should I paste this code my friend.
thanks bro from my heart
thank you. : )
How to fix it in google colab bro ?