Update README.md
Browse files
README.md
CHANGED
|
@@ -41,13 +41,13 @@ from transformers import AutoModelForImageClassification
|
|
| 41 |
import torch
|
| 42 |
|
| 43 |
# Load the model from the Hub
|
| 44 |
-
model_name = "
|
| 45 |
model = AutoModelForImageClassification.from_pretrained(model_name)
|
| 46 |
|
| 47 |
# NOTE: This model requires a custom FFT-based preprocessing function.
|
| 48 |
# The 'preprocessed_image' tensor must have a shape of (1, 3, 224, 224).
|
| 49 |
# See the "Preprocessing" section for details.
|
| 50 |
-
# preprocessed_image = your_custom_fft_preprocessing_function("path/to/your/stm_image
|
| 51 |
|
| 52 |
# Run inference
|
| 53 |
with torch.no_grad():
|
|
|
|
| 41 |
import torch
|
| 42 |
|
| 43 |
# Load the model from the Hub
|
| 44 |
+
model_name = "t0m-R/vit-stm-artifact-fft"
|
| 45 |
model = AutoModelForImageClassification.from_pretrained(model_name)
|
| 46 |
|
| 47 |
# NOTE: This model requires a custom FFT-based preprocessing function.
|
| 48 |
# The 'preprocessed_image' tensor must have a shape of (1, 3, 224, 224).
|
| 49 |
# See the "Preprocessing" section for details.
|
| 50 |
+
# preprocessed_image = your_custom_fft_preprocessing_function("path/to/your/stm_image")
|
| 51 |
|
| 52 |
# Run inference
|
| 53 |
with torch.no_grad():
|