Img2Img Guide for LightDiffusion¶
Welcome to the Img2Img guide for LightDiffusion. This document will help you understand how to use the Img2Img feature in LightDiffusion-Next to transform existing images into new, high-quality visuals.
Table of Contents¶
- Introduction
- Prerequisites
- Basic Usage
- Using the GUI
- Using the CLI
- Tips and Tricks
- Troubleshooting
Introduction¶
Img2Img is a powerful feature in LightDiffusion-Next that allows you to generate new images based on existing ones. By providing a source image and a text prompt, you can create stunning transformations and enhancements.
Prerequisites¶
Before you begin, ensure you have the following:
- LightDiffusion-Next properly installed on your system.
- A source image that you want to transform.
- Basic understanding of how to create prompts in LightDiffusion. Refer to the Prompting Guide for more information.
Basic Usage¶
Using the GUI¶
- Launch LightDiffusion-Next: Start the application using
run.bat
(Windows) orrun.sh
(Linux). - Set Parameters:
- Enter your prompt describing the desired output
- Set the denoising strength (how much change will be applied)
- Configure other settings like width, height, and sampling method
- Generate: Click the “Img2Img” button to select and transform your image.
Using the CLI¶
To use Img2Img in the command-line interface:
./pipeline.bat "path/to/your/image.png" width height number_of_images batch_size --img2img
For example:
./pipeline.bat "./_internal/output/Classic/LD_00001_.png" 1024 768 1 1 --img2img
Tips and Tricks¶
- Experiment with CFG Scale: The CFG scale controls the adherence to the prompt. Higher values result in more adherence but can lead to overfitting.
- Use High-Quality Descriptions: Detailed and specific descriptions yield better results.
- Leverage Negative Prompts: Use negative prompts to filter out unwanted elements.
- Iterate and Refine: Generate multiple images and refine your prompts based on the results.
Troubleshooting¶
If you encounter issues with Img2Img, consider the following:
- Check for Typos: Ensure there are no typos in your prompt.
- Simplify Your Prompt: Start with a simple prompt and gradually add complexity.
- Open an Issue: If you encounter persistent issues, open an issue on the LightDiffusion-Next GitHub repository
Wish you good generations!