lllyasviel / lllyasviel/LayerDiffuse
Another nice integration with Hugging Face Diffusers
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 2.2k
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
Github -> https://github.com/jnkl314/diffusers_LayerDiffuse
It integrates better with Diffusers by hiding away the implementation in a new pipeline class `StableDiffusionXLLayerDiffusePipeline`.
Generating a transparent image is now as easy as using any other Diffusers pipeline.
**Usage snippet**
```python
import torch
from diffusers_extension.pipeline_stable_diffusion_xl_layer_diffuse import StableDiffusionXLLayerDiffusePipeline
pipeline = StableDiffusionXLLayerDiffusePipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
variant="fp16",
).to("cuda")
images = pipeline(
prompt="portrait of woman in suit with messy hair, high resolution, photorealistic, uniform textureless background",
negative_prompt="ugly, bad, shadow, artifact, blurry",
num_inference_steps=20,
width=1024,
height=1024,
generator=torch.Generator(device="cuda").manual_seed(42)
).images
images[0].save("sdxl_layerdiffuse_result.png")
```
**Overview**

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the referenced diffusers_LayerDiffuse repository and the proposed StableDiffusionXLLayerDiffusePipeline usage in the issue. Compare its integration points with this repository and verify that the resulting pipeline can generate and save a transparent image using the shown Diffusers example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- huggingface, python
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100