TRI-ML / vidar

Other
563 stars 67 forks source link

loading models from pytorch has path error on windows #62

Open glittercreeks opened 7 months ago

glittercreeks commented 7 months ago

ModuleNotFoundError: No module named 'vidar.arch\\networks\\perceiver'

ximader commented 3 months ago

It can be fixed by changing vidar\utils\config.py (in my case it is located in C:\Users\username\.cache\torch\hub\TRI-ML_vidar_main\vidar\utils\config.py)

After lines:

# Create full path
path = path.replace('/', '.')

add this: path = path.replace('\\', '.')