Skip to content

How to customize model structures, instead of using existing models? #1022

Discussion options

You must be logged in to vote

@Leslie-Jiang-Hamster if copy any of the existing .json files and modify appropriate arguments and then use the name of that .json it will work fine.

You should make sure that you are using the correct instance of the lib though, if you are using a pip installed module the changes won't be there, you need to do an editable install (pip install -e).

You can also call open_clip.add_model_config(path) to add a config file at an arbitrary path into the current library and then call the create model...

Any custom model config will obviously not have any pretrained CLIP model to load though but you can train it from scratch.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Leslie-Jiang-Hamster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1020 on January 16, 2025 20:28.