How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline

controlnet = ControlNetModel.from_pretrained("GeorgeQi/SDXL-Shadow_Generation")
pipe = StableDiffusionControlNetPipeline.from_pretrained(
	"stabilityai/stable-diffusion-xl-base-1.0", controlnet=controlnet
)
Prompt
a product with soft natural shadow, white background
Prompt
a product with hard natural shadow, white background
Prompt
a product with floating natural shadow, white background
Prompt
a product with soft natural shadow, white background
Prompt
a product with hard natural shadow, white background
Prompt
a product with floating natural shadow, white background
Prompt
a product with soft natural shadow, white background
Prompt
a product with hard natural shadow, white background
Prompt
a product with floating natural shadow, white background

Inference

python3 generate_shadow_main.py

Gradio Demo

python3 app_shadow_generation_gradio.py

Training

Training was done using https://github.com/huggingface/diffusers/blob/main/examples/controlnet/train_controlnet_sdxl.py

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for GeorgeQi/SDXL-Shadow_Generation

Adapter
(8377)
this model