Skip to content

ali-zahavi/custom_object_detector

Repository files navigation

Object Detection Project

Overview

This repository prioritizes best practices in code design and structure, facilitating easy expansion and adaptability for future enhancements, rather than placing emphasis on machine learning optimization.

This project is designed to conduct object detection across multiple source types, such as image sequences, videos, and potentially webcams (implementation is complete but awaiting testing). Currently, the system recognizes user-selected classes from a pre-trained model.

Features

  • Docker Integration: The project is containerized using Docker, ensuring consistent and reproducible environments.
  • Configurability with JSON Files and Dataclasses: Configuration parameters, such as model paths, score thresholds, and class mappings, are stored in a JSON files and managed using dataclasses and for easy customization.
  • Modularity: The codebase is structured in a modular fashion, allowing easy expansion of functionalities and the addition of new source types for object detection.
  • DVC Integration: The project is integrated with DVC (Data Version Control) for efficient management of large datasets and model files. Presently, the input stream images and videos have been uploaded to DVC. In the upcoming phases, the models and training data will also be managed through DVC. Retrieving data from DVC via Google Drive is accessible to all Google account users, while the capability to upload is restricted.
  • ROS Integration (Work in Progress): Integration with ROS (Robot Operating System) for robotics applications.
  • Transfer Learning-Based Custom Object Detection (Work in Progress): Employing a pre-trained model for detecting custom objects.
  • Developing a Tailored Model for Custom Object Detection (Future work, maybe another repo in the future!) Creating a specialized model designed for the detection of custom objects.

Getting Started

  1. Clone the repository.
  2. Open the folder in VScode, and reopen the project in container.
  3. If necessary, adjust the configuration in config.json (e.g., update the selected classes for detection).
  4. Pull the input stream images and video from DVC
   dvc pull -r input_stream_remote
  1. Run "main.py" while selecting the source type:
   python3 main.py --source-type video

or

   python3 mian.py --source-type images

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published