Skip to content

Commit

Permalink
Merge branch 'Nota-NetsPresso:dev' into 376-yolofastest
Browse files Browse the repository at this point in the history
  • Loading branch information
hglee98 authored Jun 25, 2024
2 parents 5869c1d + 425c91c commit f16c38a
Show file tree
Hide file tree
Showing 45 changed files with 170 additions and 79 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## New Features:

- Add YOLOX-nano and YOLOX-tiny by `@hglee98` in [PR 467](https://github.com/Nota-NetsPresso/netspresso-trainer/pull/467)
- Separate postprocessor configuration hierarchy by `@hglee98` in [PR 470](https://github.com/Nota-NetsPresso/netspresso-trainer/pull/470)

## Bug Fixes:

Expand All @@ -15,6 +16,7 @@ No changes to highlight.
## Other Changes:

- Change attention bias interpolate method by `@illian01` in [PR 468](https://github.com/Nota-NetsPresso/netspresso-trainer/pull/468)
- Fix ViT token number in positional encoding for torch.fx compile step by `@illian01` in [PR 475](https://github.com/Nota-NetsPresso/netspresso-trainer/pull/475)

# v0.2.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
12 changes: 7 additions & 5 deletions config/benchmark_examples/detection-coco2017-yolox_s/model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ model:
name: anchor_free_decoupled_head
params:
act_type: *act_type
# postprocessor - decode
score_thresh: 0.01
# postprocessor - nms
nms_thresh: 0.65
class_agnostic: False
postprocessor:
params:
# postprocessor - decode
score_thresh: 0.01
# postprocessor - nms
nms_thresh: 0.65
class_agnostic: False
losses:
- criterion: yolox_loss
weight: ~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
16 changes: 9 additions & 7 deletions config/model/efficientformer/efficientformer-l1-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ model:
anchor_sizes: [[32,], [64,], [128,], [256,]]
aspect_ratios: [0.5, 1.0, 2.0]
num_layers: 1
norm_type: batch_norm
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
norm_type: batch_norm
postprocessor:
params:
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
losses:
- criterion: retinanet_loss
weight: ~
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ model:
params:
intermediate_channels: 256
classifier_dropout_prob: 0.
postprocessor: ~
losses:
- criterion: seg_cross_entropy
weight: ~
Expand Down
3 changes: 3 additions & 0 deletions config/model/mixnet/mixnet-l-classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
14 changes: 8 additions & 6 deletions config/model/mixnet/mixnet-l-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ model:
aspect_ratios: [0.5, 1.0, 2.0]
num_layers: 1
norm_type: batch_norm
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
postprocessor:
params:
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
losses:
- criterion: retinanet_loss
weight: ~
1 change: 1 addition & 0 deletions config/model/mixnet/mixnet-l-segmentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ model:
params:
intermediate_channels: 256
classifier_dropout_prob: 0.
postprocessor: ~
losses:
- criterion: seg_cross_entropy
weight: ~
Expand Down
3 changes: 3 additions & 0 deletions config/model/mixnet/mixnet-m-classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
14 changes: 8 additions & 6 deletions config/model/mixnet/mixnet-m-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ model:
aspect_ratios: [0.5, 1.0, 2.0]
num_layers: 1
norm_type: batch_norm
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
postprocessor:
params:
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
losses:
- criterion: retinanet_loss
weight: ~
1 change: 1 addition & 0 deletions config/model/mixnet/mixnet-m-segmentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ model:
params:
intermediate_channels: 256
classifier_dropout_prob: 0.
postprocessor: ~
losses:
- criterion: seg_cross_entropy
weight: ~
Expand Down
3 changes: 3 additions & 0 deletions config/model/mixnet/mixnet-s-classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
14 changes: 8 additions & 6 deletions config/model/mixnet/mixnet-s-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ model:
aspect_ratios: [0.5, 1.0, 2.0]
num_layers: 1
norm_type: batch_norm
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
postprocessor:
params:
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
losses:
- criterion: retinanet_loss
weight: ~
1 change: 1 addition & 0 deletions config/model/mixnet/mixnet-s-segmentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ model:
params:
intermediate_channels: 256
classifier_dropout_prob: 0.
postprocessor: ~
losses:
- criterion: seg_cross_entropy
weight: ~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ model:
intermediate_channels: 1280
act_type: hard_swish
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ model:
intermediate_channels: 1024
act_type: hard_swish
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
14 changes: 8 additions & 6 deletions config/model/mobilenetv3/mobilenetv3-small-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ model:
aspect_ratios: [0.5, 1.0, 2.0]
num_layers: 1
norm_type: batch_norm
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
postprocessor:
params:
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
losses:
- criterion: retinanet_loss
weight: ~
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ model:
params:
intermediate_channels: 256
classifier_dropout_prob: 0.
postprocessor: ~
losses:
- criterion: seg_cross_entropy
weight: ~
Expand Down
3 changes: 3 additions & 0 deletions config/model/mobilevit/mobilevit-s-classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
1 change: 1 addition & 0 deletions config/model/pidnet/pidnet-s-segmentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ model:
head_channels: 128
backbone: ~
head: ~
postprocessor: ~
losses:
- criterion: pidnet_loss
weight: ~
Expand Down
3 changes: 3 additions & 0 deletions config/model/resnet/resnet18-classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
3 changes: 3 additions & 0 deletions config/model/resnet/resnet34-classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
3 changes: 3 additions & 0 deletions config/model/resnet/resnet50-classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
14 changes: 8 additions & 6 deletions config/model/resnet/resnet50-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ model:
aspect_ratios: [0.5, 1.0, 2.0]
num_layers: 1
norm_type: batch_norm
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
postprocessor:
params:
# postprocessor - decode
topk_candidates: 1000
score_thresh: 0.05
# postprocessor - nms
nms_thresh: 0.45
class_agnostic: False
losses:
- criterion: retinanet_loss
weight: ~
1 change: 1 addition & 0 deletions config/model/resnet/resnet50-segmentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ model:
params:
intermediate_channels: 256
classifier_dropout_prob: 0.
postprocessor: ~
losses:
- criterion: seg_cross_entropy
weight: ~
Expand Down
3 changes: 3 additions & 0 deletions config/model/rtmpose/rtmpose-pose_estimation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ model:
simcc_split_ratio: 2.
target_size: [256, 256]
backbone_stride: 32
postprocessor:
params:
simcc_split_ratio: 2.
losses:
- criterion: rtmcc_loss
weight: ~
1 change: 1 addition & 0 deletions config/model/segformer/segformer-b0-segmentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ model:
intermediate_channels: 256
classifier_dropout_prob: 0.
resize_output: [512, 512]
postprocessor: ~
losses:
- criterion: seg_cross_entropy
weight: ~
Expand Down
3 changes: 3 additions & 0 deletions config/model/vit/vit-tiny-classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ model:
intermediate_channels: ~
act_type: ~
dropout_prob: 0.
postprocessor:
params:
topk_max: 20
losses:
- criterion: cross_entropy
label_smoothing: 0.1
Expand Down
Loading

0 comments on commit f16c38a

Please sign in to comment.