Instructions to use microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224 with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224') tokenizer = open_clip.get_tokenizer('hf-hub:microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224') - Notebooks
- Google Colab
- Kaggle
HF's from_pretrain doesn't work properly because there is no config.json
#26
by KevinClaint - opened
I can't properly use the from_pretrain function provided by HF to read the model, all it warns me is that I don't have a config.json file.
I think this is very weird, I was able to run it on my previous computer, but when I used it locally on another computer by downloading it I found the same problem as this one.