Fix: colab stdout error, so replace with stdout wrapper

This commit is contained in:
litagin02
2023-12-30 09:58:32 +09:00
parent f1441c35f2
commit 35a8bb514f
9 changed files with 20 additions and 16 deletions

View File

@@ -1,6 +1,5 @@
import argparse
import concurrent.futures
import sys
import warnings
import numpy as np
@@ -9,6 +8,7 @@ from tqdm import tqdm
import utils
from config import config
from tools.stdout_wrapper import get_stdout
warnings.filterwarnings("ignore", category=UserWarning)
from pyannote.audio import Inference, Model
@@ -59,7 +59,7 @@ if __name__ == "__main__":
tqdm(
executor.map(save_style_vector, wavnames),
total=len(wavnames),
file=sys.stdout,
file=get_stdout(),
)
)