Spaces:
Runtime error
Runtime error
Hendrik Schroeter
commited on
Remove ic
Browse files
app.py
CHANGED
@@ -41,7 +41,6 @@ def mix_at_snr(clean, noise, snr, eps=1e-10):
|
|
41 |
if noise.shape[1] < clean.shape[1]:
|
42 |
noise = noise.repeat((1, int(math.ceil(clean.shape[1] / noise.shape[1]))))
|
43 |
max_start = int(noise.shape[1] - clean.shape[1])
|
44 |
-
ic(max_start)
|
45 |
start = torch.randint(0, max_start, ()).item()
|
46 |
logger.debug(f"start: {start}, {clean.shape}")
|
47 |
noise = noise[:, start : start + clean.shape[1]]
|
|
|
41 |
if noise.shape[1] < clean.shape[1]:
|
42 |
noise = noise.repeat((1, int(math.ceil(clean.shape[1] / noise.shape[1]))))
|
43 |
max_start = int(noise.shape[1] - clean.shape[1])
|
|
|
44 |
start = torch.randint(0, max_start, ()).item()
|
45 |
logger.debug(f"start: {start}, {clean.shape}")
|
46 |
noise = noise[:, start : start + clean.shape[1]]
|