-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added ResNet variants * ResNet50 example * Simplified example * fixed resnet config * [Automated] Updated coverage badge --------- Co-authored-by: Martin Kozlovsky <[email protected]> Co-authored-by: GitHub Actions <[email protected]>
- Loading branch information
1 parent
2e82131
commit afade1f
Showing
5 changed files
with
91 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
model: | ||
name: resnet50_classification | ||
nodes: | ||
- name: ResNet | ||
variant: "50" | ||
download_weights: True | ||
|
||
- name: ClassificationHead | ||
inputs: | ||
- ResNet | ||
|
||
losses: | ||
- name: CrossEntropyLoss | ||
attached_to: ClassificationHead | ||
|
||
metrics: | ||
- name: Accuracy | ||
is_main_metric: true | ||
attached_to: ClassificationHead | ||
|
||
visualizers: | ||
- name: ClassificationVisualizer | ||
attached_to: ClassificationHead | ||
params: | ||
font_scale: 0.5 | ||
color: [255, 0, 0] | ||
thickness: 2 | ||
include_plot: True | ||
|
||
dataset: | ||
name: cifar10_test | ||
|
||
trainer: | ||
batch_size: 4 | ||
epochs: &epochs 200 | ||
num_workers: 4 | ||
validation_interval: 10 | ||
num_log_images: 8 | ||
|
||
preprocessing: | ||
train_image_size: [&height 224, &width 224] | ||
keep_aspect_ratio: False | ||
normalize: | ||
active: True | ||
|
||
callbacks: | ||
- name: ExportOnTrainEnd | ||
- name: TestOnTrainEnd | ||
|
||
optimizer: | ||
name: SGD | ||
params: | ||
lr: 0.02 | ||
|
||
scheduler: | ||
name: ConstantLR |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.