Spaces:
Sleeping
Sleeping
Update js/app.py
Browse files324 unmodified lines325326327328329330331332333146 unmodified lines480481482483324 unmodified linesgc.collect()job.progress = 82# ββ 4. De-normalise (in-place to avoid a full-tensor copy) ββββββββββββββββsources_norm.mul_(ref_std).add_(ref_mean) # sources_norm is now denormalisedsources = sources_norm # rename for claritystem_names = list(model.sources) # ["drums", "bass", "other", "vocals"]stem_tensors = {name: sources[i] for i, name in enumerate(stem_names)}146 unmodified linesmedia_type="audio/mpeg",filename=f"{stem}.mp3",)324 unmodified lines325326327328329330331332333146 unmodified lines480481482324 unmodified linesgc.collect()job.progress = 82# ββ 4. De-normalise (clone first to get a normal mutable tensor) βββββββββββsources = sources_norm.clone()sources.mul_(ref_std).add_(ref_mean) # sources is now denormalisedstem_names = list(model.sources) # ["drums", "bass", "other", "vocals"]stem_tensors = {name: sources[i] for i, name in enumerate(stem_names)}146 unmodified linesmedia_type="audio/mpeg",filename=f"{stem}.mp3",)
js/app.py+3-4