phlippe / uvadlc_notebooks

Repository of Jupyter notebook tutorials for teaching the Deep Learning Course at the University of Amsterdam (MSc AI), Fall 2023
https://uvadlc-notebooks.readthedocs.io/en/latest/
MIT License
2.59k stars 590 forks source link

Not able to load pretrained models #73

Closed ghoshsdeeep closed 1 year ago

ghoshsdeeep commented 1 year ago

I am not able to load the pretrained model enquiry

Can you please help me to load the model?

phlippe commented 1 year ago

Hi, can you specify which tutorial you are trying to run?

ghoshsdeeep commented 1 year ago

Vision Transformers Trying to load ViT.ckpt

phlippe commented 1 year ago

The model appears to load without problems in GoogleColab. Have you modified the model class, and where have you downloaded the pre-trained model from?

ghoshsdeeep commented 1 year ago

I downloaded it from this path

Screenshot (79) Just changed one line Screenshot (78)

phlippe commented 1 year ago

The error message suggests that the layer input_layer module was removed in the Vision Transformer. Can you verify that it is still there in your code?

phlippe commented 1 year ago

Closing due to inactivity, feel free to reopen if issue persists.