This a Python-based machine learning project that combines depth estimation and object detection using pre-trained models. Building on Apple's DepthPro, it offers tools to test depth and object detection on custom inputs efficiently.
- Depth Estimation: Predict depth maps from input images using pre-trained models.
- Object Detection: Perform object detection on test images or datasets.
- Custom Input Support: Easily integrate and test custom images or datasets.
- Pre-trained Model Support: Simple script provided to download pre-trained models.
- Example Scripts: Provided for testing and evaluating models.
- Python: 3.8+
- PyTorch: Installation instructions can be found on the PyTorch website
- Other dependencies listed in
requirements.txt
-
Clone the Repository
Clone this project to your local machine:
git clone https://github.com/CagriCatik/YOLOv11-Mono-Camera-Distance-Estimation cd YOLOv11-Mono-Camera-Distance-Estimation
-
Install Dependencies
Install all required dependencies using
pip
:pip install -r requirements.txt
-
Download Pre-trained Models
Run the provided script to download the necessary pre-trained models:
chmod +x get_pretrained_models.sh ./get_pretrained_models.sh
The models will be saved in the
checkpoints/
directory.
To run depth estimation on your input images, execute the following command:
python test_depth.py
To perform object detection using the pre-trained model, use the following command:
python test_detection.py
Run both depth estimation and object detection in one go:
python test_depth_detection.py
- Input: Place images in the
data_input/
directory for processing. - Output: Results such as depth maps and detection outputs will be saved in the
data_output/
directory