mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #403] How to only fine-tune the image encoder? #345
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#345
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 @GA-17a on GitHub (Nov 17, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/403
When I want to feed only the parameters of the image encoder (self.model.encode_image.parameters()) into the optimizer, it shows that "AttributeError: 'function' object has no attribute 'parameters'". It's ok for "self.model.parameters()".
Anyone knows how to solve this problem?
@Danny-1-8 commented on GitHub (Nov 27, 2023):
man,cause that's a function not A module,try with the "self.model.visual"
@GA-17a commented on GitHub (Nov 27, 2023):
@Dinosaurcubs commented on GitHub (Dec 25, 2023):
I met the same question,bro. Could u please help me about the solution you took