SoyoKaze83
commited on
Commit
·
44eeac1
1
Parent(s):
3c8acc3
adjust setup
Browse files- config.json +0 -10
- config.yaml +29 -0
- model.safetensors → yolov8.pt +2 -2
config.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"architectures": [
|
3 |
-
"YOLOModel"
|
4 |
-
],
|
5 |
-
"model_type": "yolo_trash",
|
6 |
-
"model_version": "yolov8",
|
7 |
-
"num_classes": 5,
|
8 |
-
"torch_dtype": "float32",
|
9 |
-
"transformers_version": "4.42.4"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.yaml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
2 |
+
# YOLOv8-cls image classification model. For Usage examples see https://docs.ultralytics.com/tasks/classify
|
3 |
+
|
4 |
+
# Parameters
|
5 |
+
nc: 6 # number of classes
|
6 |
+
scales: # model compound scaling constants, i.e. 'model=yolov8n-cls.yaml' will call yolov8-cls.yaml with scale 'n'
|
7 |
+
# [depth, width, max_channels]
|
8 |
+
n: [0.33, 0.25, 1024]
|
9 |
+
s: [0.33, 0.50, 1024]
|
10 |
+
m: [0.67, 0.75, 1024]
|
11 |
+
l: [1.00, 1.00, 1024]
|
12 |
+
x: [1.00, 1.25, 1024]
|
13 |
+
|
14 |
+
# YOLOv8.0n backbone
|
15 |
+
backbone:
|
16 |
+
# [from, repeats, module, args]
|
17 |
+
- [-1, 1, Conv, [64, 3, 2]] # 0-P1/2
|
18 |
+
- [-1, 1, Conv, [128, 3, 2]] # 1-P2/4
|
19 |
+
- [-1, 3, C2f, [128, True]]
|
20 |
+
- [-1, 1, Conv, [256, 3, 2]] # 3-P3/8
|
21 |
+
- [-1, 6, C2f, [256, True]]
|
22 |
+
- [-1, 1, Conv, [512, 3, 2]] # 5-P4/16
|
23 |
+
- [-1, 6, C2f, [512, True]]
|
24 |
+
- [-1, 1, Conv, [1024, 3, 2]] # 7-P5/32
|
25 |
+
- [-1, 3, C2f, [1024, True]]
|
26 |
+
|
27 |
+
# YOLOv8.0n head
|
28 |
+
head:
|
29 |
+
- [-1, 1, Classify, [nc]] # Classify
|
model.safetensors → yolov8.pt
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:45bfe5d83c25117a87c68852b5b2f4b04819958f0a4886c03120ca429d20bf8a
|
3 |
+
size 10265473
|