Instructions to use callgg/hyimg-decoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use callgg/hyimg-decoder with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("callgg/hyimg-decoder", 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
File size: 421 Bytes
96b1046 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | {
"_class_name": "AutoencoderKLHunyuanImage",
"_diffusers_version": "0.36.0.dev0",
"block_out_channels": [
128,
256,
512,
512,
1024,
1024
],
"downsample_match_channel": true,
"in_channels": 3,
"latent_channels": 64,
"layers_per_block": 2,
"out_channels": 3,
"sample_size": 384,
"scaling_factor": 0.75289,
"spatial_compression_ratio": 32,
"upsample_match_channel": true
}
|