Skip to content

Commit

Permalink
Update encode_images_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
flow3rdown committed Feb 7, 2023
1 parent c7802cc commit 3e24c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarT/tools/encode_images_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
piexel_values = processor(images=images, return_tensors='pt')['pixel_values'].squeeze()
entity2visual[entity] = piexel_values

torch.save(entity2visual, 'dataset/MARS/entity_image_features_total.pth')
torch.save(entity2visual, 'dataset/MARS/entity_image_features.CLIP-VIT-16-32.pth')

elif processor_name == 'vilt':
entity2visual = []
Expand Down

0 comments on commit 3e24c1a

Please sign in to comment.