2024-11-08 22:29:20 +08:00
2024-11-08 22:29:20 +08:00
2024-11-08 22:29:20 +08:00
2024-11-08 20:35:48 +08:00
2024-11-08 17:33:35 +08:00
2024-11-08 22:29:20 +08:00
2024-11-08 17:33:35 +08:00

StableDelight ComfyUI Node

Installation

  1. Install ComfyUI following the instructions at ComfyUI

  2. Clone this repository into ComfyUI's custom_nodes directory:

git clone https://github.com/Stable-X/StableDelight.git

Torch Hub Loader 🚀

To use the StableDelight pipeline, you can instantiate the model and apply it to an image as follows:

import torch
from PIL import Image

# Load an image
input_image = Image.open("path/to/your/image.jpg")

# Create predictor instance
predictor = torch.hub.load("Stable-X/StableDelight", "StableDelight_turbo", trust_repo=True)

# Apply the model to the image
delight_image = predictor(input_image)

# Save or display the result
delight_image.save("output/delight.png")

Gradio interface 🤗

We also provide a Gradio interface for a better experience, just run by:

# For Linux and Windows users (and macOS with Intel??)
python app.py

You can specify the --server_port, --share, --server_name arguments to satisfy your needs!

S
Description
No description provided
Readme
53 KiB
Languages
Python 100%