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
Update minimax_h3_inpaint_blocks.py
Browse files
minimax_h3_inpaint_blocks.py
CHANGED
|
@@ -6,10 +6,8 @@ model repaints, and everything the mask preserves is presented to the transforme
|
|
| 6 |
clean content pinned at the visual-conditioning timestep `0.999`, rather than the source noised down to the step's own
|
| 7 |
sigma.
|
| 8 |
|
| 9 |
-
That distinction is the whole trick
|
| 10 |
-
|
| 11 |
-
with clean visual conditioning at `0.999` and has never seen a partially denoised target row claiming to be something
|
| 12 |
-
else, so ordinary "re-noise the original to sigma_t" inpainting is off-distribution for it.
|
| 13 |
|
| 14 |
Three things follow, and they are the three blocks below:
|
| 15 |
|
|
|
|
| 6 |
clean content pinned at the visual-conditioning timestep `0.999`, rather than the source noised down to the step's own
|
| 7 |
sigma.
|
| 8 |
|
| 9 |
+
That distinction is the whole trick. MiniMax-H3 was trained with clean visual conditioning at `0.999` and has never
|
| 10 |
+
seen a partially denoised target row claiming to be something else, so ordinary "re-noise the original to sigma_t" inpainting is off-distribution for it.
|
|
|
|
|
|
|
| 11 |
|
| 12 |
Three things follow, and they are the three blocks below:
|
| 13 |
|