Update README.md
Browse files
README.md
CHANGED
@@ -11,9 +11,9 @@ from transformers import VisionEncoderDecoderModel, ViTImageProcessor, AutoToken
|
|
11 |
import torch
|
12 |
from PIL import Image
|
13 |
|
14 |
-
model = VisionEncoderDecoderModel.from_pretrained("
|
15 |
-
feature_extractor = ViTImageProcessor.from_pretrained("
|
16 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
17 |
|
18 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
19 |
model.to(device)
|
|
|
11 |
import torch
|
12 |
from PIL import Image
|
13 |
|
14 |
+
model = VisionEncoderDecoderModel.from_pretrained("AIris-Channel/vit-gpt2-verifycode-caption")
|
15 |
+
feature_extractor = ViTImageProcessor.from_pretrained("AIris-Channel/vit-gpt2-verifycode-caption")
|
16 |
+
tokenizer = AutoTokenizer.from_pretrained("AIris-Channel/vit-gpt2-verifycode-caption")
|
17 |
|
18 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
19 |
model.to(device)
|