Cream icon indicating copy to clipboard operation
Cream copied to clipboard

TinyCLIP, Inference with auto inheritance

Open giginho83 opened this issue 1 year ago • 3 comments

Hi, I'm testing some models from TinyCLIP, great work. I would like to know how can I make inference with models with auto inheritance using open clip format. Thanks in advance.

giginho83 avatar Jan 30 '24 15:01 giginho83

Hi @giginho83 , thanks for your attention to our work!

You can refer to the evaluation script: https://github.com/microsoft/Cream/blob/main/TinyCLIP/docs/EVALUATION.md#for-auto-weight-inference-checkpoint

I may update the inference code for auto inheritance.

wkcn avatar Jan 31 '24 11:01 wkcn

Hi @giginho83 , I have uploaded the example for the inference with auto inheritance in PR #223 .

Before the code is merged into the main branch, you can try this repo: https://github.com/wkcn/Cream/tree/tinyclip_inference_auto_weight_inheritance/TinyCLIP

cd TinyCLIP
python3 inference.py

The model with auto inheritance TinyCLIP-auto-ViT-45M-32-Text-18M will be executed.

wkcn avatar Jan 31 '24 12:01 wkcn

Thank you very much for the support, it's working

giginho83 avatar Jan 31 '24 15:01 giginho83