Hi
I have got the same error but my code is different can you help me please?
This is my error in utils.py file
content/gdrive/My Drive/DeepFakeDetection/utils.py:21: UserWarning: volatile was removed and now has no effect. Use `with torch.no_grad():` instead.
>   return Variable(x, volatile=volatile)

And this is my code in utils.py file
def to_var(x, volatile=False):`
> >      if torch.cuda.is_available():
> >          x = x.cuda()
> >      return Variable(x, volatile=volatile)

Thank you