Spaces:
Build error
Build error
Update soni_translate/mdx_net.py
Browse files366 unmodified lines367368369370371372373374375376377378379380381382383384366 unmodified lines processor_num = -1 m_threads = 1
if os.environ.get("ZERO_GPU") == "TRUE": duration = librosa.get_duration(filename=filename)
if duration < 60: pass elif duration >= 60 and duration <= 900: m_threads = 4 elif duration > 900: m_threads = 16
logger.info(f"MDX-NET Threads: {m_threads}, duration {duration}") model_hash = MDX.get_hash(model_path) mp = model_params.get(model_hash) model = MDXModel(soni_translate/mdx_net.py+12