buriburisuri / sugartensor

A slim tensorflow wrapper that provides syntactic sugar for tensor variables. This library will be helpful for practical deep learning researchers not beginners.
MIT License
372 stars 63 forks source link

AttributeError: 'list' object has no attribute 'startswith' #43

Open DiyuanLu opened 6 years ago

DiyuanLu commented 6 years ago

Exception in thread QueueRunnerThread-fifo_queue-fifo_queue_enqueue: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.target(*self.args, **self.__kwargs) File "load_audio_template.py", line 125, in _run self.func(sess, enqueue_op) # call enqueue function File "load_audio_template.py", line 72, in enqueue_func data = func(sess.run(inputs)) File "load_audio_template.py", line 183, in get_audio_spectrograms _spectrogram, _magnitude, _length = utils.get_spectrograms(_sound_file) File "utils.py", line 40, in get_spectrograms y, sr = librosa.load(sound_file, sr=hp.sr) # or set sr to hp.sr. File "/home/elu/.local/lib/python2.7/site-packages/librosa/core/audio.py", line 107, in load with audioread.audio_open(os.path.realpath(path)) as input_file: File "/usr/lib/python2.7/posixpath.py", line 375, in realpath path, ok = _joinrealpath('', filename, {}) File "/usr/lib/python2.7/posixpath.py", line 381, in _joinrealpath if isabs(rest): File "/usr/lib/python2.7/posixpath.py", line 54, in isabs return s.startswith('/') AttributeError: 'list' object has no attribute 'startswith'

I got this error when I run the load_data module. Anyone knows how to solve this?