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
|
@@ -359,7 +359,7 @@ Specify the VAE path in the configuration file:
|
|
| 359 |
```json
|
| 360 |
{
|
| 361 |
|
| 362 |
-
"
|
| 363 |
}
|
| 364 |
```
|
| 365 |
|
|
@@ -367,7 +367,7 @@ Specify the VAE path in the configuration file:
|
|
| 367 |
```json
|
| 368 |
{
|
| 369 |
"use_lightvae": true,
|
| 370 |
-
"
|
| 371 |
}
|
| 372 |
```
|
| 373 |
|
|
@@ -377,7 +377,7 @@ Specify the VAE path in the configuration file:
|
|
| 377 |
{
|
| 378 |
"use_tae": true,
|
| 379 |
"need_scaled": true,
|
| 380 |
-
"
|
| 381 |
}
|
| 382 |
```
|
| 383 |
|
|
@@ -386,7 +386,7 @@ Specify the VAE path in the configuration file:
|
|
| 386 |
```json
|
| 387 |
{
|
| 388 |
"use_tae": true,
|
| 389 |
-
"
|
| 390 |
}
|
| 391 |
```
|
| 392 |
|
|
|
|
| 359 |
```json
|
| 360 |
{
|
| 361 |
|
| 362 |
+
"vae_path": "./models/vae/Wan2.1_VAE.pth"
|
| 363 |
}
|
| 364 |
```
|
| 365 |
|
|
|
|
| 367 |
```json
|
| 368 |
{
|
| 369 |
"use_lightvae": true,
|
| 370 |
+
"vae_path": "./models/vae/lightvaew2_1.pth"
|
| 371 |
}
|
| 372 |
```
|
| 373 |
|
|
|
|
| 377 |
{
|
| 378 |
"use_tae": true,
|
| 379 |
"need_scaled": true,
|
| 380 |
+
"tae_path": "./models/vae/lighttaew2_1.pth"
|
| 381 |
}
|
| 382 |
```
|
| 383 |
|
|
|
|
| 386 |
```json
|
| 387 |
{
|
| 388 |
"use_tae": true,
|
| 389 |
+
"tae_path": "./models/vae/taew2_1.pth"
|
| 390 |
}
|
| 391 |
```
|
| 392 |
|