Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add small object tracking demo using SAHI #188

Merged
merged 2 commits into from
Sep 26, 2022
Merged

Add small object tracking demo using SAHI #188

merged 2 commits into from
Sep 26, 2022

Conversation

JuanFKurucz
Copy link
Member

This PR implements a demo using SAHI: Slicing Aided Hyper Inference to be able to track small objects in a video.

demos/sahi/README.md Outdated Show resolved Hide resolved
@JuanFKurucz JuanFKurucz force-pushed the demo-sahi branch 3 times, most recently from ab33675 to fadd361 Compare September 23, 2022 17:33
demos/sahi/README.md Outdated Show resolved Hide resolved
@dekked
Copy link
Member

dekked commented Sep 23, 2022

@fcakyon maybe you have any comments or suggestions here :)

default=True,
)
parser.add_argument(
"--slice-height",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep things simpler, we can use just one --slice-size argument instead of two --slice-height and --slice-width and set both slice_height and slice_width as slice_size.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an excellent suggestion. Thanks! I tackled it in the new commit

default=0.2,
)
parser.add_argument(
"--overlap-width-ratio",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep things simpler, we can use just one --overlap-ratio argument instead of two --overlap-width-ratio and --overlap-height-ratio and set both overlap_width_ratio and overlap_height_ratio as overlap_ratio.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this suggestion too, I tackled it to make everything simpler!

@fcakyon
Copy link
Contributor

fcakyon commented Sep 24, 2022

Wow @JuanFKurucz, thanks for this awesome demo!

@dekked added some comments. In overall, it looks good 💯

@@ -0,0 +1,3 @@
opencv-python==4.2.0.32
sahi==0.10.5
yolov5==6.1.8
Copy link
Contributor

@fcakyon fcakyon Sep 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets use the latest yolov5 and sahi versions :)

Suggested change
yolov5==6.1.8
yolov5==6.2.1

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@@ -0,0 +1,3 @@
opencv-python==4.2.0.32
sahi==0.10.5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets use the latest yolov5 and sahi versions :)

Suggested change
sahi==0.10.5
sahi==0.10.6

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I have updated it and recreated the demo video just in case!

# SAHI: Slicing Aided Hyper Inference Demo

An example of how to use Norfair along with [SAHI: Slicing Aided Hyper Inference](https://github.com/obss/sahi)
to perform detection and tracking on small objects using YOLOv5x as the detector.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
to perform detection and tracking on small objects using YOLOv5x as the detector.
to perform detection and tracking on small objects using [YOLOv5x](https://github.com/ultralytics/yolov5) as the detector.

@dekked dekked merged commit f3efa3a into master Sep 26, 2022
@dekked dekked deleted the demo-sahi branch September 26, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants