Skip to content
프로젝트

소개

Few-step image generation with LCM LoRA adapters in a Colab notebook

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

LCM-LoRA

License: MIT Portfolio

Few-step image generation with Latent Consistency Models and LoRA adapters, packaged as a Google Colab notebook. The notebook supports SDXL, SD 1.5, and SSD-1B base models with their matching LCM LoRA adapters.

Open in Colab

What is inside

LCM_LoRA.ipynb is the complete workflow:

  1. Install diffusers and accelerate.
  2. Select a matching base model and LCM LoRA adapter.
  3. Load the pipeline in fp16 with LCMScheduler.
  4. Generate an image from a prompt with a small number of inference steps.

The notebook defaults to SDXL + latent-consistency/lcm-lora-sdxl, four inference steps, and guidance scale 1.0. Those values are starting points, not universal optima.

Model pairs

Use a base model and adapter that belong together:

Base model LCM LoRA adapter
stabilityai/stable-diffusion-xl-base-1.0 latent-consistency/lcm-lora-sdxl
runwayml/stable-diffusion-v1-5 latent-consistency/lcm-lora-sdv1-5
segmind/SSD-1B latent-consistency/lcm-lora-ssd-1b

Run it

  1. Open the notebook in Colab.
  2. Select a GPU runtime. A T4 is sufficient for the default SDXL path, though larger models may need more memory.
  3. Run the install cell.
  4. Choose a base model and its matching LoRA.
  5. Enter a prompt and run the generation cell.

The notebook uses CUDA (pipe.to("cuda")). It is not configured as a CPU workflow.

Scope and limitations

  • This is a reference notebook, not a training or evaluation framework.
  • No generated images or model weights are committed here.
  • Model downloads and generated outputs are subject to the licenses and terms of the upstream model providers.
  • No speed or quality benchmark is claimed. Generation time depends on the Colab GPU, model pair, dtype, and inference settings.
  • The screenshots and examples in earlier versions of this README were illustrative.

Repository layout

LCM_LoRA.ipynb   Colab workflow and prompt cell
README.md        setup, model pairs, and scope
LICENSE          MIT license for this repository

License

The notebook and repository content are released under the MIT License. The models and adapters downloaded at runtime have their own licenses.

관련 프로젝트 살펴보기

불러오는 중…