Views
No views yet
1from ultralytics import YOLO
2
3# Load the model
4model = YOLO('best.pt')
5
6# Run inference
7results = model('satellite_image.jpg')
8
9# Process results
10for result in results:
11 boxes = result.boxes
12 for box in boxes:
13 class_id = int(box.cls)
14 confidence = float(box.conf)
15 print(f"Detected: {model.names[class_id]} (confidence: {confidence:.3f})")1from huggingface_hub import hf_hub_download
2from ultralytics import YOLO
3
4# Download model from HuggingFace
5model_path = hf_hub_download(
6 repo_id="omgbobbyg/satellite-equipment-detection-yolov8n-vhr10",
7 filename="best.pt"
8)
9
10# Load and use model
11model = YOLO(model_path)
12results = model('your_satellite_image.jpg')1@article{cheng2014multi,
2 title={Multi-class geospatial object detection and geographic image classification based on collection of part detectors},
3 author={Cheng, Gong and Han, Junwei and Zhou, Peicheng and Guo, Lei},
4 journal={ISPRS Journal of Photogrammetry and Remote Sensing},
5 volume={98},
6 pages={119--132},
7 year={2014},
8 publisher={Elsevier}
9}