Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Miuzarte committed Apr 9, 2023
1 parent b228fff commit e1c0cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def process(item):
parser.add_argument("--in_dir", type=str, default="./dataset_raw", help="path to source dir")
parser.add_argument("--out_dir2", type=str, default="./dataset/44k", help="path to target dir")
args = parser.parse_args()
processs = cpu_count()-2 if cpu_count() >4 else 1
processs = 30 if cpu_count() > 60 else (cpu_count()-2 if cpu_count() > 4 else 1)
pool = Pool(processes=processs)

for speaker in os.listdir(args.in_dir):
Expand Down

0 comments on commit e1c0cf8

Please sign in to comment.