-
Notifications
You must be signed in to change notification settings - Fork 5
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 #441 from Nota-NetsPresso/dev
Update from dev branch: v0.2.1 release
- Loading branch information
Showing
95 changed files
with
2,983 additions
and
1,786 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
augmentation: | ||
img_size: &img_size 256 | ||
train: | ||
- | ||
name: randomhorizontalflip | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
augmentation: | ||
img_size: &img_size 512 | ||
train: | ||
- | ||
name: randomresizedcrop | ||
|
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 |
---|---|---|
@@ -1,32 +1,3 @@ | ||
augmentation: | ||
train: | ||
- | ||
name: randomresizedcrop | ||
size: ~ | ||
sclale: ~ | ||
ratio: ~ | ||
interpolation: bilinear | ||
- | ||
name: randomhorizontalflip | ||
p: ~ | ||
- | ||
name: randomverticalflip | ||
p: ~ | ||
- | ||
name: colorjitter | ||
brightness: ~ | ||
contrast: ~ | ||
saturation: ~ | ||
hue: ~ | ||
p: ~ | ||
- | ||
name: resize | ||
size: ~ | ||
interpolation: ~ | ||
max_size: ~ | ||
- | ||
name: pad | ||
padding: ~ | ||
fill: ~ | ||
padding_mode: ~ | ||
train: ~ | ||
inference: ~ |
21 changes: 21 additions & 0 deletions
21
config/benchmark_examples/classification-imagenet1k-resnet18/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,21 @@ | ||
augmentation: | ||
train: | ||
- | ||
name: randomresizedcrop | ||
size: 256 | ||
scale: [0.08, 1.0] | ||
ratio: [0.75, 1.33] | ||
interpolation: bilinear | ||
- | ||
name: randomhorizontalflip | ||
p: 0.5 | ||
inference: | ||
- | ||
name: resize | ||
size: [256, 256] | ||
interpolation: bilinear | ||
max_size: ~ | ||
resize_criteria: ~ | ||
- | ||
name: centercrop | ||
size: 224 |
16 changes: 16 additions & 0 deletions
16
config/benchmark_examples/classification-imagenet1k-resnet18/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,16 @@ | ||
data: | ||
name: IMAGENET1K | ||
task: classification | ||
format: local # local, huggingface | ||
path: | ||
root: ./data/imagenet1k # dataset root | ||
train: | ||
image: images/train # directory for training images | ||
label: labels/imagenet_train.csv # directory for training labels or csv file | ||
valid: | ||
image: images/valid # directory for valid images | ||
label: labels/imagenet_valid.csv # directory for valid labels or csv file | ||
test: | ||
image: ~ | ||
label: ~ | ||
id_mapping: id_mapping.json |
5 changes: 5 additions & 0 deletions
5
config/benchmark_examples/classification-imagenet1k-resnet18/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: 4 | ||
gpus: 0, 1, 2, 3, 4, 5, 6, 7 | ||
batch_size: 32 # Batch size per gpu |
10 changes: 10 additions & 0 deletions
10
config/benchmark_examples/classification-imagenet1k-resnet18/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,10 @@ | ||
logging: | ||
project_id: ~ | ||
output_dir: ./outputs | ||
tensorboard: true | ||
image: true | ||
stdout: true | ||
save_optimizer_state: true | ||
onnx_input_size: [224, 224] | ||
validation_epoch: &validation_epoch 5 | ||
save_checkpoint_epoch: *validation_epoch # Multiplier of `validation_epoch`. |
44 changes: 44 additions & 0 deletions
44
config/benchmark_examples/classification-imagenet1k-resnet18/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,44 @@ | ||
model: | ||
task: classification | ||
name: resnet18 | ||
checkpoint: | ||
use_pretrained: False | ||
load_head: False | ||
path: ~ | ||
fx_model_path: ~ | ||
optimizer_path: ~ | ||
freeze_backbone: False | ||
architecture: | ||
full: ~ # auto | ||
backbone: | ||
name: resnet | ||
params: | ||
block_type: basicblock | ||
norm_type: batch_norm | ||
stage_params: | ||
- | ||
channels: 64 | ||
num_blocks: 2 | ||
- | ||
channels: 128 | ||
num_blocks: 2 | ||
replace_stride_with_dilation: False | ||
- | ||
channels: 256 | ||
num_blocks: 2 | ||
replace_stride_with_dilation: False | ||
- | ||
channels: 512 | ||
num_blocks: 2 | ||
replace_stride_with_dilation: False | ||
head: | ||
name: fc | ||
params: | ||
num_layers: 1 | ||
intermediate_channels: ~ | ||
act_type: ~ | ||
dropout_prob: 0. | ||
losses: | ||
- criterion: cross_entropy | ||
label_smoothing: 0. | ||
weight: ~ |
15 changes: 15 additions & 0 deletions
15
config/benchmark_examples/classification-imagenet1k-resnet18/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,15 @@ | ||
training: | ||
epochs: 90 | ||
mixed_precision: False | ||
ema: ~ | ||
optimizer: | ||
name: sgd | ||
lr: 0.1 | ||
momentum: 0.9 | ||
weight_decay: 0.0001 | ||
nesterov: False | ||
scheduler: | ||
name: step | ||
iters_per_phase: 30 | ||
gamma: 0.1 | ||
end_epoch: 90 |
21 changes: 21 additions & 0 deletions
21
config/benchmark_examples/classification-imagenet1k-resnet34/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,21 @@ | ||
augmentation: | ||
train: | ||
- | ||
name: randomresizedcrop | ||
size: 256 | ||
scale: [0.08, 1.0] | ||
ratio: [0.75, 1.33] | ||
interpolation: bilinear | ||
- | ||
name: randomhorizontalflip | ||
p: 0.5 | ||
inference: | ||
- | ||
name: resize | ||
size: [256, 256] | ||
interpolation: bilinear | ||
max_size: ~ | ||
resize_criteria: ~ | ||
- | ||
name: centercrop | ||
size: 224 |
16 changes: 16 additions & 0 deletions
16
config/benchmark_examples/classification-imagenet1k-resnet34/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,16 @@ | ||
data: | ||
name: IMAGENET1K | ||
task: classification | ||
format: local # local, huggingface | ||
path: | ||
root: ./data/imagenet1k # dataset root | ||
train: | ||
image: images/train # directory for training images | ||
label: labels/imagenet_train.csv # directory for training labels or csv file | ||
valid: | ||
image: images/valid # directory for valid images | ||
label: labels/imagenet_valid.csv # directory for valid labels or csv file | ||
test: | ||
image: ~ | ||
label: ~ | ||
id_mapping: id_mapping.json |
5 changes: 5 additions & 0 deletions
5
config/benchmark_examples/classification-imagenet1k-resnet34/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: 4 | ||
gpus: 0, 1, 2, 3, 4, 5, 6, 7 | ||
batch_size: 32 # Batch size per gpu |
10 changes: 10 additions & 0 deletions
10
config/benchmark_examples/classification-imagenet1k-resnet34/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,10 @@ | ||
logging: | ||
project_id: ~ | ||
output_dir: ./outputs | ||
tensorboard: true | ||
image: true | ||
stdout: true | ||
save_optimizer_state: true | ||
onnx_input_size: [224, 224] | ||
validation_epoch: &validation_epoch 5 | ||
save_checkpoint_epoch: *validation_epoch # Multiplier of `validation_epoch`. |
44 changes: 44 additions & 0 deletions
44
config/benchmark_examples/classification-imagenet1k-resnet34/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,44 @@ | ||
model: | ||
task: classification | ||
name: resnet34 | ||
checkpoint: | ||
use_pretrained: False | ||
load_head: False | ||
path: ~ | ||
fx_model_path: ~ | ||
optimizer_path: ~ | ||
freeze_backbone: False | ||
architecture: | ||
full: ~ # auto | ||
backbone: | ||
name: resnet | ||
params: | ||
block_type: basicblock | ||
norm_type: batch_norm | ||
stage_params: | ||
- | ||
channels: 64 | ||
num_blocks: 3 | ||
- | ||
channels: 128 | ||
num_blocks: 4 | ||
replace_stride_with_dilation: False | ||
- | ||
channels: 256 | ||
num_blocks: 6 | ||
replace_stride_with_dilation: False | ||
- | ||
channels: 512 | ||
num_blocks: 3 | ||
replace_stride_with_dilation: False | ||
head: | ||
name: fc | ||
params: | ||
num_layers: 1 | ||
intermediate_channels: ~ | ||
act_type: ~ | ||
dropout_prob: 0. | ||
losses: | ||
- criterion: cross_entropy | ||
label_smoothing: 0. | ||
weight: ~ |
15 changes: 15 additions & 0 deletions
15
config/benchmark_examples/classification-imagenet1k-resnet34/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,15 @@ | ||
training: | ||
epochs: 90 | ||
mixed_precision: False | ||
ema: ~ | ||
optimizer: | ||
name: sgd | ||
lr: 0.1 | ||
momentum: 0.9 | ||
weight_decay: 0.0001 | ||
nesterov: False | ||
scheduler: | ||
name: step | ||
iters_per_phase: 30 | ||
gamma: 0.1 | ||
end_epoch: 90 |
Oops, something went wrong.