English
qtnx commited on
Commit
9c897db
1 Parent(s): a84d3da

Update __main__.py

Browse files
Files changed (1) hide show
  1. __main__.py +1 -3
__main__.py CHANGED
@@ -161,9 +161,7 @@ def answer_question(
161
 
162
  image_features = image_forward_outs.hidden_states[-2]
163
 
164
- image_features2 = image_features[:, 1:]
165
-
166
- projected_embeddings = projection_module(image_features2).to("cuda")
167
 
168
  embedding_layer = model.get_input_embeddings()
169
  # text_embeddings = embedding_layer(input_ids)
 
161
 
162
  image_features = image_forward_outs.hidden_states[-2]
163
 
164
+ projected_embeddings = projection_module(image_features).to("cuda")
 
 
165
 
166
  embedding_layer = model.get_input_embeddings()
167
  # text_embeddings = embedding_layer(input_ids)