Spaces:
Running
on
Zero
Running
on
Zero
chong.zhang
commited on
Commit
·
5b58efa
1
Parent(s):
a923215
update
Browse files
inspiremusic/cli/inference.py
CHANGED
@@ -266,7 +266,7 @@ def get_args():
|
|
266 |
args = parser.parse_args()
|
267 |
|
268 |
if not args.model_dir:
|
269 |
-
args.model_dir = os.path.join("
|
270 |
|
271 |
print(args)
|
272 |
return args
|
|
|
266 |
args = parser.parse_args()
|
267 |
|
268 |
if not args.model_dir:
|
269 |
+
args.model_dir = os.path.join("pretrained_models", args.model_name)
|
270 |
|
271 |
print(args)
|
272 |
return args
|
inspiremusic/flow/flow.py
CHANGED
@@ -39,7 +39,7 @@ class MaskedDiff(torch.nn.Module):
|
|
39 |
'n_blocks': 4, 'num_mid_blocks': 12, 'num_heads': 8, 'act_fn': 'gelu'}},
|
40 |
mel_feat_conf: Dict = {'n_fft': 1024, 'num_mels': 128, 'sampling_rate': 48000,
|
41 |
'hop_size': 256, 'win_size': 1024, 'fmin': 0, 'fmax': 48000},
|
42 |
-
generator_model_dir: str = "
|
43 |
num_codebooks: int = 4
|
44 |
):
|
45 |
super().__init__()
|
|
|
39 |
'n_blocks': 4, 'num_mid_blocks': 12, 'num_heads': 8, 'act_fn': 'gelu'}},
|
40 |
mel_feat_conf: Dict = {'n_fft': 1024, 'num_mels': 128, 'sampling_rate': 48000,
|
41 |
'hop_size': 256, 'win_size': 1024, 'fmin': 0, 'fmax': 48000},
|
42 |
+
generator_model_dir: str = "pretrained_models/InspireMusic-Base/music_tokenizer",
|
43 |
num_codebooks: int = 4
|
44 |
):
|
45 |
super().__init__()
|