Instructions to use GeorgeQi/SDXL-Shadow_Generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use GeorgeQi/SDXL-Shadow_Generation with Diffusers:
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 ) - Notebooks
- Google Colab
- Kaggle
metadata
tags:
- SDXL
- controlnet
- diffusers
- shadow generation
widget:
- text: a product with soft natural shadow, white background
output:
url: pictures/pic1.png
- text: a product with hard natural shadow, white background
output:
url: pictures/pic2.png
- text: a product with floating natural shadow, white background
output:
url: pictures/pic3.png
- text: a product with soft natural shadow, white background
output:
url: pictures/pic4.png
- text: a product with hard natural shadow, white background
output:
url: pictures/pic5.png
- text: a product with floating natural shadow, white background
output:
url: pictures/pic6.png
- text: a product with soft natural shadow, white background
output:
url: pictures/pic7.png
- text: a product with hard natural shadow, white background
output:
url: pictures/pic9.png
- text: a product with floating natural shadow, white background
output:
url: pictures/pic8.png
base_model:
- stabilityai/stable-diffusion-xl-base-1.0
license: other
license_name: sdxl-non-commercial-license

- 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