On a GPU machine/VM go through steps in instalation.ipynb notebook. It should clone tensorflow models and does all the required setttings
Copy fish_detection content inside models/research/object_detection
Run the notebooks in the following order
- object_detection_tutorial.ipynb
- create_pascal_tf_record.ipynb
- train.ipynb
- fish_detection_tutorial.ipynb
- note if you get validation error for traing your model with fasterrcnn update def to_absolute_coordinates method and set check_range=False in models/research/object_detection/core/box_list_ops.py
`with tf.name_scope(scope, 'ToAbsoluteCoordinates'): height = tf.cast(height, tf.float32) width = tf.cast(width, tf.float32)
# Ensure range of input boxes is correct.
check_range=False`
you might need to rerun the following block to make sure your changes took place
import sys,os,os.path #manual step - hard coded issue ! cd ../ && {sys.executable} setup.py build && {sys.executable} setup.py install && chmod 777 slim && cd slim && ! sudo {sys.executable} -m pip install -e . && ! echo 'done' && ! ls