lllyasviel / lllyasviel/LayerDiffuse

Another nice integration with Hugging Face Diffusers

Open
#34 0 comments 1 reaction 0 assignees View on GitHub

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**
![image](https://github.com/layerdiffusion/LayerDiffuse/assets/58141669/905dbaa4-ee12-4824-9b9a-f65141065076)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.