Instructions to use lightx2v/Autoencoders with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lightx2v/Autoencoders with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("lightx2v/Autoencoders", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Diffusion Single File
How to use lightx2v/Autoencoders with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -287,9 +287,9 @@ Specify the VAE path in the configuration file:
|
|
| 287 |
**Using LightTAE Series:**
|
| 288 |
```json
|
| 289 |
{
|
| 290 |
-
"
|
| 291 |
"need_scaled": true,
|
| 292 |
-
"
|
| 293 |
}
|
| 294 |
```
|
| 295 |
|
|
@@ -297,8 +297,8 @@ Specify the VAE path in the configuration file:
|
|
| 297 |
**Using TAE Series:**
|
| 298 |
```json
|
| 299 |
{
|
| 300 |
-
"
|
| 301 |
-
"
|
| 302 |
}
|
| 303 |
```
|
| 304 |
|
|
|
|
| 287 |
**Using LightTAE Series:**
|
| 288 |
```json
|
| 289 |
{
|
| 290 |
+
"use_tae": true,
|
| 291 |
"need_scaled": true,
|
| 292 |
+
"tae_pth": "./models/vae/lighttaew2_1.pth"
|
| 293 |
}
|
| 294 |
```
|
| 295 |
|
|
|
|
| 297 |
**Using TAE Series:**
|
| 298 |
```json
|
| 299 |
{
|
| 300 |
+
"use_tae": true,
|
| 301 |
+
"tae_pth": "./models/vae/taew2_1.pth"
|
| 302 |
}
|
| 303 |
```
|
| 304 |
|