Skip to content

Commit 0812020

Browse files
authored
Add files via upload
1 parent 66667c8 commit 0812020

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

train/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,10 @@ def get_hparams(init=True):
360360
if not os.path.exists(experiment_dir):
361361
os.makedirs(experiment_dir)
362362

363-
config_path = "configs/%s.json" % args.sample_rate
363+
if(args.version=="v1"or args.sample_rate=="40k"):
364+
config_path = "configs/%s.json" % args.sample_rate
365+
else:
366+
config_path = "configs/%s_v2.json" % args.sample_rate
364367
config_save_path = os.path.join(experiment_dir, "config.json")
365368
if init:
366369
with open(config_path, "r") as f:

0 commit comments

Comments
 (0)