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'
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)
<ipython-input-9-46a887c84c9b> in <module>
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?
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
> > I also met the same problem, did you solve it?
>
> 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.
> > I also met the same problem, did you solve it?
>
> 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
thanks bro from my heart
thank you. : )
> > > I also met the same problem, did you solve it?
> >
> >
> > 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.
How to fix it in google colab bro ?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 ?