Instructions to use gatilin/duo-av-codecs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use gatilin/duo-av-codecs with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("gatilin/duo-av-codecs", 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
Download validation_audio.json from gatilin/duo-av-codecs: direct link, hf CLI and curl.
- Browser
- Download file 669 Bytes
-
https://huggingface.co/gatilin/duo-av-codecs/resolve/main/validation_audio.json
- Command line
-
hf download hf://gatilin/duo-av-codecs/validation_audio.json
-
curl -L -o validation_audio.json https://huggingface.co/gatilin/duo-av-codecs/resolve/main/validation_audio.json
669 Bytes
| { | |
| "passed": true, | |
| "source_repo": "inclusionAI/Duo-1.2-causal-base", | |
| "code_revision": "068e357ede2bdea233b408645301e522f560da73", | |
| "strict_load": true, | |
| "tensor_count": 1087, | |
| "input": "synthetic mono Gaussian waveform, 1600 samples at 32 kHz", | |
| "input_shape": [ | |
| 1, | |
| 1, | |
| 1600 | |
| ], | |
| "latent_shape": [ | |
| 1, | |
| 32, | |
| 2 | |
| ], | |
| "output_shape": [ | |
| 1, | |
| 1, | |
| 1600 | |
| ], | |
| "output_rms": 0.03969992324709892, | |
| "latent_normalization": "raw model encode/decode, no pipeline normalization", | |
| "device": "CPU float32", | |
| "source_file_sha256": "52c59e67ba8de5477c81bfbced0327aabf500f1bfdeefd5ee754529241cb26cb", | |
| "real_audio_quality_tested": false | |
| } | |