嘉渊 пре 2 година
родитељ
комит
ce30011976
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      funasr/utils/prepare_data.py

+ 1 - 1
funasr/utils/prepare_data.py

@@ -90,7 +90,7 @@ def calc_shape(args, dataset, nj=32):
     start = 0
     start = 0
     for i in range(nj):
     for i in range(nj):
         end = start + num_job_lines
         end = start + num_job_lines
-        file = os.path.join(shape_path, "wav.scp.{}".format(str(i + 1)))
+        file = os.path.join(split_shape_path, "wav.scp.{}".format(str(i + 1)))
         with open(file, "w") as f:
         with open(file, "w") as f:
             if i == nj - 1:
             if i == nj - 1:
                 f.writelines(lines[start:])
                 f.writelines(lines[start:])