Instructions to use teticio/audio-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use teticio/audio-encoder with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("teticio/audio-encoder", 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
new version trained on 1000000 playlists and tracks
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ tags:
|
|
| 6 |
license: "gpl-3.0"
|
| 7 |
---
|
| 8 |
|
| 9 |
-
This model encodes audio files into vectors of 100 dimensions. It was trained on
|
| 10 |
|
| 11 |
To encode an audio first install the package with
|
| 12 |
```
|
|
@@ -20,4 +20,4 @@ from audiodiffusion.audio_encoder import AudioEncoder
|
|
| 20 |
|
| 21 |
audio_encoder = AudioEncoder.from_pretrained("teticio/audio-encoder")
|
| 22 |
audio_encoder.encode(<list of audio files>)
|
| 23 |
-
```
|
|
|
|
| 6 |
license: "gpl-3.0"
|
| 7 |
---
|
| 8 |
|
| 9 |
+
This model encodes audio files into vectors of 100 dimensions. It was trained on a million Spotify playlists and tracks. The details can be found [here](https://github.com/teticio/Deej-AI).
|
| 10 |
|
| 11 |
To encode an audio first install the package with
|
| 12 |
```
|
|
|
|
| 20 |
|
| 21 |
audio_encoder = AudioEncoder.from_pretrained("teticio/audio-encoder")
|
| 22 |
audio_encoder.encode(<list of audio files>)
|
| 23 |
+
```
|