Jyothirmai commited on
Commit
75302e7
1 Parent(s): bcd8e41

Update vitGPT.py

Browse files
Files changed (1) hide show
  1. vitGPT.py +1 -1
vitGPT.py CHANGED
@@ -311,7 +311,7 @@ model_config = SimpleNamespace(
311
 
312
 
313
  model = VisionGPT2Model.from_pretrained(model_config)
314
- model.load_state_dict(torch.load("captioner.pt", map_location='cpu')) # Use 'cuda' if you have a GPU
315
  model.eval() # Set the model to evaluation mode
316
 
317
 
 
311
 
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