Spaces:
Runtime error
Runtime error
fix for latest version of diffusers
Browse files
audiodiffusion/__init__.py
CHANGED
@@ -11,7 +11,7 @@ from diffusers import (DiffusionPipeline, UNet2DConditionModel, DDIMScheduler,
|
|
11 |
|
12 |
from .mel import Mel
|
13 |
|
14 |
-
VERSION = "1.2.
|
15 |
|
16 |
|
17 |
class AudioDiffusion:
|
|
|
11 |
|
12 |
from .mel import Mel
|
13 |
|
14 |
+
VERSION = "1.2.4"
|
15 |
|
16 |
|
17 |
class AudioDiffusion:
|
scripts/train_unconditional.py
CHANGED
@@ -126,10 +126,10 @@ def main(args):
|
|
126 |
|
127 |
if args.scheduler == "ddpm":
|
128 |
noise_scheduler = DDPMScheduler(
|
129 |
-
num_train_timesteps=args.num_train_steps
|
130 |
else:
|
131 |
noise_scheduler = DDIMScheduler(
|
132 |
-
num_train_timesteps=args.num_train_steps
|
133 |
|
134 |
optimizer = torch.optim.AdamW(
|
135 |
model.parameters(),
|
|
|
126 |
|
127 |
if args.scheduler == "ddpm":
|
128 |
noise_scheduler = DDPMScheduler(
|
129 |
+
num_train_timesteps=args.num_train_steps)
|
130 |
else:
|
131 |
noise_scheduler = DDIMScheduler(
|
132 |
+
num_train_timesteps=args.num_train_steps)
|
133 |
|
134 |
optimizer = torch.optim.AdamW(
|
135 |
model.parameters(),
|