Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
from pathlib import Path | |
lab = Path("01.lab.txt").read_text() | |
i = 0 | |
out_labs = [] | |
for l in lab.splitlines(): | |
a, b, c = l.split() | |
if c == "pau": |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import numpy | |
from scipy.spatial.distance import cdist | |
def load_vector(path_format: Path): | |
predicted_vectors = [] | |
true_speaker_nums = [] | |
for speaker_num in range(100): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
from typing import Union, Sequence | |
import librosa | |
import numpy | |
from librosa.effects import _signal_to_frame_nonsilent | |
from matplotlib import pyplot | |
from tqdm import tqdm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing | |
import threading | |
import time | |
import timeout_decorator | |
def countup(): | |
for i in range(1, 10): | |
time.sleep(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `seq 0 4`; do python check.py & done | |
# [1] 83406 | |
# [2] 83407 | |
# [3] 83408 | |
# [4] 83409 | |
# [5] 83410 | |
# start sleep 0 | |
# finish sleep 0 | |
# start sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hh-audio-movie () { | |
ffmpeg -y -i $1 \ | |
-filter_complex "[0:a]showwaves=mode=p2p:s=hd480:colors=Cyan[v]" \ | |
-map "[v]" -map 0:a -pix_fmt yuv420p \ | |
-b:a 360k $2 | |
} |
NewerOlder