Instructions to use OzzyGT/gemx_soma_diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OzzyGT/gemx_soma_diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OzzyGT/gemx_soma_diffusers", 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 detector_processor/preprocessor_config.json from OzzyGT/gemx_soma_diffusers: direct link, hf CLI and curl.
- Browser
- Download file 845 Bytes
-
https://huggingface.co/OzzyGT/gemx_soma_diffusers/resolve/main/detector_processor/preprocessor_config.json
- Command line
-
hf download hf://OzzyGT/gemx_soma_diffusers/detector_processor/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/OzzyGT/gemx_soma_diffusers/resolve/main/detector_processor/preprocessor_config.json
845 Bytes
| { | |
| "_valid_processor_keys": [ | |
| "images", | |
| "annotations", | |
| "return_segmentation_masks", | |
| "masks_path", | |
| "do_resize", | |
| "size", | |
| "resample", | |
| "do_rescale", | |
| "rescale_factor", | |
| "do_normalize", | |
| "do_convert_annotations", | |
| "image_mean", | |
| "image_std", | |
| "do_pad", | |
| "pad_size", | |
| "format", | |
| "return_tensors", | |
| "data_format", | |
| "input_data_format" | |
| ], | |
| "do_convert_annotations": true, | |
| "do_normalize": false, | |
| "do_pad": false, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "format": "coco_detection", | |
| "image_mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "image_processor_type": "RTDetrImageProcessorFast", | |
| "image_std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "pad_size": null, | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "height": 640, | |
| "width": 640 | |
| } | |
| } | |