Instructions to use diffusers-modular/minimax-h3-inpainting with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers-modular/minimax-h3-inpainting with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers-modular/minimax-h3-inpainting", 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 assets/mask.webp from diffusers-modular/minimax-h3-inpainting: direct link, hf CLI and curl.
- Browser
- Download file 35.8 kB
-
https://huggingface.co/diffusers-modular/minimax-h3-inpainting/resolve/main/assets/mask.webp
- Command line
-
hf download hf://diffusers-modular/minimax-h3-inpainting/assets/mask.webp
-
curl -L -o mask.webp https://huggingface.co/diffusers-modular/minimax-h3-inpainting/resolve/main/assets/mask.webp
35.8 kB
