adirik/leditsplusplus 🔢🖼️📝 → 🖼️
About
LEdits++ for image editing

Example Output
Output

Performance Metrics
11.80s
Prediction Time
11.81s
Total Time
All Input Parameters
{ "skip": 0.3, "image": "https://replicate.delivery/pbxt/Kdrtkd4IdmtW53B6l9tG1upqxL6xFMhXobvcQ27qayMQFAIA/girl_with_a_pearl_earring.jpeg", "edit_threshold": "0.75", "editing_prompts": "glasses", "edit_warmup_steps": 8, "edit_guidance_scale": "3.0", "num_inversion_steps": 50, "source_guidance_scale": 3.5, "reverse_editing_directions": "False" }
Input Parameters
- skip
- Portion of initial steps that will be ignored for inversion and subsequent generation. Lower values will lead to stronger changes to the input image.
- image (required)
- Input image to edit.
- source_prompt
- Prompt describing the input image that will be used for guidance during inversion. Guidance is disabled if the `source_prompt` is ``.
- edit_threshold
- Comma separated edit threshold float values for each editing prompt, threshold values should be proportional to the image region that is modified. *optional*, defaults to 0.9 if left empty.
- editing_prompts
- Comma separated objects to add, remove or edit. Defaults to None, which inverts and reconstructs the input image.
- negative_prompt
- Negative prompt for the first text encoder to guide the image generation. *optional*, defaults to None.
- negative_prompt2
- Negative prompt for the second text encoder to guide the image generation. *optional*, defaults to None if *negative_prompt* is also left empty, alternatively defaults to *negative_prompt* otherwise.
- edit_warmup_steps
- Number of diffusion steps (for each prompt) for which guidance is not applied
- edit_guidance_scale
- Comma separated float values for each change specified in editing prompts list. *optional*, defaults to 5 if left empty.
- num_inversion_steps
- Number of image inversion steps.
- source_guidance_scale
- Strength of guidance during inversion.
- reverse_editing_directions
- Comma separated True or False boolean values indicating whether the corresponding prompt in `editing_prompts` should be increased or decreased to add, remove or edit. *optional*, defaults to `False`
Output Schema
Output
Example Execution Logs
Your input images far exceed the default resolution of the underlying diffusion model. The output images may contain severe artifacts! Consider down-sampling the input using the `height` and `width` parameters 0%| | 0/50 [00:00<?, ?it/s] 4%|▍ | 2/50 [00:00<00:03, 13.15it/s] 8%|▊ | 4/50 [00:00<00:03, 12.97it/s] 12%|█▏ | 6/50 [00:00<00:03, 12.77it/s] 16%|█▌ | 8/50 [00:00<00:03, 12.73it/s] 20%|██ | 10/50 [00:00<00:03, 12.76it/s] 24%|██▍ | 12/50 [00:00<00:02, 12.75it/s] 28%|██▊ | 14/50 [00:01<00:02, 12.78it/s] 32%|███▏ | 16/50 [00:01<00:02, 12.85it/s] 36%|███▌ | 18/50 [00:01<00:02, 12.82it/s] 40%|████ | 20/50 [00:01<00:02, 12.79it/s] 44%|████▍ | 22/50 [00:01<00:02, 12.79it/s] 48%|████▊ | 24/50 [00:01<00:02, 12.70it/s] 52%|█████▏ | 26/50 [00:02<00:01, 12.67it/s] 56%|█████▌ | 28/50 [00:02<00:01, 12.70it/s] 60%|██████ | 30/50 [00:02<00:01, 12.70it/s] 64%|██████▍ | 32/50 [00:02<00:01, 12.63it/s] 68%|██████▊ | 34/50 [00:02<00:01, 12.60it/s] 72%|███████▏ | 36/50 [00:02<00:01, 12.62it/s] 76%|███████▌ | 38/50 [00:02<00:00, 12.60it/s] 80%|████████ | 40/50 [00:03<00:00, 12.63it/s] 84%|████████▍ | 42/50 [00:03<00:00, 12.67it/s] 88%|████████▊ | 44/50 [00:03<00:00, 12.63it/s] 92%|█████████▏| 46/50 [00:03<00:00, 12.60it/s] 96%|█████████▌| 48/50 [00:03<00:00, 12.56it/s] 100%|██████████| 50/50 [00:03<00:00, 12.36it/s] 100%|██████████| 50/50 [00:03<00:00, 12.66it/s] 0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:00<00:06, 7.98it/s] 4%|▍ | 2/50 [00:00<00:06, 7.96it/s] 6%|▌ | 3/50 [00:00<00:05, 7.95it/s] 8%|▊ | 4/50 [00:00<00:05, 7.95it/s] 10%|█ | 5/50 [00:00<00:05, 7.95it/s] 12%|█▏ | 6/50 [00:00<00:05, 7.93it/s] 14%|█▍ | 7/50 [00:00<00:05, 7.94it/s] 16%|█▌ | 8/50 [00:01<00:05, 7.94it/s] 18%|█▊ | 9/50 [00:01<00:05, 7.93it/s] 20%|██ | 10/50 [00:01<00:05, 7.93it/s] 22%|██▏ | 11/50 [00:01<00:04, 7.93it/s] 24%|██▍ | 12/50 [00:01<00:04, 7.93it/s] 26%|██▌ | 13/50 [00:01<00:04, 7.93it/s] 28%|██▊ | 14/50 [00:01<00:04, 7.74it/s] 30%|███ | 15/50 [00:01<00:04, 7.80it/s] 32%|███▏ | 16/50 [00:02<00:04, 7.84it/s] 34%|███▍ | 17/50 [00:02<00:04, 7.87it/s] 36%|███▌ | 18/50 [00:02<00:04, 7.89it/s] 38%|███▊ | 19/50 [00:02<00:03, 7.90it/s] 40%|████ | 20/50 [00:02<00:03, 7.91it/s] 42%|████▏ | 21/50 [00:02<00:03, 7.92it/s] 44%|████▍ | 22/50 [00:02<00:03, 7.92it/s] 46%|████▌ | 23/50 [00:02<00:03, 7.92it/s] 48%|████▊ | 24/50 [00:03<00:03, 7.93it/s] 50%|█████ | 25/50 [00:03<00:03, 7.93it/s] 52%|█████▏ | 26/50 [00:03<00:03, 7.93it/s] 54%|█████▍ | 27/50 [00:03<00:02, 7.92it/s] 56%|█████▌ | 28/50 [00:03<00:02, 7.93it/s] 58%|█████▊ | 29/50 [00:03<00:02, 7.91it/s] 60%|██████ | 30/50 [00:03<00:02, 7.91it/s] 62%|██████▏ | 31/50 [00:03<00:02, 7.91it/s] 64%|██████▍ | 32/50 [00:04<00:02, 7.92it/s] 66%|██████▌ | 33/50 [00:04<00:02, 7.92it/s] 68%|██████▊ | 34/50 [00:04<00:02, 7.92it/s] 70%|███████ | 35/50 [00:04<00:01, 7.92it/s] 72%|███████▏ | 36/50 [00:04<00:01, 7.92it/s] 74%|███████▍ | 37/50 [00:04<00:01, 7.76it/s] 76%|███████▌ | 38/50 [00:04<00:01, 7.80it/s] 78%|███████▊ | 39/50 [00:04<00:01, 7.84it/s] 80%|████████ | 40/50 [00:05<00:01, 7.87it/s] 82%|████████▏ | 41/50 [00:05<00:01, 7.87it/s] 84%|████████▍ | 42/50 [00:05<00:01, 7.89it/s] 86%|████████▌ | 43/50 [00:05<00:00, 7.90it/s] 88%|████████▊ | 44/50 [00:05<00:00, 7.92it/s] 90%|█████████ | 45/50 [00:05<00:00, 7.92it/s] 92%|█████████▏| 46/50 [00:05<00:00, 7.92it/s] 94%|█████████▍| 47/50 [00:05<00:00, 7.92it/s] 96%|█████████▌| 48/50 [00:06<00:00, 7.92it/s] 98%|█████████▊| 49/50 [00:06<00:00, 7.93it/s] 100%|██████████| 50/50 [00:06<00:00, 7.93it/s] 100%|██████████| 50/50 [00:06<00:00, 7.90it/s]
Version Details
- Version ID
ea5b4a96d43c51d9b5a579177b9044e631fbb4dbfaae51367a226a65663dfebe
- Version Created
- March 27, 2024