Update README.md
Browse files
README.md
CHANGED
|
@@ -15,6 +15,7 @@ Classification model used to classify real images and AI generated images.\
|
|
| 15 |
The model used is swin-tiny-patch4-window7-224 finetued on aiornot dataset.\
|
| 16 |
To use the model
|
| 17 |
```
|
|
|
|
| 18 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
| 19 |
|
| 20 |
labels = ["Real", "AI"]
|
|
|
|
| 15 |
The model used is swin-tiny-patch4-window7-224 finetued on aiornot dataset.\
|
| 16 |
To use the model
|
| 17 |
```
|
| 18 |
+
import torch
|
| 19 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
| 20 |
|
| 21 |
labels = ["Real", "AI"]
|