Skip to content

Commit ce7400b

Browse files
committed
add coneslayer-redux
1 parent 9c40bb8 commit ce7400b

9 files changed

+15634
-3
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
coneslayer-deluxe.pt filter=lfs diff=lfs merge=lfs -text
2+
coneslayer-deluxe/coneslayer-deluxe.pt filter=lfs diff=lfs merge=lfs -text
3+
coneslayer-redux/coneslayer-redux.bin filter=lfs diff=lfs merge=lfs -text
4+
coneslayer-redux/coneslayer-redux.pt filter=lfs diff=lfs merge=lfs -text
5+
coneslayer-redux/coneslayer-redux_openvino_2022.1_6shave.blob filter=lfs diff=lfs merge=lfs -text
6+
coneslayer-redux/coneslayer-redux-simplified.onnx filter=lfs diff=lfs merge=lfs -text

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ python -m pip install requirements.txt
5353

5454
Finally, run the command:
5555
```bash
56-
python3 detect.py --weights coneslayer.pt --conf 0.54 --iou 0.10 --img-size 416 --source ~/Path/To/Images
56+
python3 detect.py --weights coneslayer.pt --conf 0.54 --iou 0.50 --img-size 416 --source ~/Path/To/Images
5757
```
5858

5959
Alternatively, this repo uses the Luxonis Depthai Python SDK to obtain depth values for cones detected using the OAK-D:
@@ -62,15 +62,28 @@ Alternatively, this repo uses the Luxonis Depthai Python SDK to obtain depth val
6262

6363
You may also use one of the converted versions of the model, such as `coneslayer_openvino_2021.4_6shave.blob`, `coneslayer-simplified.onnx`, or `coneslayer.bin` created using [tools.luxonis.com](https://tools.luxonis.com). Usage as such may require an associated metadata file in either XML or JSON format.
6464

65+
## Coneslayer Redux
66+
67+
A moderately larger Coneslayer model, "Coneslayer Redux" is now available in the `coneslayer-redux` folder. It has an increased input size of 640x640 and is based on the YOLOv7 base model with ~32 million parameters, versus the original Coneslayer's 6 million. It was trained using the same methodology as Coneslayer, but the larger model size may allow it to be more accurate despite a reduced speed of inference.
68+
69+
To run coneslayer-redux, clone this repo and copy `coneslayer-redux.pt` to your `yolov7` directory. Perform the same steps as listed previously to establish your virtualenv (if you haven't done so already)
70+
71+
Finally, run the command:
72+
```bash
73+
python 3 detect.py --weights coneslayer-redux.pt --conf 0.54 --iou 0.50 --img-size 640 --source ~/Path/To/Images
74+
```
75+
76+
You may also use one of the converted versions of the model, such as `coneslayer-redux_openvino_2022.1_6shave.blob`, `coneslayer-redux-simplified.onnx`, or `coneslayer-redux.bin` created using [tools.luxonis.com](https://tools.luxonis.com). Usage as such may require an associated metadata file in either XML or JSON format.
77+
6578
## Coneslayer Deluxe
6679

67-
A larger Coneslayer, with an increased input size of 1280x1280 and based on YOLOv7-E6E with ~152 million parameters versus YOLOv7-tiny's 6 million, was trained using 4x V100 32Gb for about 120 computer hours. It is available from this repository only as the pytorch binary and not the onyx or other formats.
80+
An even larger Coneslayer, with an increased input size of 1280x1280 and based on YOLOv7-E6E with ~152 million parameters versus YOLOv7-tiny's 6 million, was trained using 4x V100 32Gb for about 120 computer hours. It is available from this repository only as the pytorch binary and not the onyx or other formats.
6881

6982
To run coneslayer-deluxe, clone this repo and copy `coneslayer-deluxe.pt` to your `yolov7` directory. Perform the same steps as listed previously to establish your virtualenv (if you haven't done so already)
7083

7184
Finally, run the command:
7285
```bash
73-
python3 detect.py --weights coneslayer-deluxe.pt --conf 0.54 --iou 0.10 --img-size 1280 --source ~/Path/To/Images
86+
python3 detect.py --weights coneslayer-deluxe.pt --conf 0.54 --iou 0.50 --img-size 1280 --source ~/Path/To/Images
7487
```
7588

7689
## Demo
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:74dfb2a2b6bb4bc8290bb013bdf1fdeb68a14ea7a7e60aed20b2638b3dc0dbf9
3+
size 146029682

coneslayer-redux/coneslayer-redux.bin

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:79dddcdbdfe3dd1a9d1eebc736513f2553f172ddfe50abf271840901d28c32c8
3+
size 72959920
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"model": {
3+
"xml": "coneslayer-redux.xml",
4+
"bin": "coneslayer-redux.bin"
5+
},
6+
"nn_config": {
7+
"output_format": "detection",
8+
"NN_family": "YOLO",
9+
"input_size": "640x640",
10+
"NN_specific_metadata": {
11+
"classes": 1,
12+
"coordinates": 4,
13+
"anchors": [
14+
4.45703125,
15+
9.078125,
16+
7.21484375,
17+
13.9921875,
18+
11.9296875,
19+
22.453125,
20+
19.75,
21+
35.15625,
22+
44.0,
23+
74.1875,
24+
82.875,
25+
168.75,
26+
168.5,
27+
239.125,
28+
218.875,
29+
375.0,
30+
322.0,
31+
589.5
32+
],
33+
"anchor_masks": {
34+
"side80": [
35+
0,
36+
1,
37+
2
38+
],
39+
"side40": [
40+
3,
41+
4,
42+
5
43+
],
44+
"side20": [
45+
6,
46+
7,
47+
8
48+
]
49+
},
50+
"iou_threshold": 0.5,
51+
"confidence_threshold": 0.54
52+
}
53+
},
54+
"mappings": {
55+
"labels": [
56+
"cone"
57+
]
58+
},
59+
"version": 1
60+
}

coneslayer-redux/coneslayer-redux.pt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:eeced5621c518f93bf7a89cbe19d244cb06f9f20f0844bdfcf347c81c88fad5b
3+
size 74810635

0 commit comments

Comments
 (0)