I got some errors when I run "python parser.py train".
Hinterhalter opened this issue · 0 comments
- fitst error
Process Process-19:
Traceback (most recent call last):
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
self.run()
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/site-packages/keras/utils/data_utils.py", line 568, in data_generator_task
generator_output = next(self._generator)
File "/home/pirl/video_cap/Video2Description/vpreprocess.py", line 163, in data_generator
data = self.datas_from_ids(idlst)
File "/home/pirl/video_cap/Video2Description/vpreprocess.py", line 108, in datas_from_ids
vccs = self.get_video_caption(_id, just_one_caption = True)
File "/home/pirl/video_cap/Video2Description/vpreprocess.py", line 85, in get_video_caption
vid_a = self.videoToVec(_id = _id)
File "/home/pirl/video_cap/Video2Description/vpreprocess.py", line 56, in videoToVec
out = self.vHandler.get_iframes_audio(_id = _id, logs = False)
File "/home/pirl/video_cap/Video2Description/VideoDataset/videohandler.py", line 282, in get_iframes_audio
afeature_out = self.file_to_audiofeature(sfname)
File "/home/pirl/video_cap/Video2Description/VideoDataset/videohandler.py", line 234, in file_to_audiofeature
audio_y, sr = librosa.load(sfname)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/site-packages/librosa/core/audio.py", line 112, in load
with audioread.audio_open(os.path.realpath(path)) as input_file:
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/site-packages/audioread/init.py", line 80, in audio_open
return rawread.RawAudioFile(path)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/site-packages/audioread/rawread.py", line 64, in init
self._file = aifc.open(self._fh)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/aifc.py", line 962, in open
return Aifc_read(f)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/aifc.py", line 355, in init
self.initfp(f)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/aifc.py", line 300, in initfp
chunk = Chunk(file)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/chunk.py", line 63, in init
raise EOFError
EOFError
- second error
Traceback (most recent call last):
File "parser.py", line 98, in
Parser().parse()
File "parser.py", line 23, in parse
self.train()
File "parser.py", line 35, in train
self.framework.train_generator()
File "/home/pirl/video_cap/Video2Description/framework.py", line 168, in train_generator
workers=WORKERS, use_multiprocessing=True)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/site-packages/keras/models.py", line 1121, in fit_generator
initial_epoch=initial_epoch)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "/home/pirl/anaconda3/envs/V2D/lib/python2.7/site-packages/keras/engine/training.py", line 2011, in fit_generator
generator_output = next(output_generator)
StopIteration