Instructions to use jaxmetaverse/all_models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use jaxmetaverse/all_models with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("jaxmetaverse/all_models", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download models/florence2/base/preprocessor_config.json from jaxmetaverse/all_models: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/jaxmetaverse/all_models/resolve/main/models/florence2/base/preprocessor_config.json
- Command line
-
hf download hf://jaxmetaverse/all_models/models/florence2/base/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/jaxmetaverse/all_models/resolve/main/models/florence2/base/preprocessor_config.json
806 Bytes
| { | |
| "auto_map": { | |
| "AutoProcessor": "processing_florence2.Florence2Processor" | |
| }, | |
| "_valid_processor_keys": [ | |
| "images", | |
| "do_resize", | |
| "size", | |
| "resample", | |
| "do_rescale", | |
| "rescale_factor", | |
| "do_normalize", | |
| "image_mean", | |
| "image_std", | |
| "return_tensors", | |
| "data_format", | |
| "input_data_format", | |
| "do_convert_rgb" | |
| ], | |
| "do_convert_rgb": null, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "do_center_crop": false, | |
| "image_processor_type": "CLIPImageProcessor", | |
| "image_seq_length": 577, | |
| "image_mean": [0.485, 0.456, 0.406], | |
| "image_std": [0.229, 0.224, 0.225], | |
| "processor_class": "Florence2Processor", | |
| "resample": 3, | |
| "size": { | |
| "height": 768, | |
| "width":768 | |
| }, | |
| "crop_size": { | |
| "height": 768, | |
| "width": 768 | |
| } | |
| } |