datitran / raccoon_dataset

The dataset is used to train my own raccoon detector and I blogged about it on Medium
https://medium.com/towards-data-science/how-to-train-your-own-object-detector-with-tensorflows-object-detector-api-bec72ecfe1d9
MIT License
1.27k stars 977 forks source link

error generating tfrecords #87

Open denissato opened 5 years ago

denissato commented 5 years ago

Hello guys! I'm configuring the files to make my own training. After successfully installed the tensorflow-gpu, I tested the "object_detection_tutorial.ipynb" with success. I also create the csv files without problems. Now, I'm facing an error using the "generate_tfrecord.py":

Traceback (most recent call last): File "generate_tfrecord.py", line 100, in <module> tf.app.run() File "/home/denissato/.local/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "generate_tfrecord.py", line 88, in main examples = pd.read_csv(FLAGS.csv_input) File "/home/denissato/.local/lib/python3.6/site-packages/tensorflow/python/platform/flags.py", line 85, in __getattr__ return wrapped.__getattr__(name) File "/home/denissato/.local/lib/python3.6/site-packages/absl/flags/_flagvalues.py", line 473, in __getattr__ raise AttributeError(name) AttributeError: csv_input

I've tried two approaches to start the command: python3 generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=data/train.record --image_dir=images/

and inserting the full path:

python3 generate_tfrecord.py --csv_input=/home/denissato/Downloads/Tensorflow/object-detection/data/train_labels.csv --output_path=/home/denissato/Downloads/Tensorflow/object-detection/data/train.record --image_dir=/home/denissato/Downloads/Tensorflow/object-detection/images/

Somebody could help me?

The version of my packages: OS - Ubuntu 18.04 LTS - python 3.6.7 tensorflow-gpu 1.13.1 Cuda 10.0 Nvidia driver 410.104 (Geforce 1050ti) cudnn 7.5.0

jeffin07 commented 5 years ago

@denissato I think threre is a mismatch in the names in the csv file can you check the names are correct ?

denissato commented 5 years ago

Thank you very much!!!

Best wishes,

Em ter, 18 de jun de 2019 às 03:16, Jeffin Francis notifications@github.com escreveu:

@denissato https://github.com/denissato I think threre is a mismatch in the names in the csv file can you check the names are correct ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/datitran/raccoon_dataset/issues/87?email_source=notifications&email_token=AHPAFKFIQS7UIFDWJK6HJZDP3B4R7A5CNFSM4HCZXLXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX5JWLY#issuecomment-502962991, or mute the thread https://github.com/notifications/unsubscribe-auth/AHPAFKDI6KKCMAVS3ILHR6DP3B4R7ANCNFSM4HCZXLXA .

-- Denis Sato MV./MSc. Animal Science CRMV-SP 36706 +55 19 97167 0959

Petros626 commented 3 years ago

Thank you very much!!! Best wishes, Em ter, 18 de jun de 2019 às 03:16, Jeffin Francis notifications@github.com escreveu: @denissato https://github.com/denissato I think threre is a mismatch in the names in the csv file can you check the names are correct ? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#87?email_source=notifications&email_token=AHPAFKFIQS7UIFDWJK6HJZDP3B4R7A5CNFSM4HCZXLXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX5JWLY#issuecomment-502962991>, or mute the thread https://github.com/notifications/unsubscribe-auth/AHPAFKDI6KKCMAVS3ILHR6DP3B4R7ANCNFSM4HCZXLXA . -- Denis Sato MV./MSc. Animal Science CRMV-SP 36706 +55 19 97167 0959

can you share your fault with us?