MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / collater

Method collater

usr/diffsinger_task.py:97–101  ·  view source on GitHub ↗
(self, samples)

Source from the content-addressed store, hash-verified

95 return sample
96
97 def collater(self, samples):
98 batch = super(ShallowDiffusionOfflineDataset, self).collater(samples)
99 if self.prefix != 'train' and hparams['fs2_ckpt'] != '':
100 batch['fs2_mels'] = utils.collate_2d([s['fs2_mel'] for s in samples], 0.0)
101 return batch
102
103
104class DiffSingerOfflineTask(DiffSingerTask):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected