mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-06 04:32:43 +00:00
Convert function to tf2
This commit is contained in:
@@ -238,7 +238,7 @@ class DatasetBuilder(object):
|
||||
|
||||
def expand_path(self, 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)
|
||||
for instrument in self._instruments})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user