mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #253] CLIP image_encoder as backbone #222
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#222
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 @iasonasxrist on GitHub (Jun 15, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/253
I have been trying to implement the model.py to separate the image encoder from text but i got plenty of errors kind of :
self.positional_embedding = nn.Parameter(torch.empty(self.context_length, transformer_width))
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'CLIP' object has no attribute 'context_length'
Any ideas how to override them?
@lr19960813 commented on GitHub (Mar 27, 2023):
Hi, I encountered the same problem as you, how did you solve it, looking forward to your reply. Thanks a lot!