[Bug]Each training period: ConcatOp:Dimension of inputs should match
Description
I'm a novice of deep learning. The training set prepared for 2stems.Sample_rate of training set is 8KHz,and the format of which is wav. Each training period,Some errors were shown on the console that ConcatOp:Dimension of inputs should match:shape[0]=[,,2] vs. shape[1]=[,,1]. Details as follows:
Step to reproduce
- spleeter train --verbose -p path of json path of audio training set
Output
gs\atmb\train\118.80T_1001_0015_Cessna_CockpitVoice2\vocals.wav' from 11.260
000000000002 to 31.26
INFO:spleeter:Loading audio b'K:\Anaconda3\Lib\site-packages\spleeter\confi
gs\atmb\train\118.80T_1001_0015_Cessna_CockpitVoice1\vocals.wav' from 11.260
000000000002 to 31.26
WARNING:tensorflow:Entity <bound method Node.stream of input(filename='K:\Anaco
nda3\Lib\site-packages\spleeter\configs\atmb\train\118.80T_1001_0015_Cess
na_CockpitVoice1\vocals.wav') export AUTOGRAPH_VERBOSITY=10) and attac
h the full output. Cause: Mangled names are not yet supported by AutoGraph
WARNING:tensorflow:Entity <bound method Node.stream of output(ar=44100, filename
='pipe:', format='f32le', ss='0:00:00.500000', t='0:00:20.000000') <152313499f09
could not be transformed and will be executed as-is. Please report this to th e AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux,
expor t AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of input(filename='K:\Anaco nda3\Lib\site-packages\spleeter\configs\atmb\train\118.80T_1001_0015_Cess na_CockpitVoice2\vocals.wav') <175cf1ae1684>> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bu g, set the verbosity to 10 (on Linux,export AUTOGRAPH_VERBOSITY=10) and attac h the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of input(filename='K:\Anaco nda3\Lib\site-packages\spleeter\configs\atmb\train\118.80T_1001_0015_Cess na_CockpitVoice2\vocals.wav') <175cf1ae1684>> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bu g, set the verbosity to 10 (on Linux,export AUTOGRAPH_VERBOSITY=10) and attac h the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of output(ar=44100, filename ='pipe:', format='f32le', ss='0:00:11.260000', t='0:00:20.000000') <f4673ba3c59a could not be transformed and will be executed as-is. Please report this to th e AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux,expor t AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of output(ar=44100, filename ='pipe:', format='f32le', ss='0:00:00.500000', t='0:00:20.000000') <94e14c0fda78 could not be transformed and will be executed as-is. Please report this to th e AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux,expor t AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of input(filename='K:\Anaco nda3\Lib\site-packages\spleeter\configs\atmb\train\118.80T_1001_0015_Cess na_CockpitVoice1\vocals.wav')> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bu g, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attac h the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of output(ar=44100, filename ='pipe:', format='f32le', ss='0:00:11.260000', t='0:00:20.000000') <1b2581ce8eaa could not be transformed and will be executed as-is. Please report this to th e AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux,expor t AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph INFO:spleeter:Audio data loaded successfully INFO:spleeter:Audio data loaded successfully INFO:spleeter:Loading audio b'K:\Anaconda3\Lib\site-packages\spleeter\confi gs\atmb\train\118.80T_1001_0015_Cessna_CockpitVoice1\other.wav' from 0.5 to 20.5 INFO:spleeter:Audio data loaded successfully INFO:spleeter:Audio data loaded successfully INFO:spleeter:Loading audio b'K:\Anaconda3\Lib\site-packages\spleeter\confi gs\atmb\train\118.80T_1001_0015_Cessna_CockpitVoice2\other.wav' from 0.5 to 20.5 INFO:spleeter:Loading audio b'K:\Anaconda3\Lib\site-packages\spleeter\confi gs\atmb\train\118.80T_1001_0015_Cessna_CockpitVoice2\other.wav' from 11.2600 00000000002 to 31.26 INFO:spleeter:Loading audio b'K:\Anaconda3\Lib\site-packages\spleeter\confi gs\atmb\train\118.80T_1001_0015_Cessna_CockpitVoice1\other.wav' from 11.2600 00000000002 to 31.26 WARNING:tensorflow:Entity <bound method Node.stream of input(filename='K:\Anaco nda3\Lib\site-packages\spleeter\configs\atmb\train\118.80T_1001_0015_Cess na_CockpitVoice1\other.wav') <7b99e0a559c3>> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug , set the verbosity to 10 (on Linux,export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of output(ar=44100, filename ='pipe:', format='f32le', ss='0:00:00.500000', t='0:00:20.000000') <103881ea98f4 could not be transformed and will be executed as-is. Please report this to th e AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux,expor t AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of input(filename='K:\Anaco nda3\Lib\site-packages\spleeter\configs\atmb\train\118.80T_1001_0015_Cess na_CockpitVoice2\other.wav') <937f23ce070b>> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug , set the verbosity to 10 (on Linux,export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of input(filename='K:\Anaco nda3\Lib\site-packages\spleeter\configs\atmb\train\118.80T_1001_0015_Cess na_CockpitVoice2\other.wav') <937f23ce070b>> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug , set the verbosity to 10 (on Linux,export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of output(ar=44100, filename ='pipe:', format='f32le', ss='0:00:11.260000', t='0:00:20.000000') <18ef7ee44f04 could not be transformed and will be executed as-is. Please report this to th e AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux,expor t AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of output(ar=44100, filename ='pipe:', format='f32le', ss='0:00:00.500000', t='0:00:20.000000') <18fdbe3dd88a could not be transformed and will be executed as-is. Please report this to th e AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux,expor t AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph INFO:spleeter:Audio data loaded successfully WARNING:tensorflow:Entity <bound method Node.stream of input(filename='K:\Anaco nda3\Lib\site-packages\spleeter\configs\atmb\train\118.80T_1001_0015_Cess na_CockpitVoice1\other.wav') <7b99e0a559c3>> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug , set the verbosity to 10 (on Linux,export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph WARNING:tensorflow:Entity <bound method Node.stream of output(ar=44100, filename ='pipe:', format='f32le', ss='0:00:11.260000', t='0:00:20.000000') <180187c01b07 could not be transformed and will be executed as-is. Please report this to th e AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux,expor t AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Mangled names are not yet supported by AutoGraph INFO:spleeter:Audio data loaded successfully INFO:spleeter:Audio data loaded successfully INFO:spleeter:Audio data loaded successfully Traceback (most recent call last): File "K:\Anaconda3\lib\site-packages\tensorflow_core\python\client\session.py" , line 1365, in _do_call return fn(*args) File "K:\Anaconda3\lib\site-packages\tensorflow_core\python\client\session.py" , line 1350, in _run_fn target_list, run_metadata) File "K:\Anaconda3\lib\site-packages\tensorflow_core\python\client\session.py" , line 1443, in _call_tf_sessionrun run_metadata) tensorflow.python.framework.errors_impl.InvalidArgumentError: {{function_node __ inference_Dataset_map_DatasetBuilder.random_time_crop_1250}} ConcatOp : Dimensio ns of inputs should match: shape[0] = [858,1024,2] vs. shape[1] = [858,1024,1] [[{{node concat}}]] [[IteratorGetNext]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "K:\Anaconda3\Scripts\spleeter-script.py", line 10, in
[[node concat (defined at \lib\site-packages\tensorflow_core\python\fra
mework\ops.py:1748) ]] [[IteratorGetNext]]
Original stack trace for 'concat':
File "\Scripts\spleeter-script.py", line 10, in
Environment
| OS | Windows 7 | | Installation type | Conda | | Hardware spec | CPU | | spleeter 1.5.3 | | tensorflow 1.15.0 |
Additional context
Same issue here. Any workaround?
Same issue here. Any workaround?
Found the reason, it's about the data preprocessing in my case. The audio file should all keep stereo instead of mono.