Transit s2s clips back to CPU memory after processing
This commit is contained in:
parent
af6d5cd526
commit
8a02ba5935
|
@ -66,7 +66,7 @@ def process_subdir(subdir, options, clip_sz):
|
||||||
stacked = torch.stack(clips[:256], dim=0).cuda()
|
stacked = torch.stack(clips[:256], dim=0).cuda()
|
||||||
clips = clips[256:]
|
clips = clips[256:]
|
||||||
mels = wav_to_mel(stacked)
|
mels = wav_to_mel(stacked)
|
||||||
outp = clip_model.inference(mels)
|
outp = clip_model.inference(mels).cpu()
|
||||||
if sims is None:
|
if sims is None:
|
||||||
sims = outp
|
sims = outp
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user