Instructions to use Beckham808/LightGen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Beckham808/LightGen with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Beckham808/LightGen", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Commit ·
e2da33d
1
Parent(s): 106fd36
change title
Browse files
README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
|
| 5 |
-
#
|
| 6 |
|
| 7 |
<p align="center">
|
| 8 |
<img src="https://github.com/XianfengWu01/LightGen/blob/main/demo/demo.png" width="720">
|
|
|
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
|
| 5 |
+
# LightGen: Efficient Image Generation through Knowledge Distillation and Direct Preference Optimization
|
| 6 |
|
| 7 |
<p align="center">
|
| 8 |
<img src="https://github.com/XianfengWu01/LightGen/blob/main/demo/demo.png" width="720">
|