VALUE EROR When i try to load the model
#3
by
pierreaverty1
- opened
Good afternoon !!
I sadly have the following error when i try to open the model with the following code.
Code :
processor = AutoImageProcessor.from_pretrained("magic-leap-community/superpoint")
model = AutoModel.from_pretrained("magic-leap-community/superpoint")
Error :
ValueError: Unrecognized configuration class <class 'transformers.models.superpoint.configuration_superpoint.SuperPointConfig'> for this kind of AutoModel: AutoModel.
Hi,
Yes I'll fix this, you need to load the model using the SuperPointForKeypointDetection
class.
See my demo notebook here: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/SuperPoint/Inference_with_SuperPoint_to_detect_interest_points_in_an_image.ipynb
nielsr
changed discussion status to
closed