wolverinn/ecommerce-virtual-try-on 🔢📝❓🖼️ → ❓

▶️ 3.0K runs 📅 May 2024 ⚙️ Cog 0.9.20
ecommerce fashion image-generation stable-diffusion virtual-try-on

About

Virtual try-on using Stable Diffusion and IP-Adapter

Example Output

Prompt:

"RAW photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3"

Output

{"images":["https://replicate.delivery/pbxt/1XYVewCJjMSqHCB5sFxKsqUTT6Yy9Fqgg6a30P3SVuMQJFrJA/7232b12c-62c0-11ef-8ee6-c6e234194ff1.png"],"payload":{"info":"{"prompt": "RAW photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3", "all_prompts": ["RAW photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3"], "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation", "all_negative_prompts": ["(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation"], "seed": 1723351911, "all_seeds": [1723351911], "subseed": 3818360559, "all_subseeds": [3818360559], "subseed_strength": 0, "width": 1013, "height": 1013, "sampler_name": "DPM++ 2M SDE", "cfg_scale": 7.0, "steps": 25, "batch_size": 1, "restore_faces": false, "face_restoration_model": null, "sd_model_name": "majicmixRealistic_v7", "sd_model_hash": "7c819b6d13", "sd_vae_name": null, "sd_vae_hash": null, "seed_resize_from_w": -1, "seed_resize_from_h": -1, "denoising_strength": 0.75, "extra_generation_params": {"ControlNet 0": "Module: canny, Model: control_v11p_sd15_canny [d14c016b], Weight: 1.0, Resize Mode: Crop and Resize, Processor Res: 1013, Threshold A: 1.0, Threshold B: 200.0, Guidance Start: 0.0, Guidance End: 1.0, Pixel Perfect: True, Control Mode: Balanced", "Denoising strength": 0.75, "Mask mode": "Inpaint not masked", "Mask blur": 2, "Inpaint area": "Only masked", "Masked area padding": 4, "Masked content": "latent noise", "Schedule type": "Karras"}, "index_of_first_image": 0, "infotexts": ["RAW photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
Negative prompt: (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation
Steps: 25, Sampler: DPM++ 2M SDE, Schedule type: Karras, CFG scale: 7.0, Seed: 1723351911, Size: 1013x1013, Model hash: 7c819b6d13, Model: majicmixRealistic_v7, Denoising strength: 0.75, ControlNet 0: \"Module: canny, Model: control_v11p_sd15_canny [d14c016b], Weight: 1.0, Resize Mode: Crop and Resize, Processor Res: 1013, Threshold A: 1.0, Threshold B: 200.0, Guidance Start: 0.0, Guidance End: 1.0, Pixel Perfect: True, Control Mode: Balanced\", Mask mode: Inpaint not masked, Mask blur: 2, Inpaint area: Only masked, Masked area padding: 4, Masked content: latent noise, Version: 1.10.1"], "styles": [], "job_timestamp": "20240825085938", "clip_skip": 1, "is_using_inpainting_conditioning": false, "version": "1.10.1"}"}}

Performance Metrics

41.86s Prediction Time
327.33s Total Time
All Input Parameters
{
  "seed": -1,
  "steps": 25,
  "prompt": "RAW photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3",
  "cfg_scale": 7,
  "max_width": 1024,
  "scheduler": "Karras",
  "face_image": "https://replicate.delivery/pbxt/Krypy7MKm9yVO5m0dU3hvptvrHCVc4hI9MaNLO1dWCltNMAA/face.jpg",
  "max_height": 1024,
  "sampler_name": "DPM++ 2M SDE",
  "commerce_image": "https://replicate.delivery/pbxt/KryqVJESqbELpIUmGP5tJzobFAA4qQNSCxtmacoc8eV56xOV/O1CN01Pt5KzK1J8GD1vGim3_%21%212200674960983.jpg",
  "negative_prompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation",
  "denoising_strength": 0.75,
  "only_masked_padding_pixels": 4
}
Input Parameters
seed Type: integerDefault: -1
seed
steps Type: integerDefault: 20
steps
prompt Type: stringDefault: RAW photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
prompt en
cfg_scale Type: integerDefault: 7
cfg scale
max_width Type: integerDefault: 1024
max width
scheduler Default: Karras
scheduler
face_image (required) Type: string
A person's face
max_height Type: integerDefault: 1024
max height
sampler_name Default: DPM++ 2M SDE
sampler name
commerce_image (required) Type: string
Image containing clothing and human pose
negative_prompt Type: stringDefault: (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation
negative prompt
denoising_strength Type: numberDefault: 0.75
denoising strength
only_masked_padding_pixels Type: integerDefault: 4
only masked padding,pixels
Output Schema
images Type: arrayItems: string
Images
payload Type: object
Payload
Example Execution Logs
/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/huggingface_hub/file_download.py:1150: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
Applying attention optimization: Doggettx... done.
Model loaded in 2.8s (load weights from disk: 1.1s, create model: 0.5s, apply weights to model: 0.6s, load textual inversion embeddings: 0.2s, calculate empty prompt: 0.2s).
/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/transformers/modeling_utils.py:884: FutureWarning: The `device` argument is deprecated and will be removed in v5 of Transformers.
warnings.warn(
Before NMS: 1 boxes
2024-08-25 08:59:38,526 - ControlNet - WARNING - Deprecated alias 'input_image' detected. This field will be removed on 2024-06-01Please use 'image' instead.
2024-08-25 08:59:38,531 - ControlNet - WARNING - Deprecated alias 'input_image' detected. This field will be removed on 2024-06-01Please use 'image' instead.
2024-08-25 08:59:38,532 - ControlNet - INFO - unit_separate = False, style_align = False
2024-08-25 08:59:38,887 - ControlNet - INFO - Loading model: control_v11p_sd15_canny [d14c016b]
2024-08-25 08:59:39,706 - ControlNet - INFO - Loaded state_dict from [/src/extensions/sd-webui-controlnet/models/control_v11p_sd15_canny.pth]
2024-08-25 08:59:39,706 - ControlNet - INFO - controlnet_default_config
2024-08-25 08:59:42,083 - ControlNet - INFO - ControlNet model control_v11p_sd15_canny [d14c016b](ControlModelType.ControlNet) loaded.
2024-08-25 08:59:42,189 - ControlNet - INFO - Using preprocessor: canny
2024-08-25 08:59:42,189 - ControlNet - INFO - preprocessor resolution = 1008
2024-08-25 08:59:42,229 - ControlNet - INFO - ControlNet Hooked - Time = 3.7016854286193848
  0%|          | 0/19 [00:00<?, ?it/s]
Total progress:   0%|          | 0/19 [00:00<?, ?it/s]
  5%|▌         | 1/19 [00:00<00:15,  1.19it/s]
Total progress:  11%|█         | 2/19 [00:00<00:06,  2.48it/s]
 11%|█         | 2/19 [00:01<00:13,  1.22it/s]
Total progress:  16%|█▌        | 3/19 [00:01<00:09,  1.75it/s]
 16%|█▌        | 3/19 [00:02<00:13,  1.23it/s]
Total progress:  21%|██        | 4/19 [00:02<00:09,  1.52it/s]
 21%|██        | 4/19 [00:03<00:12,  1.24it/s]
Total progress:  26%|██▋       | 5/19 [00:03<00:09,  1.41it/s]
 26%|██▋       | 5/19 [00:04<00:11,  1.24it/s]
Total progress:  32%|███▏      | 6/19 [00:04<00:09,  1.35it/s]
 32%|███▏      | 6/19 [00:04<00:10,  1.24it/s]
Total progress:  37%|███▋      | 7/19 [00:04<00:09,  1.31it/s]
 37%|███▋      | 7/19 [00:05<00:09,  1.24it/s]
Total progress:  42%|████▏     | 8/19 [00:05<00:08,  1.29it/s]
 42%|████▏     | 8/19 [00:06<00:08,  1.24it/s]
Total progress:  47%|████▋     | 9/19 [00:06<00:07,  1.27it/s]
 47%|████▋     | 9/19 [00:07<00:08,  1.24it/s]
Total progress:  53%|█████▎    | 10/19 [00:07<00:07,  1.26it/s]
 53%|█████▎    | 10/19 [00:08<00:07,  1.24it/s]
Total progress:  58%|█████▊    | 11/19 [00:08<00:06,  1.26it/s]
 58%|█████▊    | 11/19 [00:08<00:06,  1.24it/s]
Total progress:  63%|██████▎   | 12/19 [00:08<00:05,  1.25it/s]
 63%|██████▎   | 12/19 [00:09<00:05,  1.24it/s]
Total progress:  68%|██████▊   | 13/19 [00:09<00:04,  1.25it/s]
 68%|██████▊   | 13/19 [00:10<00:04,  1.24it/s]
Total progress:  74%|███████▎  | 14/19 [00:10<00:04,  1.22it/s]
 74%|███████▎  | 14/19 [00:11<00:04,  1.21it/s]
Total progress:  79%|███████▉  | 15/19 [00:11<00:03,  1.23it/s]
 79%|███████▉  | 15/19 [00:12<00:03,  1.22it/s]
Total progress:  84%|████████▍ | 16/19 [00:12<00:02,  1.23it/s]
 84%|████████▍ | 16/19 [00:12<00:02,  1.23it/s]
Total progress:  89%|████████▉ | 17/19 [00:12<00:01,  1.23it/s]
 89%|████████▉ | 17/19 [00:13<00:01,  1.23it/s]
Total progress:  95%|█████████▍| 18/19 [00:13<00:00,  1.24it/s]
 95%|█████████▍| 18/19 [00:14<00:00,  1.24it/s]
100%|██████████| 19/19 [00:15<00:00,  1.24it/s]
100%|██████████| 19/19 [00:15<00:00,  1.23it/s]
Total progress: 100%|██████████| 19/19 [00:14<00:00,  1.24it/s]
Total progress: 100%|██████████| 19/19 [00:15<00:00,  1.24it/s]
Total progress: 100%|██████████| 19/19 [00:15<00:00,  1.23it/s]
[ROOP.FACE-SWAPPER] Progressing...
[ROOP.FACE-ENHANCER] Progressing...
[ROOP.CORE] Processing to image succeed!
Version Details
Version ID
39860afc9f164ce9734d5666d17a771f986dd2bd3ad0935d845054f73bbec447
Version Created
August 25, 2024
Run on Replicate →