mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-06 04:32:43 +00:00
replace string_join for tf2 compatibility
This commit is contained in:
committed by
Romain Hennequin
parent
e2937f7898
commit
dc240b4c07
@@ -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