torch hubconf.py is missing a function
nkondapa opened this issue · 3 comments
File "/root/.cache/torch/hub/facebookresearch_dino_main/hubconf.py", line 17, in
import vision_transformer as vits
File "/root/.cache/torch/hub/facebookresearch_dino_main/vision_transformer.py", line 24, in
from utils import trunc_normal_
torch version is torch==1.13.1
Hi,
I am facing the same issue.
Is there any update on this?
I was able to get it working by copying the utils.py file from this repository (or from the torch hub cache directory) to my local project directory. Currently, python compiler is unable to resolve the name utils
and struggles to find the correct file to look for the function that needs to be imported.
But having a better fix for this would be nice!
Hey, I think I also fixed it by commenting something out. Don't remember exactly.