mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #208] Batch prediction with model.encode() ? #183
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#183
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shashi-netra on GitHub (Jan 14, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/208
I get a
segmentation fault, not sure if it's something with my code or this feature is not supported.@subhamkhemka commented on GitHub (Jan 20, 2022):
Stack the images and pass it to model.encode_image -
model.encode_image(torch.stack(image_inputs))