mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #244] ValueError: operands could not be broadcast together with shapes (4,224,224) (3,) #211
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#211
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 @dbl001 on GitHub (May 15, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/244
How is normalize in image_utils.py suppose to work on images with 4 dimensions?
Here's an example from:
https://github.com/MaartenGr/Concept
https://github.com/MaartenGr/Concept/issues/12
Several images in this collection have shape
To download 25k images:
Here's the code:
Packages:
@kw0516 commented on GitHub (Dec 15, 2022):
I also encountered the same problem. Pictures with QR codes will inevitably have such problems.
@wunting-chan commented on GitHub (Jan 9, 2024):
You could convert your image to RGB with PIL before encoding it. In your case, it would be: