bill9800 / speech_separation

Include some core functions and model to handle speech separation
MIT License
153 stars 61 forks source link

Problem while trying to run AV_train.py file #20

Closed shirish1197 closed 4 years ago

shirish1197 commented 4 years ago

@bill9800 Thanks for doing this amazing project and sharing the code.But while executing, I faced some problem while training ( /model_v2/AV_train.py ) the module. As follows

Epoch 1/100 Traceback (most recent call last): File "AV_train.py", line 107, in initial_epoch=initial_epoch File "/home/avicky/env/lib/python3.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper return func(*args, kwargs) File "/home/avicky/env/lib/python3.7/site-packages/keras/engine/training.py", line 1732, in fit_generator initial_epoch=initial_epoch) File "/home/avicky/env/lib/python3.7/site-packages/keras/engine/training_generator.py", line 185, in fit_generator generator_output = next(output_generator) File "/home/avicky/env/lib/python3.7/site-packages/keras/utils/data_utils.py", line 625, in get six.reraise(sys.exc_info()) File "/home/avicky/env/lib/python3.7/site-packages/six.py", line 696, in reraise raise value File "/home/avicky/env/lib/python3.7/site-packages/keras/utils/data_utils.py", line 610, in get inputs = future.get(timeout=30) File "/usr/lib/python3.7/multiprocessing/pool.py", line 657, in get raise self._value File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(args, kwds)) File "/home/avicky/env/lib/python3.7/site-packages/keras/utils/data_utils.py", line 406, in get_index return _SHARED_SEQUENCES[uid][i] File "../lib/MyGenerator.py", line 84, in getitem [X1, X2], y = self.data_generation(filename_temp) File "../lib/MyGenerator.py", line 106, in data_generation y[i, :, :, :, j] = np.load(self.database_dir_path+'audio/AV_model_database/crm/' + info[j + 1]) File "/home/avicky/env/lib/python3.7/site-packages/numpy/lib/npyio.py", line 428, in load fid = open(os_fspath(file), "rb") FileNotFoundError: [Errno 2] No such file or directory: '../../data/audio/AV_model_database/crm/mix_face_emb.npy'

I have run the code for small amount of data to check for errors.I have attatched the photos of data file generated for training. Can u please check if they are generated right? and help me with the solution of above problem so that i can go ahead.Thank you!!!

Screenshot from 2020-03-15 17-16-21

Screenshot from 2020-03-15 17-16-26

Screenshot from 2020-03-15 17-16-34

Screenshot from 2020-03-15 17-13-56