yinguobing / cnn-facial-landmark

Training code for facial landmark detection based on deep convolutional neural network.
MIT License
626 stars 182 forks source link

KeyError: 'file_basename' when execute generate_tfrecord.py #40

Closed abdou31 closed 5 years ago

abdou31 commented 5 years ago

Hello , I have organize my data and i want to generate train.record and test.record and valid.record , but when i execute :

python3 generate_tfrecord.py

I get those errors:

0it [00:00, ?it/s] Traceback (most recent call last): File "C:\Users\starinfo\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\core\indexes\base.py", line 4381, in get_value return libindex.get_value_box(s, key) File "pandas_libs\index.pyx", line 52, in pandas._libs.index.get_value_box File "pandas_libs\index.pyx", line 48, in pandas._libs.index.get_value_at File "pandas_libs\util.pxd", line 113, in pandas._libs.util.get_value_at File "pandas_libs\util.pxd", line 98, in pandas._libs.util.validate_indexer TypeError: 'str' object cannot be interpreted as an integer During handling of the above exception, another exception occurred:

Who have idea how to solve those problems?