Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 24, 2024
1 parent a6a8089 commit ce72b34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions egs/librilight/SSL/local/extract_kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import argparse
import logging
import math
import os
from pathlib import Path
from typing import Optional

Expand All @@ -36,6 +37,8 @@
torch.set_num_threads(1)
torch.set_num_interop_threads(1)

os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "max_split_size_mb:512"


class ApplyKmeans(object):
def __init__(self, km_path):
Expand Down
2 changes: 1 addition & 1 deletion egs/librilight/SSL/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fi

if [ $stage -le 3 ] && [ $stop_stage -ge 3 ]; then
log "Stage 3: Split medium and large subset into pieces"
num_per_split=2500
num_per_split=10000
split_dir=data/kmeans/medium_split
if [ ! -f $split_dir/.split_completed ]; then
lhotse split-lazy ./data/kmeans/librilight_cuts_medium_raw.jsonl.gz $split_dir $num_per_split
Expand Down

0 comments on commit ce72b34

Please sign in to comment.