Downloads · 30 days
0
rmayormartins/yolov5-sunspot-hunter
yolov5-sunspot-hunter is a machine learning model from rmayormartins. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as ecl-2.0.
This repository contains a YOLOv5 model trained to detect and identify sunspots in solar images. The model is designed to facilitate the monitoring and study of solar activity.
Downloads · 30 days
0
Access
Public
Updated May 22, 2024
Repo size
14.4 MB
Likes
0
Public
Click a slice to open those files.
.pt14.4 MB · 100%
From the Hugging Face model README
This repository contains a YOLOv5 model trained to detect and identify sunspots in solar images. The model is designed to facilitate the monitoring and study of solar activity.
best.ptTo use the YOLOv5 Sunspot Hunter model, follow these steps:
You can load the model using the torch library and the ultralytics/yolov5 repository. Here's an example in Python:
import torch
# Load the model
model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt')
# Load an image
img = 'path/to/your/image.jpg'
# Perform inference
results = model(img)
# Display results
results.show()
After loading the model, you can perform inference on your images to detect and identify sunspots. The model will output the image with bounding boxes around detected sunspots and other relevant details.
Here's an example of how to use the model to detect sunspots in an image:
import torch
from PIL import Image
# Load the model
model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt')
# Load an image
img = Image.open('path/to/your/solar_image.jpg')
# Perform inference
results = model(img)
# Print results
results.print() # Print results to console
results.show() # Display results
# Save results
results.save('path/to/save/results/') # Save results to a directory
The model was trained using a custom dataset of solar images. The dataset was annotated with bounding boxes around sunspots using MakeSense, and the YOLOv5 model was trained using these annotations. The training process involved:
Soon
Special thanks to the contributors and the open-source community for providing resources and support.
This project is licensed under the Eclipse Public License 2.0.
For more information or questions about the model, please contact Ramon Mayor Martins: