Skip to content

Minminminwoo/Real-Time-Flying-Object-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Real-Time Flying Object Detection with YOLOv8

-----------------------------------------------------------------------------------

This repository is based on the implementation of a real-time flying object detection system using YOLOv8. 
It combines the execution of the associated GitHub files and the insights derived from the paper "Real-Time Flying Object Detection with YOLOv8." Below, we provide details on the methodology, dataset, and step-by-step usage instructions.


Paper and GitHub Repository

YOLOv8 GitHub Repository
https://github.com/ultralytics/ultralytics?tab=readme-ov-file
https://github.com/dillonreis/Real-Time-Flying-Object-Detection_with_YOLOv8

[Submitted on 17 May 2023 (v1), last revised 22 May 2024 (this version, v2)]
Real-Time Flying Object Detection with YOLOv8
Dillon Reis, Jordan Kupec, Jacqueline Hong, Ahmad Daoudi
https://arxiv.org/abs/2305.09972v2


This project involves testing the GitHub files and summarizing the key methodologies and findings from the paper.

-----------------------------------------------------------------------------------

Dataset
The dataset used for this project is "drone-detection-new," provided by Roboflow. 
It includes various images of drones captured in diverse conditions.

Dataset URL
drone-detection-new Computer Vision Project
https://universe.roboflow.com/ahmedmohsen/drone-detection-new-peksv


Dataset Key Features
Diverse Conditions: Data captured under varying lighting and weather conditions.
Variety of Objects: Includes flying objects of different sizes and types.


-----------------------------------------------------------------------------------



Key Contributions of the Paper
Generalized Real-Time Model:

Trained on a dataset with 40 flying object categories to extract abstract representations.
Fine-tuned through transfer learning to adapt to real-world scenarios.
YOLOv8 Advantages:

Improved accuracy and speed over previous YOLO models.
Utilization of advanced architectures such as FPN and PAN for robust detection.
Soft-NMS for better handling of overlapping objects in cluttered scenes.


-----------------------------------------------------------------------------------


Prerequisites
Python environment: Confirm Python installation.
CUDA Toolkit: Install the version compatible with your hardware and system (e.g., CUDA 11.8).
PyTorch: Install a version that supports your CUDA setup (e.g., PyTorch 2.5.1).


Installation

1.Install Required Libraries:
Use the command line to manually install the dependencies.

pip install torch torchvision opencv-python


2.Set Up CUDA:
Visit the NVIDIA CUDA Toolkit website and download the version matching your system.
Verify the setup by running:

torch.cuda.is_available()


3.Prepare Source Files:
Update the file paths in the code to point to your video or dataset:

source = r"D:\Real-Time-Flying-Object-Detection_with_YOLOv8-main\Project Example Video\dji mini.mp4"



Execution
Run Flying Object Detection.ipynb and check the "Ensure GPU available" step for successful GPU detection.
Processed video outputs will be saved in the results folder (predict1, predict2, ...).


-----------------------------------------------------------------------------------


Korean
์ด ์ €์žฅ์†Œ๋Š” YOLOv8์„ ๊ธฐ๋ฐ˜์œผ๋กœ ๋“œ๋ก , ํ•ญ๊ณต๊ธฐ, ์ƒˆ์™€ ๊ฐ™์€ ๋น„ํ–‰์ฒด๋ฅผ ์‹ค์‹œ๊ฐ„์œผ๋กœ ํƒ์ง€ํ•˜๋Š” ์‹œ์Šคํ…œ์˜ ์˜คํ”ˆ์†Œ์Šค ๊ตฌํ˜„์„ ์‹คํ–‰ํ•œ ๊ฒฐ๊ณผ๋ฅผ ๋‹ด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. 
๋˜ํ•œ, ๋…ผ๋ฌธ "YOLOv8๋ฅผ ํ™œ์šฉํ•œ ์‹ค์‹œ๊ฐ„ ๋น„ํ–‰์ฒด ํƒ์ง€"์˜ ์ฃผ์š” ๋‚ด์šฉ์„ ์ •๋ฆฌํ•˜์˜€์Šต๋‹ˆ๋‹ค.


๋…ผ๋ฌธ(pdf)๊ณผ ๋…ผ๋ฌธ์˜ ์ œ๋ชฉ
[Submitted on 17 May 2023 (v1), last revised 22 May 2024 (this version, v2)]
Real-Time Flying Object Detection with YOLOv8
Dillon Reis, Jordan Kupec, Jacqueline Hong, Ahmad Daoudi
https://arxiv.org/abs/2305.09972v2


๊นƒํ—ˆ๋ธŒ ๋งํฌ
https://github.com/ultralytics/ultralytics?tab=readme-ov-file
https://github.com/dillonreis/Real-Time-Flying-Object-Detection_with_YOLOv8


-----------------------------------------------------------------------------------

์‚ฌ์šฉํ•˜๊ณ ์ž ํ•˜๋Š” dataset
drone-detection-new Computer Vision Project
https://universe.roboflow.com/ahmedmohsen/drone-detection-new-peksv

์ฃผ์š” ํŠน์ง•
ํ™˜๊ฒฝ ๋‹ค์–‘์„ฑ: ๋‹ค์–‘ํ•œ ์กฐ๋ช… ๋ฐ ๋‚ ์”จ ์กฐ๊ฑด์—์„œ ์ดฌ์˜๋œ ๋ฐ์ดํ„ฐ ํฌํ•จ.
๊ฐ์ฒด ๋‹ค์–‘์„ฑ: ํฌ๊ธฐ์™€ ์ข…๋ฅ˜๊ฐ€ ์„œ๋กœ ๋‹ค๋ฅธ ๋น„ํ–‰์ฒด๋ฅผ ํฌํ•จ.

-----------------------------------------------------------------------------------


๋…ผ๋ฌธ ์ฃผ์š” ๋‚ด์šฉ
1.์ผ๋ฐ˜ํ™”๋œ ์‹ค์‹œ๊ฐ„ ๋ชจ๋ธ

40๊ฐ€์ง€ ๋น„ํ–‰์ฒด ์นดํ…Œ๊ณ ๋ฆฌ์— ๋Œ€ํ•œ ํ•™์Šต์œผ๋กœ ์ถ”์ƒ์  ํŠน์ง• ํ‘œํ˜„.
์ „์ด ํ•™์Šต์„ ํ†ตํ•ด ์‹ค์„ธ๊ณ„ ์‹œ๋‚˜๋ฆฌ์˜ค์— ์ ํ•ฉํ•œ ์ •๋ฐ€ ๋ชจ๋ธ ์ƒ์„ฑ.


2.YOLOv8 ์žฅ์ 

์ด์ „ YOLO ๋ชจ๋ธ ๋Œ€๋น„ ํ–ฅ์ƒ๋œ ์ •ํ™•๋„ ๋ฐ ์†๋„.
FPN, PAN ๋“ฑ์˜ ์•„ํ‚คํ…์ฒ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค์–‘ํ•œ ํฌ๊ธฐ์˜ ๊ฐ์ฒด๋ฅผ ํƒ์ง€ ๊ฐ€๋Šฅ.
Soft-NMS๋ฅผ ํ†ตํ•œ ์ค‘์ฒฉ ๊ฐ์ฒด ์ฒ˜๋ฆฌ ๋Šฅ๋ ฅ ๊ฐœ์„ .

-----------------------------------------------------------------------------------

์‚ฌ์ „ ์ค€๋น„
Python ํ™˜๊ฒฝ: Python ์„ค์น˜ ํ™•์ธ.
CUDA Toolkit: ์‹œ์Šคํ…œ ๋ฐ ํ•˜๋“œ์›จ์–ด์— ๋งž๋Š” ๋ฒ„์ „ ์„ค์น˜ (์˜ˆ: CUDA 11.8).
PyTorch: CUDA ์„ค์ •์— ๋งž๋Š” ๋ฒ„์ „ ์„ค์น˜ (์˜ˆ: PyTorch 2.5.1).


์„ค์น˜
1.ํ•„์ˆ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜
๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ˆ˜๋™ ์„ค์น˜.

pip install torch torchvision opencv-python


2.CUDA ์„ค์ •
NVIDIA CUDA Toolkit ์›น์‚ฌ์ดํŠธ์—์„œ ์‹œ์Šคํ…œ์— ๋งž๋Š” ๋ฒ„์ „ ๋‹ค์šด๋กœ๋“œ.

torch.cuda.is_available()



3.์†Œ์Šค ํŒŒ์ผ ์ค€๋น„
๊ฒฝ๋กœ๋ฅผ ์‹คํ–‰ ํ™˜๊ฒฝ์— ๋งž๊ฒŒ ์ˆ˜์ •

source = r"D:\Real-Time-Flying-Object-Detection_with_YOLOv8-main\Project Example Video\dji mini.mp4"


์‹คํ–‰ ๋ฐฉ๋ฒ•
Flying Object Detection.ipynb ํŒŒ์ผ์„ ์‹คํ–‰ํ•˜๊ณ  GPU ์„ค์ • ํ™•์ธ ๋‹จ๊ณ„๋ฅผ ํ†ตํ•ด ์ •์ƒ ์ž‘๋™ ํ™•์ธ.
์ฒ˜๋ฆฌ๋œ ๊ฒฐ๊ณผ ์˜์ƒ์€ ๊ฒฐ๊ณผ ํด๋”(predict1, predict2, ...)์—์„œ ํ™•์ธ ๊ฐ€๋Šฅ.





About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors