With Github and Docker's help, I solve a really frustating problem, my problem was each time I make some changes to a library or tensorflow version the tensorflow object detection API didnt produce any output. There were n number of errors and it wasted alot of my time to fix them each time. Finally I made a Docker container whos instructions are given in nice details below, and now whenever I have a trained model from object detection API. I just build docker image and test it and it tests models with good consistency. . Note I use object_detection2.ipynb
from research/object-detection directory (which is inside the docker container) to test my retrained models.
docker build -t tensorflow .
docker run <container name>
docker run --name tensorflow -p 8888:8888 -d tensorflow
And open http://localhost:8888 Password: root
docker exec -it <container-id> sh
or
docker exec -it <container name> /bin/bash
another way to login
sudo docker run -i -t <container id> /bin/bash
OR
sudo docker run -i -t <container id>
docker container stop <container name>
docker container rm <container name>
docker cp <local_folder> <docker_container_name>:<full_path of folder inside docker>
note <docker_container_name>: can be got by command : docker ps -a
docker commit 9c09acd48a25 fedora-base-with-git
docker cp <docker_container_name>:<full_path of folder inside docker> <local_folder>