-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement CBAM and Involution block; Create the yaml file
- Loading branch information
1 parent
7dc89d8
commit e3b3932
Showing
60 changed files
with
1,475 additions
and
63 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo off | ||
REM 初始化Anaconda环境 | ||
CALL D:\Programming\Anaconda3\Scripts\activate.bat | ||
REM 激活conda环境 | ||
CALL activate pytorch | ||
REM 启动Jupyter Notebook | ||
CALL jupyter notebook --NotebookApp.token='f425885e3f44deefa51613af98fea11694b2806e9628b070' | ||
REM 保持窗口打开 | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo off | ||
REM 初始化Anaconda环境 | ||
CALL D:\Programming\Anaconda3\Scripts\activate.bat | ||
REM 激活conda环境 | ||
CALL activate pytorch | ||
REM 启动Jupyter Notebook | ||
CALL python -m tensorboard.main --logdir='small_grabage/' | ||
REM 保持窗口打开 | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
task: detect | ||
mode: train | ||
model: yolov8n-CBAM-P2.yaml | ||
data: data.yaml | ||
epochs: 1000 | ||
patience: 50 | ||
batch: 16 | ||
imgsz: 256 | ||
save: true | ||
save_period: -1 | ||
cache: false | ||
device: null | ||
workers: 8 | ||
project: small_grabage | ||
name: CBAM-P2 | ||
exist_ok: false | ||
pretrained: true | ||
optimizer: auto | ||
verbose: true | ||
seed: 0 | ||
deterministic: true | ||
single_cls: false | ||
rect: false | ||
cos_lr: false | ||
close_mosaic: 10 | ||
resume: null | ||
amp: true | ||
fraction: 1.0 | ||
profile: false | ||
freeze: null | ||
overlap_mask: true | ||
mask_ratio: 4 | ||
dropout: 0.0 | ||
val: true | ||
split: val | ||
save_json: false | ||
save_hybrid: false | ||
conf: null | ||
iou: 0.7 | ||
max_det: 300 | ||
half: false | ||
dnn: false | ||
plots: true | ||
source: null | ||
show: false | ||
save_txt: false | ||
save_conf: false | ||
save_crop: false | ||
show_labels: true | ||
show_conf: true | ||
vid_stride: 1 | ||
stream_buffer: false | ||
line_width: null | ||
visualize: false | ||
augment: false | ||
agnostic_nms: false | ||
classes: null | ||
retina_masks: false | ||
boxes: true | ||
format: torchscript | ||
keras: false | ||
optimize: false | ||
int8: false | ||
dynamic: false | ||
simplify: false | ||
opset: null | ||
workspace: 4 | ||
nms: false | ||
lr0: 0.01 | ||
lrf: 0.01 | ||
momentum: 0.937 | ||
weight_decay: 0.0005 | ||
warmup_epochs: 3.0 | ||
warmup_momentum: 0.8 | ||
warmup_bias_lr: 0.1 | ||
box: 7.5 | ||
cls: 0.5 | ||
dfl: 1.5 | ||
pose: 12.0 | ||
kobj: 1.0 | ||
label_smoothing: 0.0 | ||
nbs: 64 | ||
hsv_h: 0.015 | ||
hsv_s: 0.7 | ||
hsv_v: 0.4 | ||
degrees: 0.0 | ||
translate: 0.1 | ||
scale: 0.5 | ||
shear: 0.0 | ||
perspective: 0.0 | ||
flipud: 0.0 | ||
fliplr: 0.5 | ||
mosaic: 1.0 | ||
mixup: 0.0 | ||
copy_paste: 0.0 | ||
cfg: null | ||
tracker: botsort.yaml | ||
save_dir: small_grabage\CBAM-P2 |
Binary file added
BIN
+2.86 MB
small_grabage/CBAM-P2/events.out.tfevents.1700629108.Harry4090.77596.1
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
task: detect | ||
mode: train | ||
model: yolov8n-CBAM.yaml | ||
data: data.yaml | ||
epochs: 1000 | ||
patience: 50 | ||
batch: 16 | ||
imgsz: 256 | ||
save: true | ||
save_period: -1 | ||
cache: false | ||
device: null | ||
workers: 8 | ||
project: small_grabage | ||
name: CBAM | ||
exist_ok: false | ||
pretrained: true | ||
optimizer: auto | ||
verbose: true | ||
seed: 0 | ||
deterministic: true | ||
single_cls: false | ||
rect: false | ||
cos_lr: false | ||
close_mosaic: 10 | ||
resume: null | ||
amp: true | ||
fraction: 1.0 | ||
profile: false | ||
freeze: null | ||
overlap_mask: true | ||
mask_ratio: 4 | ||
dropout: 0.0 | ||
val: true | ||
split: val | ||
save_json: false | ||
save_hybrid: false | ||
conf: null | ||
iou: 0.7 | ||
max_det: 300 | ||
half: false | ||
dnn: false | ||
plots: true | ||
source: null | ||
show: false | ||
save_txt: false | ||
save_conf: false | ||
save_crop: false | ||
show_labels: true | ||
show_conf: true | ||
vid_stride: 1 | ||
stream_buffer: false | ||
line_width: null | ||
visualize: false | ||
augment: false | ||
agnostic_nms: false | ||
classes: null | ||
retina_masks: false | ||
boxes: true | ||
format: torchscript | ||
keras: false | ||
optimize: false | ||
int8: false | ||
dynamic: false | ||
simplify: false | ||
opset: null | ||
workspace: 4 | ||
nms: false | ||
lr0: 0.01 | ||
lrf: 0.01 | ||
momentum: 0.937 | ||
weight_decay: 0.0005 | ||
warmup_epochs: 3.0 | ||
warmup_momentum: 0.8 | ||
warmup_bias_lr: 0.1 | ||
box: 7.5 | ||
cls: 0.5 | ||
dfl: 1.5 | ||
pose: 12.0 | ||
kobj: 1.0 | ||
label_smoothing: 0.0 | ||
nbs: 64 | ||
hsv_h: 0.015 | ||
hsv_s: 0.7 | ||
hsv_v: 0.4 | ||
degrees: 0.0 | ||
translate: 0.1 | ||
scale: 0.5 | ||
shear: 0.0 | ||
perspective: 0.0 | ||
flipud: 0.0 | ||
fliplr: 0.5 | ||
mosaic: 1.0 | ||
mixup: 0.0 | ||
copy_paste: 0.0 | ||
cfg: null | ||
tracker: botsort.yaml | ||
save_dir: small_grabage\CBAM |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Ultralytics YOLO 🚀, AGPL-3.0 license | ||
# YOLOv8 object detection model with P3-P5 outputs. For Usage examples see https://docs.ultralytics.com/tasks/detect | ||
|
||
# Parameters | ||
nc: 80 # number of classes | ||
scales: # model compound scaling constants, i.e. 'model=yolov8n.yaml' will call yolov8.yaml with scale 'n' | ||
# [depth, width, max_channels] | ||
n: [0.33, 0.25, 1024] # YOLOv8n summary: 225 layers, 3157200 parameters, 3157184 gradients, 8.9 GFLOPs | ||
s: [0.33, 0.50, 1024] # YOLOv8s summary: 225 layers, 11166560 parameters, 11166544 gradients, 28.8 GFLOPs | ||
m: [0.67, 0.75, 768] # YOLOv8m summary: 295 layers, 25902640 parameters, 25902624 gradients, 79.3 GFLOPs | ||
l: [1.00, 1.00, 512] # YOLOv8l summary: 365 layers, 43691520 parameters, 43691504 gradients, 165.7 GFLOPs | ||
x: [1.00, 1.25, 512] # YOLOv8x summary: 365 layers, 68229648 parameters, 68229632 gradients, 258.5 GFLOPs | ||
|
||
# YOLOv8.0n backbone | ||
backbone: | ||
# [from, repeats, module, args] | ||
- [-1, 1, Conv, [64, 3, 2]] # 0-P1/2 | ||
- [-1, 1, Conv, [128, 3, 2]] # 1-P2/4 | ||
- [-1, 3, C2f, [128, True]] | ||
- [-1, 1, Conv, [256, 3, 2]] # 3-P3/8 | ||
- [-1, 6, C2f, [256, True]] | ||
- [-1, 1, Conv, [512, 3, 2]] # 5-P4/16 | ||
- [-1, 6, C2f, [512, True]] | ||
- [-1, 1, Conv, [1024, 3, 2]] # 7-P5/32 | ||
- [-1, 3, C2f, [1024, True]] | ||
- [-1, 3, CBAMBottleneck, [1024, 3]] | ||
- [-1, 1, SPPF, [1024, 5]] # 10 | ||
|
||
# YOLOv8.0n head | ||
head: | ||
- [-1, 1, inv, [1024, 1, 1]] | ||
- [-1, 1, nn.Upsample, [None, 2, 'nearest']] | ||
- [[-1, 6], 1, Concat, [1]] # cat backbone P4 | ||
- [-1, 3, C2f, [512]] # 14 | ||
|
||
- [-1, 1, nn.Upsample, [None, 2, 'nearest']] | ||
- [[-1, 4], 1, Concat, [1]] # cat backbone P3 | ||
- [-1, 3, C2f, [256]] # 17 (P3/8-small) | ||
|
||
- [-1, 1, nn.Upsample, [None, 2, 'nearest']] | ||
- [[-1, 2], 1, Concat, [1]] # cat backbone P2 | ||
- [-1, 3, C2f, [128]] # 20 (P2/4-xsmall) | ||
|
||
- [-1, 1, Conv, [128, 3, 2]] | ||
- [[-1, 15], 1, Concat, [1]] # cat head P3 | ||
- [-1, 3, C2f, [256]] # 23 (P3/8-small) | ||
|
||
- [-1, 1, Conv, [256, 3, 2]] | ||
- [[-1, 12], 1, Concat, [1]] # cat head P4 | ||
- [-1, 3, C2f, [512]] # 26 (P4/16-medium) | ||
|
||
- [-1, 1, Conv, [512, 3, 2]] | ||
- [[-1, 9], 1, Concat, [1]] # cat head P5 | ||
- [-1, 3, C2f, [1024]] # 29 (P5/32-large) | ||
|
||
- [[20, 23, 26, 29], 1, Detect, [nc]] # Detect(P2, P3, P4, P5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Ultralytics YOLO 🚀, AGPL-3.0 license | ||
# YOLOv8 object detection model with P3-P5 outputs. For Usage examples see https://docs.ultralytics.com/tasks/detect | ||
|
||
# Parameters | ||
nc: 80 # number of classes | ||
scales: # model compound scaling constants, i.e. 'model=yolov8n.yaml' will call yolov8.yaml with scale 'n' | ||
# [depth, width, max_channels] | ||
n: [0.33, 0.25, 1024] # YOLOv8n summary: 225 layers, 3157200 parameters, 3157184 gradients, 8.9 GFLOPs | ||
s: [0.33, 0.50, 1024] # YOLOv8s summary: 225 layers, 11166560 parameters, 11166544 gradients, 28.8 GFLOPs | ||
m: [0.67, 0.75, 768] # YOLOv8m summary: 295 layers, 25902640 parameters, 25902624 gradients, 79.3 GFLOPs | ||
l: [1.00, 1.00, 512] # YOLOv8l summary: 365 layers, 43691520 parameters, 43691504 gradients, 165.7 GFLOPs | ||
x: [1.00, 1.25, 512] # YOLOv8x summary: 365 layers, 68229648 parameters, 68229632 gradients, 258.5 GFLOPs | ||
|
||
# YOLOv8.0n backbone | ||
backbone: | ||
# [from, repeats, module, args] | ||
- [-1, 1, Conv, [64, 3, 2]] # 0-P1/2 | ||
- [-1, 1, Conv, [128, 3, 2]] # 1-P2/4 | ||
- [-1, 3, C2f, [128, True]] | ||
- [-1, 1, Conv, [256, 3, 2]] # 3-P3/8 | ||
- [-1, 6, C2f, [256, True]] | ||
- [-1, 1, Conv, [512, 3, 2]] # 5-P4/16 | ||
- [-1, 6, C2f, [512, True]] | ||
- [-1, 1, Conv, [1024, 3, 2]] # 7-P5/32 | ||
- [-1, 3, C2f, [1024, True]] | ||
- [-1, 3, CBAMBottleneck, [1024, 3]] | ||
- [-1, 1, SPPF, [1024, 5]] # 10 | ||
|
||
# YOLOv8.0n head | ||
head: | ||
- [-1, 1, inv, [1024, 1, 1]] | ||
- [-1, 1, nn.Upsample, [None, 2, 'nearest']] | ||
- [[-1, 6], 1, Concat, [1]] # cat backbone P4 | ||
- [-1, 3, C2f, [512]] # 13 | ||
|
||
- [-1, 1, nn.Upsample, [None, 2, 'nearest']] | ||
- [[-1, 4], 1, Concat, [1]] # cat backbone P3 | ||
- [-1, 3, C2f, [256]] # 16 (P3/8-small) | ||
|
||
- [-1, 1, Conv, [256, 3, 2]] | ||
- [[-1, 12], 1, Concat, [1]] # cat head P4 | ||
- [-1, 3, C2f, [512]] # 19 (P4/16-medium) | ||
|
||
- [-1, 1, Conv, [512, 3, 2]] | ||
- [[-1, 9], 1, Concat, [1]] # cat head P5 | ||
- [-1, 3, C2f, [1024]] # 22 (P5/32-large) | ||
|
||
- [[16, 19, 22], 1, Detect, [nc]] # Detect(P3, P4, P5) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.