You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might have been dealt with somewhere, but I couldn't find any post about it.
Bascially, I'm trying to create a model instance without depending on the external network, which means when I instantiate a pre-trained model, it seems like downloading weights from somewhere else.
Can I have its weights in my local machine and instantiate using it?
By the way, I'm using SegFormer just to make things clear
The text was updated successfully, but these errors were encountered:
Hi @Foundsheep, to prevent loading weights from remove you can specify encoder_weights=None. Then you can load from a local directory with the standard torch approach as torch.load and model.load_state_dict
Thanks for the quick reply.
Then where could I find the model's weights file? If it's somewhere in the documentation, sorry about bothering I couldn't find it.
Hi,
It might have been dealt with somewhere, but I couldn't find any post about it.
Bascially, I'm trying to create a model instance without depending on the external network, which means when I instantiate a pre-trained model, it seems like downloading weights from somewhere else.
Can I have its weights in my local machine and instantiate using it?
By the way, I'm using SegFormer just to make things clear
The text was updated successfully, but these errors were encountered: