Gurveer05 commited on
Commit
71a4519
·
1 Parent(s): 2332797

update 27/07/24

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.md filter=lfs diff=lfs merge=lfs -text
37
+ *.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,82 +1,3 @@
1
- ---
2
- metrics:
3
- - precision
4
- - recall
5
- - mean_iou
6
- library_name: yolov5
7
- pipeline_tag: object-detection
8
- tags:
9
- - astronomy
10
- - space
11
- - yolo
12
- - yolov5
13
- - moon
14
- - crater/boulder detection
15
- - OHRC
16
- - ISRO
17
- - Chandrayaan
18
- ---
19
- # YOLOv5 for Crater/Boulder detection on Moon
20
-
21
- A yolov5s and a yolov5l model was trained on a labelled dataset of marked craters/boulders on moon. This was trained for the 3rd problem statement *Automatic detection of craters & boulders from Orbiter High Resolution Camera(OHRC) images using AI/ML techniques* of *Bharatiya Antariksh Hackathon 2024*.
22
-
23
- ## How to use
24
-
25
- - Install [yolov5](https://github.com/fcakyon/yolov5-pip):
26
-
27
- ```bash
28
- pip install -U yolov5
29
- ```
30
-
31
- - Load model and perform prediction:
32
-
33
- ```python
34
- import yolov5
35
- # from PIL import Image
36
-
37
- # load model
38
- model = yolov5.load('Gurveer05/moon-crater-boulder-detection-yolov5')
39
-
40
- # set model parameters
41
- model.conf = 0.25 # NMS confidence threshold
42
- model.iou = 0.45 # NMS IoU threshold
43
- model.agnostic = False # NMS class-agnostic
44
- model.multi_label = False # NMS multiple labels per box
45
- model.max_det = 1000 # maximum number of detections per image
46
-
47
- # set image
48
- img = 'path/to/image' # or use: img = Image.open('/path/to/image')
49
-
50
- # perform inference
51
- results = model(img) # add size=640 if needed
52
-
53
- # inference with test time augmentation
54
- results = model(img, augment=True)
55
-
56
- # parse results
57
- predictions = results.pred[0]
58
- boxes = predictions[:, :4] # x1, y1, x2, y2
59
- scores = predictions[:, 4]
60
- categories = predictions[:, 5]
61
-
62
- # show detection bounding boxes on image
63
- results.show()
64
-
65
- # save results into "results/" folder
66
- results.save(save_dir='results/')
67
- ```
68
-
69
- - Finetune the model on your custom dataset:
70
-
71
- ```bash
72
- yolov5 train --data data.yaml --img 640 --batch 16 --weights Gurveer05/moon-crater-boulder-detection-yolov5 --epochs 10
73
- ```
74
-
75
- ## References
76
-
77
- - [Dataset](https://www.kaggle.com/datasets/gurveersinghvirk/crater-boulder-moon-yolo-format)
78
- - [Code for training](https://www.kaggle.com/code/gurveersinghvirk/isro-hackathon?scriptVersionId=189827639)
79
- - [Output for OHRC images](https://www.kaggle.com/datasets/florabert/ohrc-moon-crater-boulder-detections-yolov5)
80
- - [Sliced OHRC images input](https://www.kaggle.com/datasets/gurveersinghvirk/ohrc-sliced)
81
- - [Code for inference on sliced OHRC images (Marked Images and Bounding Boxes CSV outputs)](https://www.kaggle.com/code/florabert/isro-hackathon-copy-1?scriptVersionId=189900697)
82
- - [Code for inference on sliced OHRC images (lat/long .shp files for bounding boxes and center)](https://www.kaggle.com/code/florabert/isro-hackathon-copy-1?scriptVersionId=189903524)
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4112e4e07fd79e1d260ba09ddd5b20e5983dcdd182d8680737ef88da2c2cf43d
3
+ size 2867
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
best.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e5caae191003b82e93ec90e315618f3a16b0c57df5ade27539b19f92ebfb1b67
3
- size 14443944
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee76a1b9212900a8c5ecb3077504a039da54691a65f03952cc94d459c9fef0b1
3
+ size 92854656
best_yolov5l.pt → sample_outputs.png RENAMED
File without changes