rmayormartins commited on
Commit
b362a50
1 Parent(s): 899ee92

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +99 -3
README.md CHANGED
@@ -1,3 +1,99 @@
1
- ---
2
- license: ecl-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: ecl-2.0
4
+ ---
5
+
6
+ # YOLOv5 Sunspot Hunter
7
+
8
+ 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.
9
+
10
+ ## Model Information
11
+
12
+ - **Model:** YOLOv5
13
+ - **Task:** Object Detection
14
+ - **Classes:** Sunspots
15
+ - **File:** `best.pt`
16
+
17
+ ## How to Use
18
+
19
+ To use the YOLOv5 Sunspot Hunter model, follow these steps:
20
+
21
+ ### 1. Loading the Model
22
+
23
+ You can load the model using the `torch` library and the `ultralytics/yolov5` repository. Here's an example in Python:
24
+
25
+ ```python
26
+ import torch
27
+
28
+ # Load the model
29
+ model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt')
30
+
31
+ # Load an image
32
+ img = 'path/to/your/image.jpg'
33
+
34
+ # Perform inference
35
+ results = model(img)
36
+
37
+ # Display results
38
+ results.show()
39
+ ```
40
+
41
+ ### 2. Running Inference
42
+
43
+ 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.
44
+
45
+ ### 3. Example Usage
46
+
47
+ Here's an example of how to use the model to detect sunspots in an image:
48
+
49
+ ```python
50
+ import torch
51
+ from PIL import Image
52
+
53
+ # Load the model
54
+ model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt')
55
+
56
+ # Load an image
57
+ img = Image.open('path/to/your/solar_image.jpg')
58
+
59
+ # Perform inference
60
+ results = model(img)
61
+
62
+ # Print results
63
+ results.print() # Print results to console
64
+ results.show() # Display results
65
+
66
+ # Save results
67
+ results.save('path/to/save/results/') # Save results to a directory
68
+ ```
69
+
70
+ ## Model Training
71
+
72
+ 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:
73
+
74
+ 1. Collecting and annotating the data.
75
+ 2. Training the YOLOv5 model with the annotated data.
76
+ 3. Fine-tuning the model to improve accuracy.
77
+
78
+ ### Training Configuration
79
+
80
+ Soon
81
+
82
+ ## Acknowledgements
83
+
84
+ Special thanks to the contributors and the open-source community for providing resources and support.
85
+
86
+ ## License
87
+
88
+ This project is licensed under the Eclipse Public License 2.0.
89
+
90
+ ## Contact
91
+
92
+ For more information or questions about the model, please contact Ramon Mayor Martins:
93
+
94
+ - Email: [rmayormartins@gmail.com](mailto:rmayormartins@gmail.com)
95
+ - Homepage: [https://rmayormartins.github.io/](https://rmayormartins.github.io/)
96
+ - Twitter: [@rmayormartins](https://twitter.com/rmayormartins)
97
+ - GitHub: [https://github.com/rmayormartins](https://github.com/rmayormartins)
98
+ - My Radio Callsign (PU4MAY) Brazil
99
+