Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Normalized with a ref signal mean&std and restored using the same values, is there a energy gap between ref and separated signals? #610

Open
yangxueruivs opened this issue Jul 29, 2024 · 0 comments
Labels
question Further information is requested

Comments

@yangxueruivs
Copy link

❓ Questions

in https://github.com/facebookresearch/demucs/blob/v4.0.1/demucs/separate.py#L176:
ref = wav.mean(0)
wav -= ref.mean()
wav /= ref.std()
sources = apply_model(model, wav[None], device=args.device, shifts=args.shifts,
split=args.split, overlap=args.overlap, progress=True,
num_workers=args.jobs, segment=args.segment)[0]
sources *= ref.std()
sources += ref.mean()

source signal has an energy gap from the ref signal. Can we directly apply the mean and variance to the separated sources?

@yangxueruivs yangxueruivs added the question Further information is requested label Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant