Update README.md
Browse files
README.md
CHANGED
@@ -22,7 +22,7 @@ extra_gated_fields:
|
|
22 |
|
23 |
# Stable Audio Open 1.0
|
24 |
|
25 |
-
![image/
|
26 |
|
27 |
Please note: For commercial use, please refer to [https://stability.ai/license](https://stability.ai/license)
|
28 |
|
@@ -52,7 +52,7 @@ from stable_audio_tools.inference.generation import generate_diffusion_cond
|
|
52 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
53 |
|
54 |
# Download model
|
55 |
-
model, model_config = get_pretrained_model("
|
56 |
sample_rate = model_config["sample_rate"]
|
57 |
sample_size = model_config["sample_size"]
|
58 |
|
@@ -95,7 +95,7 @@ import torch
|
|
95 |
import soundfile as sf
|
96 |
from diffusers import StableAudioPipeline
|
97 |
|
98 |
-
pipe = StableAudioPipeline.from_pretrained("
|
99 |
pipe = pipe.to("cuda")
|
100 |
|
101 |
# define the prompts
|
|
|
22 |
|
23 |
# Stable Audio Open 1.0
|
24 |
|
25 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/64a22257d3149e05bc6d259f/o-a_0Afsjak21fExCtkRQ.png)
|
26 |
|
27 |
Please note: For commercial use, please refer to [https://stability.ai/license](https://stability.ai/license)
|
28 |
|
|
|
52 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
53 |
|
54 |
# Download model
|
55 |
+
model, model_config = get_pretrained_model("PsiPi/audio")
|
56 |
sample_rate = model_config["sample_rate"]
|
57 |
sample_size = model_config["sample_size"]
|
58 |
|
|
|
95 |
import soundfile as sf
|
96 |
from diffusers import StableAudioPipeline
|
97 |
|
98 |
+
pipe = StableAudioPipeline.from_pretrained("PsiPi/audio", torch_dtype=torch.float16)
|
99 |
pipe = pipe.to("cuda")
|
100 |
|
101 |
# define the prompts
|