mirror of
https://github.com/Anjok07/ultimatevocalremovergui.git
synced 2024-11-27 17:00:59 +01:00
Update separate.py
This commit is contained in:
parent
6c0210aa77
commit
40349bba46
@ -761,8 +761,9 @@ class SeperateMDXC(SeperateAttributes):
|
|||||||
chunks = mix.unfold(1, chunk_size, hop_size).transpose(0, 1)
|
chunks = mix.unfold(1, chunk_size, hop_size).transpose(0, 1)
|
||||||
batches = [chunks[i : i + batch_size] for i in range(0, len(chunks), batch_size)]
|
batches = [chunks[i : i + batch_size] for i in range(0, len(chunks), batch_size)]
|
||||||
|
|
||||||
X = torch.zeros(S, *mix.shape).to(self.device) if S > 1 else torch.zeros_like(mix).to(self.device)
|
X = torch.zeros(S, *mix.shape) if S > 1 else torch.zeros_like(mix)
|
||||||
|
X = X.to(self.device)
|
||||||
|
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
cnt = 0
|
cnt = 0
|
||||||
for batch in batches:
|
for batch in batches:
|
||||||
|
Loading…
Reference in New Issue
Block a user