Add YOLOv8n real-time road hazard detection for Jetson Nano#1
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
Co-authored-by: Sped32DJ <79542174+Sped32DJ@users.noreply.github.com>
Co-authored-by: Sped32DJ <79542174+Sped32DJ@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add YOLOv8n for computer vision on Jetson Nano
Add YOLOv8n real-time road hazard detection for Jetson Nano
Mar 9, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bootstraps the project from a README-only state into a functional YOLOv8n inference pipeline targeting the Jetson Nano, with support for CSI/USB cameras, custom model fine-tuning, and optional video/CSV output.
New files
detect.py— Main inference loop: loads YOLOv8n, reads camera frames, runsmodel.predict(), overlays bounding boxes, optionally saves annotated video and logs detections to CSV. CLI flags:--config,--weights,--source,--conf,--no-displaytrain.py— Fine-tuning wrapper aroundmodel.train()with flags for--data,--epochs,--batch,--imgsz,--device,--resumeutils.py— GStreamer CSI pipeline builder,open_video_source(CSI/USB/file/RTSP),draw_detections,setup_csv_logger/log_detectionsconfig.yaml— All runtime settings: model weights/confidence/IOU, camera source & resolution, per-class colours, video/CSV output pathsrequirements.txt—ultralytics,opencv-python,numpy,PyYAML,Pillow.gitignore— Excludes__pycache__,venv, YOLO run artefacts (runs/,*.pt), output filesDefault hazard classes (configurable in
config.yaml)pothole,crack,debris,manhole,bumpQuick start
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dns.google/usr/bin/python python detect.py --help(dns block)/usr/bin/python python train.py --help(dns block)/usr/bin/python python -c import detect; print('detect imports OK')(dns block)one.one.one.one/usr/bin/python python detect.py --help(dns block)/usr/bin/python python train.py --help(dns block)/usr/bin/python python -c import detect; print('detect imports OK')(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.