-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #575 from Nota-NetsPresso/dev
Micro update: v1.0.3 release
- Loading branch information
Showing
56 changed files
with
1,313 additions
and
329 deletions.
There are no files selected for viewing
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
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
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
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
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
56 changes: 56 additions & 0 deletions
56
config/benchmark_examples/detection-coco2017-yolo_fastest_v2/augmentation.yaml
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 @@ | ||
augmentation: | ||
train: | ||
- | ||
name: mosaicdetection | ||
size: [640, 640] | ||
mosaic_prob: 1.0 | ||
affine_scale: [0.5, 1.5] | ||
degrees: 10.0 | ||
translate: 0.1 | ||
shear: 2.0 | ||
enable_mixup: True | ||
mixup_prob: 1.0 | ||
mixup_scale: [0.1, 2.0] | ||
fill: 0 | ||
mosaic_off_epoch: 285 | ||
- | ||
name: hsvjitter | ||
h_mag: 5 | ||
s_mag: 30 | ||
v_mag: 30 | ||
- | ||
name: randomhorizontalflip | ||
p: 0.5 | ||
- | ||
name: resize | ||
size: 640 | ||
interpolation: bilinear | ||
max_size: ~ | ||
resize_criteria: long | ||
- | ||
name: pad | ||
size: 640 | ||
fill: 0 | ||
- | ||
name: randomresize | ||
base_size: [640, 640] | ||
stride: 32 | ||
random_range: 5 | ||
interpolation: bilinear | ||
- | ||
name: totensor | ||
pixel_range: 1.0 | ||
inference: | ||
- | ||
name: resize | ||
size: 640 | ||
interpolation: bilinear | ||
max_size: ~ | ||
resize_criteria: long | ||
- | ||
name: pad | ||
size: 640 | ||
fill: 0 | ||
- | ||
name: totensor | ||
pixel_range: 1.0 |
21 changes: 21 additions & 0 deletions
21
config/benchmark_examples/detection-coco2017-yolo_fastest_v2/data.yaml
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,21 @@ | ||
data: | ||
name: coco2017 | ||
task: detection | ||
format: local # local, huggingface | ||
path: | ||
root: ~/data/coco2017 # dataset root | ||
train: | ||
image: images/train # directory for training images | ||
label: labels/train # directory for training labels | ||
valid: | ||
image: images/valid # directory for valid images | ||
label: labels/valid # directory for valid labels | ||
test: | ||
image: ~ | ||
label: ~ | ||
pattern: | ||
image: ~ | ||
label: ~ | ||
id_mapping: id_mapping.json | ||
# id_mapping: ['person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck', 'boat', 'traffic light', 'fire hydrant', 'stop sign', 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe', 'backpack', 'umbrella', 'handbag', 'tie', 'suitcase', 'frisbee', 'skis', 'snowboard', 'sports ball', 'kite', 'baseball bat', 'baseball glove', 'skateboard', 'surfboard', 'tennis racket', 'bottle', 'wine glass', 'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple', 'sandwich', 'orange', 'broccoli', 'carrot', 'hot dog', 'pizza', 'donut', 'cake', 'chair', 'couch', 'potted plant', 'bed', 'dining table', 'toilet', 'tv', 'laptop', 'mouse', 'remote', 'keyboard', 'cell phone', 'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'book', 'clock', 'vase', 'scissors', 'teddy bear', 'hair drier', 'toothbrush'] | ||
pallete: ~ |
5 changes: 5 additions & 0 deletions
5
config/benchmark_examples/detection-coco2017-yolo_fastest_v2/environment.yaml
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,5 @@ | ||
environment: | ||
seed: 1 | ||
num_workers: 8 | ||
gpus: 0, 1, 2, 3 | ||
batch_size: 64 # Batch size per gpu |
17 changes: 17 additions & 0 deletions
17
config/benchmark_examples/detection-coco2017-yolo_fastest_v2/logging.yaml
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,17 @@ | ||
logging: | ||
project_id: ~ | ||
output_dir: ./outputs | ||
tensorboard: true | ||
image: true | ||
stdout: true | ||
model_save_options: | ||
save_optimizer_state: true | ||
save_best_only: false | ||
best_model_criterion: loss # metric | ||
sample_input_size: [640, 640] # Used for flops and onnx export | ||
onnx_export_opset: 13 # Recommend in range [13, 17] | ||
validation_epoch: &validation_epoch 10 | ||
save_checkpoint_epoch: *validation_epoch # Multiplier of `validation_epoch`. | ||
metrics: | ||
classwise_analysis: False | ||
metric_names: ~ # None for default settings |
41 changes: 41 additions & 0 deletions
41
config/benchmark_examples/detection-coco2017-yolo_fastest_v2/model.yaml
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,41 @@ | ||
model: | ||
task: detection | ||
name: yolo_fastest_v2 | ||
checkpoint: | ||
use_pretrained: False | ||
load_head: False | ||
path: ~ | ||
optimizer_path: ~ | ||
freeze_backbone: False | ||
architecture: | ||
full: ~ # auto | ||
backbone: | ||
name: shufflenetv2 | ||
params: | ||
model_size: 0.5x | ||
stage_params: | ||
~ | ||
neck: | ||
name: lightfpn | ||
params: | ||
out_channels: 72 | ||
head: | ||
name: yolo_fastest_head_v2 | ||
params: | ||
anchors: | ||
&anchors | ||
- [12.,18., 37.,49., 52.,132.] # P2 | ||
- [115.,73., 119.,199., 242.,238.] # P3 | ||
postprocessor: | ||
params: | ||
# postprocessor - decode | ||
score_thresh: 0.01 | ||
# postprocessor - nms | ||
nms_thresh: 0.65 | ||
anchors: *anchors | ||
class_agnostic: False | ||
losses: | ||
- criterion: yolofastest_loss | ||
anchors: *anchors | ||
l1_activate_epoch: ~ | ||
weight: ~ |
21 changes: 21 additions & 0 deletions
21
config/benchmark_examples/detection-coco2017-yolo_fastest_v2/training.yaml
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,21 @@ | ||
training: | ||
epochs: 300 | ||
mixed_precision: True | ||
max_norm: ~ | ||
ema: | ||
name: exp_decay | ||
decay: 0.9999 | ||
beta: 2000 | ||
optimizer: | ||
name: sgd | ||
lr: 0.001 | ||
momentum: 0.949 | ||
weight_decay: 0.0005 # No bias and norm decay | ||
nesterov: True | ||
no_bias_decay: True | ||
no_norm_weight_decay: True | ||
overwrite: ~ | ||
scheduler: | ||
name: multi_step | ||
milestones: [150, 250] | ||
gamma: 0.1 |
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
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
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
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.