FrancescoSaverioZuppichini / glasses

High-quality Neural Networks for Computer Vision 😎
https://francescosaveriozuppichini.github.io/glasses-webapp/
MIT License
437 stars 37 forks source link

Refactor pretrained utilities #285

Closed FrancescoSaverioZuppichini closed 3 years ago

FrancescoSaverioZuppichini commented 3 years ago

Why

Currently, all the code to load pre-trained models is in PretrainedWeightsProvider. Moreover, we can dump the pretrained decorator and only force the user to load a model using the AutoModel class.

FrancescoSaverioZuppichini commented 3 years ago

closed by #287