%📘Documentation | #🛠️Installation | 👀Model Zoo | 🆕Update News | 🚀Ongoing Projects | 🤔Reporting Issues
English | 简体中文
The identification of airplanes in satellite images holds significant importance, particularly in airport environments where aircraft are in constant transit. Manual airplane detection is characterized by being time-consuming, expensive, and prone to errors. Therefore, the utilization of intelligent airplane detection through artificial intelligence presents a promising solution. This study investigates the performance of the YOLO model for airplane detection in satellite images. The model achieves a detection accuracy of 93.3%, evaluated over 350 images collected through Google Earth remote sensing. The incorporation of the attention mechanism into the YOLO model significantly enhances airplane detection accuracy. Specifically, the spatial attention mechanism focuses on the airplane's position in the image, resulting in an increased accuracy of 96.6%. The channel attention mechanism, emphasizing features in different image channels, elevates accuracy to 96.3%. The introduction of the recurrent attention mechanism, which considers temporal features, leads to an accuracy boost of 95.7%. The integration of all three attention mechanisms culminates in an impressive accuracy of 97.8%. However, it is crucial to note that the integration of the attention mechanism into the YOLO model comes at the cost of increased processing time. Despite the substantial improvement in detection accuracy, this study reveals a 20% decrease in Frames Per Second (FPS) due to the additional computational load associated with the attention mechanism. This trade-off may pose limitations for applications requiring rapid image processing. In summary, the inclusion of attention mechanisms improves the precision of airplane detection in satellite images. However, it is crucial to carefully evaluate the impact on processing time. Additionally, the code for implementing these mechanisms can be found on GitHub.
MMAction2 depends on PyTorch, MMCV, MMDetection (optional), and MMPose(optional). Below are quick steps for installation. Please refer to install.md for more detailed instruction.
conda create -n open-mmlab python=3.8 pytorch=1.10 cudatoolkit=11.3 torchvision -c pytorch -y
conda activate open-mmlab
pip3 install openmim
mim install mmcv-full
mim install mmdet # optional
mim install mmpose # optional
git clone https://github.com/open-mmlab/mmaction2.git
cd mmaction2
pip3 install -e .
Install
Pip install the ultralytics package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.
pip install ultralytics
For alternative installation methods including Conda, Docker, and Git, please refer to the Quickstart Guide.
Usage
YOLOv8 may be used directly in the Command Line Interface (CLI) with a yolo
command:
yolo predict model=yolov8n.pt source='https://ultralytics.com/images/bus.jpg'
yolo
can be used for a variety of tasks and modes and accepts additional arguments, i.e. imgsz=640
. See the YOLOv8 CLI Docs for examples.
YOLOv8 may also be used directly in a Python environment, and accepts the same arguments as in the CLI example above:
from ultralytics import YOLO
# Load a model
model = YOLO("yolov8n.yaml") # build a new model from scratch
model = YOLO("yolov8n.pt") # load a pretrained model (recommended for training)
# Use the model
model.train(data="coco128.yaml", epochs=3) # train the model
metrics = model.val() # evaluate model performance on the validation set
results = model("https://ultralytics.com/images/bus.jpg") # predict on an image
path = model.export(format="onnx") # export the model to ONNX format
See YOLOv8 Python Docs for more examples.
If you find this project useful in your research, please consider cite:
@misc{ paper Analyzing the Impact of Attention Mechanisms on Airplane Detection Accuracy in Satellite Images using YOLO Model
}
This project is released under the Apache 2.0 license.