mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
Convert function to tf2
This commit is contained in:
@@ -238,7 +238,7 @@ class DatasetBuilder(object):
|
|||||||
|
|
||||||
def expand_path(self, sample):
|
def expand_path(self, sample):
|
||||||
""" Expands audio paths for the given sample. """
|
""" Expands audio paths for the given sample. """
|
||||||
return dict(sample, **{f'{instrument}_path': tf.string_join(
|
return dict(sample, **{f'{instrument}_path': tf.strings.join(
|
||||||
(self._audio_path, sample[f'{instrument}_path']), SEPARATOR)
|
(self._audio_path, sample[f'{instrument}_path']), SEPARATOR)
|
||||||
for instrument in self._instruments})
|
for instrument in self._instruments})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user