Ewan Claude Opus 4.6 commited on
Commit
b34d3ea
·
1 Parent(s): 5ac3881

Fix Demucs segment size: htdemucs max is 7.8, use 7

Browse files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. transcriber/separate.py +1 -1
transcriber/separate.py CHANGED
@@ -31,7 +31,7 @@ def separate(input_path: str, output_dir: str, model: str = "htdemucs") -> dict:
31
  python, "-m", "demucs",
32
  "--name", model,
33
  "--out", str(output_dir),
34
- "--segment", "10", # Process in 10s chunks to limit memory usage
35
  str(input_path),
36
  ]
37
 
 
31
  python, "-m", "demucs",
32
  "--name", model,
33
  "--out", str(output_dir),
34
+ "--segment", "7", # Process in 7s chunks (htdemucs max is 7.8)
35
  str(input_path),
36
  ]
37