Jyothirmai
commited on
Commit
•
538ab5e
1
Parent(s):
4c10f74
Update vitGPT.py
Browse files
vitGPT.py
CHANGED
@@ -312,6 +312,7 @@ model_config = SimpleNamespace(
|
|
312 |
|
313 |
model = VisionGPT2Model.from_pretrained(model_config)
|
314 |
model.load_state_dict(torch.load("model/captioner.pt", map_location='cpu')) # Use 'cuda' if you have a GPU
|
|
|
315 |
model.eval() # Set the model to evaluation mode
|
316 |
|
317 |
|
|
|
312 |
|
313 |
model = VisionGPT2Model.from_pretrained(model_config)
|
314 |
model.load_state_dict(torch.load("model/captioner.pt", map_location='cpu')) # Use 'cuda' if you have a GPU
|
315 |
+
print(model)
|
316 |
model.eval() # Set the model to evaluation mode
|
317 |
|
318 |
|