Jyothirmai commited on
Commit
8b9889c
1 Parent(s): e6a32cf

Update vitGPT.py

Browse files
Files changed (1) hide show
  1. vitGPT.py +1 -1
vitGPT.py CHANGED
@@ -316,7 +316,7 @@ print(model)
316
  model.eval() # Set the model to evaluation mode
317
 
318
 
319
- def generate_caption(image,max_tokens=78,temperature=0.9,deterministic=True):
320
  tokenizer = GPT2TokenizerFast.from_pretrained('gpt2')
321
  tokenizer.pad_token = tokenizer.eos_token
322
 
 
316
  model.eval() # Set the model to evaluation mode
317
 
318
 
319
+ def generate_caption(image,max_tokens,temperature,deterministic=True):
320
  tokenizer = GPT2TokenizerFast.from_pretrained('gpt2')
321
  tokenizer.pad_token = tokenizer.eos_token
322