https://github.com/coding-ai/yolt
YOLT (You Only Look Twice) - a tool that attempts to improve the accuracy of YOLOv4 in images
https://github.com/coding-ai/yolt
3d-photo 3d-photo-inpainting accuracy image-processing object-detection object-detector photo yolo yolo-darknet yolov1 yolov2 yolov3 yolov3-darknet yolov4 yolov4-darknet
Last synced: about 2 months ago
JSON representation
YOLT (You Only Look Twice) - a tool that attempts to improve the accuracy of YOLOv4 in images
- Host: GitHub
- URL: https://github.com/coding-ai/yolt
- Owner: coding-ai
- Created: 2020-05-01T12:35:22.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T16:56:57.000Z (about 5 years ago)
- Last Synced: 2025-04-18T16:29:31.223Z (2 months ago)
- Topics: 3d-photo, 3d-photo-inpainting, accuracy, image-processing, object-detection, object-detector, photo, yolo, yolo-darknet, yolov1, yolov2, yolov3, yolov3-darknet, yolov4, yolov4-darknet
- Language: Python
- Size: 3 MB
- Stars: 21
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YOLT (You Only Look Twice)
This repository contains a small script to merge the capabilities of two different algorithms:
1. [3D Photography using Context-aware Layered Depth Inpainting](https://github.com/vt-vl-lab/3d-photo-inpainting)
2. [You Only Look Once (YOLO)](https://github.com/AlexeyAB/darknet)By using the `3d-photo-inpainting` method we can brign an extra dimension to our picture, which will eventually help `yolo` to better detect "occluded" objects and improve the accuracy of the detection (for some of the frames).
## Pre-requisites
Clone the respective repositories that you can find on their original GitHub (see links above) and follow their instructions to test that the code is properly set up and up and running.
Inside the `3d-photo-inpainting` folder change the `argument.yml` to:
```
...
src_folder: ../images
video_folder: ../videos
...
```Inside the `darknet` folder change the `Makefile` to (before bulding the project):
```
...
OPENCV=1
...
```## How to use
Place your test images inside the `images` folder and run the following command:
`python yolt.py`
This will save the output of the `3d-in-painting` method in the `videos` folder, with the following: four rendered videos with zoom-in, swing, and circle motion and dolly zoom-in effect, respectively). Once this step is completed, the program will run the YOLOv4 detector on the rendered videos.
The resulting videos will be allocated in the `videos` folder.
## Other considerations
If you are using CPU instead of GPU, in `argument.yml` inside the `3d-photo-inpainting` folder change the `gpu_ids` to a negative number, e.g.:
```
...
gpu_ids: -1
...
```For simplicity, you can continue working on the venv created with conda for the `3d-photo-inpainting` and install the necessary packages to run `darknet`, most likely you would only have to install OpenCV.
To make this run on MacOS (YOLO only comes for Windows and Linux distribution), make sure that you have `Homebrew` installed, and install the following package:
`brew install pkg-config`
Then you have to install the OpenCV dependency as well, running the following command:
`brew install opencv`