Image-to-Image
Diffusers
ONNX
Safetensors
StableDiffusionXLInpaintPipeline
stable-diffusion-xl
inpainting
virtual try-on
Instructions to use Aeryphilo/VTON-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Aeryphilo/VTON-model with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import AutoPipelineForInpainting from diffusers.utils import load_image # switch to "mps" for apple devices pipe = AutoPipelineForInpainting.from_pretrained("Aeryphilo/VTON-model", dtype=torch.float16, device_map="cuda") img_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png" mask_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png" image = load_image(img_url).resize((1024, 1024)) mask_image = load_image(mask_url).resize((1024, 1024)) prompt = "a tiger sitting on a park bench" generator = torch.Generator(device="cuda").manual_seed(0) image = pipe( prompt=prompt, image=image, mask_image=mask_image, guidance_scale=8.0, num_inference_steps=20, # steps between 15 and 30 work well for us strength=0.99, # make sure to use `strength` below 1.0 generator=generator, ).images[0] - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload vae/diffusion_pytorch_model.safetensors with huggingface_hub
Verified signature755735a -
Upload vae/config.json with huggingface_hub
Verified signaturea931fb5 -
Upload humanparsing/parsing_lip.onnx with huggingface_hub
Verified signature50cd74c -
Upload humanparsing/parsing_atr.onnx with huggingface_hub
Verified signature874d657 -
Upload assets/teaser.png with huggingface_hub
Verified signature8e5f8ac -
Upload assets/teaser2.png with huggingface_hub
Verified signatureb4c9ee5 -
Upload tokenizer_2/vocab.json with huggingface_hub
Verified signaturefb9de9c -
Upload tokenizer_2/merges.txt with huggingface_hub
Verified signature71872e6 -
Upload tokenizer_2/special_tokens_map.json with huggingface_hub
Verified signature78b8212 -
Upload tokenizer_2/tokenizer_config.json with huggingface_hub
Verified signaturec585d1b -
Upload image_encoder/config.json with huggingface_hub
Verified signatured1eb727 -
Upload image_encoder/model.safetensors with huggingface_hub
Verified signatured1e5596 -
Upload unet/diffusion_pytorch_model.bin with huggingface_hub
Verified signature9dbef86 -
Upload unet/config.json with huggingface_hub
Verified signature9011e5c -
Upload unet_encoder/diffusion_pytorch_model.safetensors with huggingface_hub
Verified signature5d86408 -
Upload unet_encoder/config.json with huggingface_hub
Verified signaturef6a2e5f -
Upload text_encoder/config.json with huggingface_hub
Verified signatureddd5105 -
Upload text_encoder/model.safetensors with huggingface_hub
Verified signaturef175bce -
Upload scheduler/scheduler_config.json with huggingface_hub
Verified signatureaf2f0c3 -
Upload tokenizer/vocab.json with huggingface_hub
Verified signature9c485d7 -
Upload tokenizer/merges.txt with huggingface_hub
Verified signature05fa82a -
Upload tokenizer/special_tokens_map.json with huggingface_hub
Verified signature47203b1 -
Upload tokenizer/tokenizer_config.json with huggingface_hub
Verified signaturedc6081c -
Upload text_encoder_2/config.json with huggingface_hub
Verified signature648cd11 -
Upload text_encoder_2/model.safetensors with huggingface_hub
Verified signature3b9d196 -
Upload densepose/model_final_162be9.pkl with huggingface_hub
Verified signature9e39d71 -
Upload openpose/ckpts/body_pose_model.pth with huggingface_hub
Verified signatured88fb9d -
Upload .gitattributes with huggingface_hub
Verified signature22ebe27 -
Upload README.md with huggingface_hub
Verified signaturedc1ff53 -
Upload model_index.json with huggingface_hub
Verified signature577668f -
initial commit
Verified signaturedc753ce