{"id":17837091,"url":"https://github.com/tomfreudenberg/tensorflow-objectdetection","last_synced_at":"2026-05-10T16:37:31.670Z","repository":{"id":142617156,"uuid":"267459908","full_name":"TomFreudenberg/TensorFlow-ObjectDetection","owner":"TomFreudenberg","description":"Running example for TensorFlow and object detection","archived":false,"fork":false,"pushed_at":"2020-05-28T01:27:52.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T13:23:12.711Z","etag":null,"topics":["object-detection","tensorflow","tensorflow-tutorials"],"latest_commit_sha":null,"homepage":"https://www.tensorflow.org/","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TomFreudenberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-28T01:02:26.000Z","updated_at":"2020-05-28T01:32:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"b112687d-aba6-4bfe-8ae2-46fc6c9569c5","html_url":"https://github.com/TomFreudenberg/TensorFlow-ObjectDetection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TomFreudenberg/TensorFlow-ObjectDetection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomFreudenberg%2FTensorFlow-ObjectDetection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomFreudenberg%2FTensorFlow-ObjectDetection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomFreudenberg%2FTensorFlow-ObjectDetection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomFreudenberg%2FTensorFlow-ObjectDetection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomFreudenberg","download_url":"https://codeload.github.com/TomFreudenberg/TensorFlow-ObjectDetection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomFreudenberg%2FTensorFlow-ObjectDetection/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266540096,"owners_count":23945154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["object-detection","tensorflow","tensorflow-tutorials"],"created_at":"2024-10-27T20:45:22.664Z","updated_at":"2026-05-10T16:37:26.631Z","avatar_url":"https://github.com/TomFreudenberg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README.md\n\n\u003cimg src=\"https://www.gstatic.com/devrel-devsite/prod/v050cadc3f3cf927d4089880349cc4dea1a9dab3bc6036e7a65cc361fddd65555/tensorflow/images/lockup.svg\"\u003e\n\nThis is a running walkthru to use TensorFlows [(www.tensorflow.org)](https://www.tensorflow.org/) object detection capabilities.\n\n# Clone tutorial project\n\n```bash\n# use your projects folder\ncd /home\n# clone this repository\ngit clone https://github.com/TomFreudenberg/TensorFlow-ObjectDetection.git tf-tutorial\ncd tf-tutorial\n```\n\n\n# Run tutorial\n\nIf all tools and packages installed, you may run the object_detection example:\n\n```bash\ncd src/tutorial\npython image_object_detection.py\n```\n\n\n# Setup environment\n\n```bash\n# prepare a virtual environment path\nmkdir -p venv/bin\n# install packages\npip install tensorflow\npip install Cython\npip install contextlib2\npip install pillow\npip install lxml\npip install jupyter\npip install matplotlib\n```\n\n### Download latest Protobuf\n\nDownload the latest Protobuf version for your OS and extract it.\n\n* https://github.com/google/protobuf/releases\n\n##### OSX binary (e.g.)\n\n```bash\ncd venv\ncurl -L -O https://github.com/protocolbuffers/protobuf/releases/download/v3.12.2/protoc-3.12.2-osx-x86_64.zip\nunzip protoc-3*.zip\ncd ..\n```\n\n\n### Download TensorFlow models from github\n\nClone or download TensorFlow’s Model from Github. The downloaded archive must be extracted as \"models\" folder.\n\n* https://github.com/tensorflow/models\n\n```bash\nmkdir -p src/tensorflow\ncd src/tensorflow\ncurl -L -O https://github.com/tensorflow/models/archive/master.zip\nunzip master.zip\nmv models-master models\ncd ../..\n```\n\nPatch models to be compatible with TensorFlow 2 and newer tools\n```bash\n(\necho '--- input_reader.proto'\necho '+++ input_reader.proto'\necho '@@ -4 +4 @@'\necho '-import \"object_detection/protos/image_resizer.proto\";'\necho '+// import \"object_detection/protos/image_resizer.proto\";'\n) | patch -s src/tensorflow/models/research/object_detection/protos/input_reader.proto\n\n(\necho '--- ops.py'\necho '+++ ops.py'\necho '@@ -27,2 +27,2 @@'\necho '-import tensorflow.compat.v1 as tf'\necho '-import tf_slim as slim'\necho '+import tensorflow as tf'\necho '+'\necho '@@ -846 +846 @@'\necho '-        box_ind=tf.range(num_boxes),'\necho '+        box_indices=tf.range(num_boxes),'\n) | patch -s src/tensorflow/models/research/object_detection/utils/ops.py\n```\n\n### Run protoc to create .py from proto files\n\nOpen the research folder and run protobuf:\n\n```bash\ncd src/tensorflow/models/research/\n../../../../venv/bin/protoc object_detection/protos/*.proto --python_out=.\ncd ../../../..\n```\n\nCheck if this had worked, while looking at the protos folder. Every proto file should have a python file created.\n\n\n# Credits\n\n* Tutorial inspired from: https://www.edureka.co/blog/tensorflow-object-detection-tutorial/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomfreudenberg%2Ftensorflow-objectdetection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomfreudenberg%2Ftensorflow-objectdetection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomfreudenberg%2Ftensorflow-objectdetection/lists"}