damerajee commited on
Commit
03377c9
·
verified ·
1 Parent(s): 63008fe

Update modeling_gpt2vision.py

Browse files
Files changed (1) hide show
  1. modeling_gpt2vision.py +3 -2
modeling_gpt2vision.py CHANGED
@@ -60,9 +60,10 @@ class GPT2Vision(PreTrainedModel):
60
  images = batch['image']
61
  if isinstance(text, str):
62
  text = [text]
63
- input_texts = [f"{IMAGE_TOKEN}{t}" for t in text]
 
64
  text_inputs = self.tokenizer(
65
- input_texts,
66
  padding='max_length',
67
  truncation=True,
68
  max_length=768,
 
60
  images = batch['image']
61
  if isinstance(text, str):
62
  text = [text]
63
+
64
+ print("text",text)
65
  text_inputs = self.tokenizer(
66
+ text,
67
  padding='max_length',
68
  truncation=True,
69
  max_length=768,