Open javanasse opened 6 months ago
you could hack around by create a self_wav2
attribute, then you can set it to some other conditionner class:
https://github.com/facebookresearch/audiocraft/blob/main/audiocraft/data/music_dataset.py#L64
add a line out.wav[key + '2'] = value
just under
Conditioners are defined in
config/conditioner
like chroma2music.yaml. Thechroma
model's parameters are populated underself_wav:
.I have defined another conditioner, and would like to train MusicGen conditioned using two
WaveformConditioner
s, namely theChromaStemConditioner
and the new conditioner that I defined. What is the best way to do that?Is there a syntax for doing this in the conditioner YAML or is it better to create a new
WaveformConditioner
that simply returns a stacked tensor formed from both conditions?