mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #9] Plans to release the model code? #7
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#7
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 @thoppe on GitHub (Jan 11, 2021).
Original GitHub issue: https://github.com/openai/CLIP/issues/9
Thanks for sharing OpenAI! I'd like to adapt the code to use in other downstream models, but I noticed you haven't defined it anywhere. I can peak at the forward pass a it a bit with
model.codebut it's hard to work with and adapt! Any chance that the model code itself will be released?
@weiyx16 commented on GitHub (Jan 11, 2021):
Hi, according to this issue #5 , I think they won't release a Non-JiT model. So I paid some effort to reproduce one, you can refer to this repo.
@SeanPedersen commented on GitHub (Jan 11, 2021):
What's the advantage of non-JIT model vs JIT model? Is there a difference in performance?
@weiyx16 commented on GitHub (Jan 11, 2021):
As far as I know, a JIT model is a little faster during inference, and easy to deploy without dependency on certain python environment. a non-JIT model can enable you do any modification of the model..
@thoppe commented on GitHub (Jan 11, 2021):
@weiyx16 this is amazing and thank you! My main reason for wanting this is to cache some of the intermediate results for faster inference -- from the current model signature it looks like "text" is inferred, but the "image" is processed every time before it's feed into the joint model.
Any tips on how you translated JIT into plain torch? I couldn't figure out the primitives like
ops.prim.NumToTensorClosing as this solves my problem.
@weiyx16 commented on GitHub (Jan 12, 2021):
I think if you dig further in pytorch src code, you will find
ops.prim.NumToTensorbut in format ofops::prim::NumToTensor, like here. I don't think it will make much difference, for these kind of ops can be passed, since we know the full architecture of the CLIP model.@jongwook commented on GitHub (Jan 12, 2021):
Hello all, thanks for your interest in CLIP model code. We are preparing to release the model code this week, which will allow users to inspect and modify the architecture more conveniently.
@jongwook commented on GitHub (Jan 12, 2021):
The model code is now available in model.py
SimpleTokenizerfor SAM3 text tokenizer convenience #518