Instructions to use Wovchena/tiny-random-flux-fill with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Wovchena/tiny-random-flux-fill with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import FluxFillPipeline from diffusers.utils import load_image image = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup.png") mask = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup_mask.png") # switch to "mps" for apple devices pipe = FluxFillPipeline.from_pretrained("Wovchena/tiny-random-flux-fill", dtype=torch.bfloat16, device_map="cuda") image = pipe( prompt="a white paper cup", image=image, mask_image=mask, height=1632, width=1232, guidance_scale=30, num_inference_steps=50, max_sequence_length=512, generator=torch.Generator("cpu").manual_seed(0) ).images[0] image.save(f"flux-fill-dev.png") - Notebooks
- Google Colab
- Kaggle
Download vae/config.json from Wovchena/tiny-random-flux-fill: direct link, hf CLI and curl.
- Browser
- Download file 586 Bytes
-
https://huggingface.co/Wovchena/tiny-random-flux-fill/resolve/main/vae/config.json
- Command line
-
hf download hf://Wovchena/tiny-random-flux-fill/vae/config.json
-
curl -L -o config.json https://huggingface.co/Wovchena/tiny-random-flux-fill/resolve/main/vae/config.json
586 Bytes
| { | |
| "_class_name": "AutoencoderKL", | |
| "_diffusers_version": "0.32.1", | |
| "act_fn": "silu", | |
| "block_out_channels": [ | |
| 4 | |
| ], | |
| "down_block_types": [ | |
| "DownEncoderBlock2D" | |
| ], | |
| "force_upcast": true, | |
| "in_channels": 3, | |
| "latent_channels": 2, | |
| "latents_mean": null, | |
| "latents_std": null, | |
| "layers_per_block": 1, | |
| "mid_block_add_attention": true, | |
| "norm_num_groups": 1, | |
| "out_channels": 3, | |
| "sample_size": 32, | |
| "scaling_factor": 1.5035, | |
| "shift_factor": 0.0609, | |
| "up_block_types": [ | |
| "UpDecoderBlock2D" | |
| ], | |
| "use_post_quant_conv": false, | |
| "use_quant_conv": false | |
| } | |