nifty-coder commited on
Commit
c1dbbae
·
1 Parent(s): 0143af6
Files changed (1) hide show
  1. main.py +1 -5
main.py CHANGED
@@ -215,11 +215,7 @@ def run_demucs_and_extract(input_path: str, tmpdir: str) -> str:
215
  output_dir = os.path.join(tmpdir, "stems")
216
  os.makedirs(output_dir, exist_ok=True)
217
 
218
- # Memory optimization args:
219
- # -n htdemucs: Use Hybrid Transformer model (efficient)
220
- # --segment 4: Process 4 second chunks (default 10) to save RAM
221
- # -j 2: Limit threads
222
- cmd = DEMUCS_CMD + ["-n", "htdemucs", "--segment", "4", "-j", "2", "-o", output_dir, input_path]
223
  logger.info(f"Running demucs: {' '.join(cmd)}")
224
  subprocess.run(cmd, check=True, capture_output=True, text=True)
225
 
 
215
  output_dir = os.path.join(tmpdir, "stems")
216
  os.makedirs(output_dir, exist_ok=True)
217
 
218
+ cmd = DEMUCS_CMD +["-o", output_dir, input_path]
 
 
 
 
219
  logger.info(f"Running demucs: {' '.join(cmd)}")
220
  subprocess.run(cmd, check=True, capture_output=True, text=True)
221