mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #414] finetuning rn50x64 model, encode_image error #353
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#353
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 @forminju on GitHub (Dec 30, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/414
I got problem when finetuning RN 50x64 model
File "/home/student/minju/CLIP/lib/python3.8/site-packages/clip/model.py", line 71, in forward
x = x + self.positional_embedding[:, None, :].to(x.dtype) # (HW+1)NCRuntimeError:
The size of tensor a (50) must match the size of tensor b (197) at non-singleton dimension 0like this. anyone know how to fix this problem?