Instructions to use stabilityai/SAME-L with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Stable Audio 3
How to use stabilityai/SAME-L with Stable Audio 3:
# 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
fix README.md: using with stable-audio-3 code block style
#1
by ivnvalex - opened
README.md
CHANGED
|
@@ -34,6 +34,7 @@ This model can be used with:
|
|
| 34 |
|
| 35 |
|
| 36 |
### Using with `stable-audio-3`
|
|
|
|
| 37 |
import torchaudio
|
| 38 |
from stable_audio_3 import AutoencoderModel
|
| 39 |
|
|
@@ -41,7 +42,7 @@ ae = AutoencoderModel.from_pretrained("same-l")
|
|
| 41 |
waveform, sr = torchaudio.load("audio.wav")
|
| 42 |
latents = ae.encode(waveform, sr)
|
| 43 |
audio_out = ae.decode(latents)
|
| 44 |
-
|
| 45 |
|
| 46 |
### Using with `stable-audio-tools`
|
| 47 |
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
### Using with `stable-audio-3`
|
| 37 |
+
```python
|
| 38 |
import torchaudio
|
| 39 |
from stable_audio_3 import AutoencoderModel
|
| 40 |
|
|
|
|
| 42 |
waveform, sr = torchaudio.load("audio.wav")
|
| 43 |
latents = ae.encode(waveform, sr)
|
| 44 |
audio_out = ae.decode(latents)
|
| 45 |
+
```
|
| 46 |
|
| 47 |
### Using with `stable-audio-tools`
|
| 48 |
|