Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python scripts for performing road segemtnation and car detection using the HybridNets multitask model in ONNX.

License

NotificationsYou must be signed in to change notification settings

ibaiGorordo/ONNX-HybridNets-Multitask-Road-Detection

Repository files navigation

Python scripts for performing road segemtnation and car detection using the HybridNets multitask model in ONNX.

!HybridNets Road multitask detections

Requirements

  • Check therequirements.txt file. Additionally,pafy andyoutube-dl are required for youtube video inference.

Installation

pip install -r requirements.txtpip install youtube_dlpip install git+https://github.com/zizo-pro/pafy@b8976f22c19e4ab5515cacbfae0a3970370c102b

ONNX model

The original models were converted to different formats (including .onnx) byPINTO0309, download the models fromhis repository and save them into themodels folder.

Original Pytorch model

The Pytorch pretrained model was taken from theoriginal repository.

Examples

python image_road_detection.py

Original video:https://youtu.be/jvRDlJvG8E8

python video_bird_eye_view_road_detection.py

Original video:https://youtu.be/jvRDlJvG8E8

python video_road_detection.py

Bird Eye View for Custom Video:

If you use a different video for teh bird eye view, you will have to modify the horizon points. Sethorizon_points=None to trigger the horizon point selection mode. This mode will show the image and wait until the two horizon points are selected as in the image below. A horizontal line is used as a guide, if the road does not reach that height, you can ignore the horizontal line. Copy the printed output into thehorizon_points variable for next inferences.

!Horizon point selection

References:

About

Python scripts for performing road segemtnation and car detection using the HybridNets multitask model in ONNX.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp