This app is a Python application that uses Gradio to create a simple user interface for generating images based on sketches using ComfyUI as the backend.
Before running the application, make sure you have the following installed:
- Python 3.11 or more
- Gradio (pip install gradio)
- Pillow (pip install Pillow)
- Requests (pip install requests)
- Clone the repository '''bash git clone https://github.com/mehbayat/sketch2img.git cd sketch2img '''
python comfyui.pyThis will launch the Gradio interface, allowing you to interact with the image generation process.
You can configure the application by modifying the constants in the comfyui.py file:
OUTPUT_PATH: The path where generated images will be saved.INPUT_PATH: The path where input images are stored.URL: The URL of the backend server for communication.
- Gradio
- Pillow
- Requests
Install the dependencies using:
pip install -r requirements.txtThis project is licensed under the MIT License.
- ComfyUI - link
- Gradio - link
Feel free to contribute to the project or report issues. Happy coding!
