Skip to content

Commit

Permalink
[SuperPoint] Fix doc example (#29816)
Browse files Browse the repository at this point in the history
[SuperPoint] Fix doc example
  • Loading branch information
amyeroberts committed Mar 22, 2024
1 parent e49ebae commit 056df1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/superpoint/modeling_superpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def forward(
Examples:
```python
>>> from transformers import AutoImageProcessor, AutoModel
>>> from transformers import AutoImageProcessor, SuperPointForKeypointDetection
>>> import torch
>>> from PIL import Image
>>> import requests
Expand All @@ -432,7 +432,7 @@ def forward(
>>> image = Image.open(requests.get(url, stream=True).raw)
>>> processor = AutoImageProcessor.from_pretrained("magic-leap-community/superpoint")
>>> model = AutoModel.from_pretrained("magic-leap-community/superpoint")
>>> model = SuperPointForKeypointDetection.from_pretrained("magic-leap-community/superpoint")
>>> inputs = processor(image, return_tensors="pt")
>>> outputs = model(**inputs)
Expand Down

0 comments on commit 056df1d

Please sign in to comment.