-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8936795
commit 9d49bac
Showing
8 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ repos: | |
rev: v4.0.1 | ||
hooks: | ||
- id: check-added-large-files | ||
args: ["--maxkb=100"] | ||
args: ["--maxkb=500"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,57 @@ | ||
<h1 align="center"> | ||
TensorFlow Light Human Tracking | ||
</h1> | ||
|
||
## SORT | ||
 | ||
|
||
> A simple online and realtime tracking algorithm for 2D multiple object tracking in video sequences. | ||
The motivation of TensorFlow Lite Human Tracking is developing person tacking system for edge camera. | ||
For example, count the number of visitors in somewhere. | ||
|
||
https://github.com/abewley/sort | ||
To track and detect people over frames, DeepSORT is adopted. | ||
|
||
## Dataset | ||
For the detail about DeepSORT, refer [this great article](https://medium.com/augmented-startups/deepsort-deep-learning-applied-to-object-tracking-924f59f99104). | ||
|
||
https://www.kaggle.com/ashayajbani/oxford-town-centre/version/4?select=TownCentreXVID.mp4 | ||
|
||
Currently [YOLOv5](https://github.com/ultralytics/yolov5) models are supported for object detection model. | ||
To get YOLOv5 tflite model, see [`models/README.md`](./models/README.md) | ||
|
||
## <div align="center">Quick Start Example</div> | ||
|
||
```bash | ||
git clone [email protected]:ozora-ogino/tflite-human-tracking.git | ||
cd tflite-human-tracking | ||
python main.py --src ./data/<YOUR_VIDEO_FILE>.mp4 --model ./models/<YOLOV5_MODEL>.tflite | ||
``` | ||
|
||
### Docker | ||
|
||
```bash | ||
./build_image.sh | ||
./run.sh ./data/<YOUR_VIDEO_FILE>.mp4 ./models/<YOLOV5_MODEL>.tflite | ||
``` | ||
|
||
Then you can see the results in `outputs` folder. | ||
|
||
|
||
### Dataset | ||
The example video on top of here is [TownCentreXVID](https://www.kaggle.com/ashayajbani/oxford-town-centre/version/4?select=TownCentreXVID.mp4). | ||
You can download it from the link (kaggle). | ||
|
||
I recoomend to trim it for about 10s because it's too big for testing. | ||
|
||
|
||
## <div align="center">Citations</div> | ||
|
||
### SORT | ||
|
||
``` | ||
@inproceedings{Bewley2016_sort, | ||
author={Bewley, Alex and Ge, Zongyuan and Ott, Lionel and Ramos, Fabio and Upcroft, Ben}, | ||
booktitle={2016 IEEE International Conference on Image Processing (ICIP)}, | ||
title={Simple online and realtime tracking}, | ||
year={2016}, | ||
pages={3464-3468}, | ||
keywords={Benchmark testing;Complexity theory;Detectors;Kalman filters;Target tracking;Visualization;Computer Vision;Data Association;Detection;Multiple Object Tracking}, | ||
doi={10.1109/ICIP.2016.7533003} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## YOLOv5 TF Light | ||
|
||
To get yolov5 tflite models, you can use [`yolov5/export.py`](https://github.com/ultralytics/yolov5/blob/master/export.py). | ||
|
||
For example; | ||
|
||
```bash | ||
git clone [email protected]:ultralytics/yolov5.git | ||
cd yolov5 | ||
pip install -r requirements.txt | ||
|
||
python export.py --weights yolov5n.pt --include tflite | ||
``` | ||
|
||
For mode details, see the [official release note](https://github.com/ultralytics/yolov5/releases). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
** | ||
!.gitignore | ||
!trim10s.mp4_yolov5l-fp16.tflite.jpg | ||
!trim10s.mp4_yolov5l-fp16.tflite.mp4 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters