Skip to content

UtkarshMoholkar/Tensorflow_object_detection_api_fixes

 
 

Repository files navigation

Tensorflow_object_detection_api_fixes

Fix files for issues commonly experienced with tensorflow object detection api

generate_tfrecord.py for those that experience issues with generate_tfrecord error: child index pit pf range int(member[4][0].text) image

Errors

h5py error

image

pip uninstall h5py
pip install h5py==2.10.0

pip error

https://exerror.com/importerror-cannot-import-name-invalidschemecombination-from-pip-_internal-exceptions/ image

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py (or just right click save as pip.py)
# paste get-pip.py into C:\Users\ASUS\anaconda3\Scripts
python get-pip.py pip==19.3.1 

pycocotools error

image

pip install pycocotools-windows

Unable to detect gpu

image

  • reinstall tensorflow object detection api
git clone https://github.com/tensorflow/models.git
copy object_detection\packages\tf2\setup.py .
python -m pip install .

cannot run convert-to-tflite.py

https://stackoverflow.com/questions/64662085/fix-not-load-dynamic-library-for-tensorflow-gpu have to install gpu variant of tensorflow & ensure gpu is detected check devices using (either one of the methods)

print(device_lib.list_local_devices())
tf.config.list_physical_devices('GPU')

Evaluation

https://www.youtube.com/watch?v=oqXDdxF_Wuw

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%