Closed striver123456 closed 1 year ago
how to solve it? Thanks!
I am not able to replicate this error on my end. Could you give me the script that is causing this error.
Thank you for your reply。
My initial mistake was as follows:
Traceback (most recent call last):
File "xx.py", line 4, in
What version of the timm
library are you using? It should be at least 0.8.15.dev0
. Having an older version will cause the positional arguments error.
Traceback (most recent call last): File "xx.py", line 7, in
preds = net(img)
File "/home/dell/anaconda3/envs/fvit/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1192, in _call_impl
if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
File "/home/dell/anaconda3/envs/fvit/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1270, in getattr
type(self).name, name))
AttributeError: 'FlexiVisionTransformer' object has no attribute '_backward_hooks'