-
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.
Merge branch 'main' into feature/embeddings-models
- Loading branch information
Showing
42 changed files
with
2,356 additions
and
318 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Example configuration for training a predefined heavy instance segmentation model | ||
|
||
model: | ||
name: instance_segmentation_heavy | ||
predefined_model: | ||
name: InstanceSegmentationModel | ||
params: | ||
variant: heavy | ||
loss_params: | ||
bbox_loss_weight: 60 # Should be 7.5 * accumulate_grad_batches for best results | ||
class_loss_weight: 4 # Should be 0.5 * accumulate_grad_batches for best results | ||
dfl_loss_weight: 12 # Should be 1.5 * accumulate_grad_batches for best results | ||
|
||
loader: | ||
params: | ||
dataset_name: coco_test | ||
|
||
trainer: | ||
preprocessing: | ||
train_image_size: [384, 512] | ||
keep_aspect_ratio: true | ||
normalize: | ||
active: true | ||
params: | ||
mean: [0., 0., 0.] | ||
std: [1, 1, 1] | ||
|
||
batch_size: 8 | ||
epochs: &epochs 300 | ||
accumulate_grad_batches: 8 # For best results, always accumulate gradients to effectively use 64 batch size | ||
n_workers: 8 | ||
validation_interval: 10 | ||
n_log_images: 8 | ||
|
||
callbacks: | ||
- name: EMACallback | ||
params: | ||
decay: 0.9999 | ||
use_dynamic_decay: True | ||
decay_tau: 2000 | ||
- name: ExportOnTrainEnd | ||
- name: TestOnTrainEnd | ||
|
||
training_strategy: | ||
name: "TripleLRSGDStrategy" | ||
params: | ||
warmup_epochs: 3 | ||
warmup_bias_lr: 0.1 | ||
warmup_momentum: 0.8 | ||
lr: 0.01 | ||
lre: 0.0001 | ||
momentum: 0.937 | ||
weight_decay: 0.0005 | ||
nesterov: True |
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,54 @@ | ||
# Example configuration for training a predefined light instance segmentation model | ||
|
||
model: | ||
name: instance_segmentation_light | ||
predefined_model: | ||
name: InstanceSegmentationModel | ||
params: | ||
variant: light | ||
loss_params: | ||
bbox_loss_weight: 60 # Should be 7.5 * accumulate_grad_batches for best results | ||
class_loss_weight: 4 # Should be 0.5 * accumulate_grad_batches for best results | ||
dfl_loss_weight: 12 # Should be 1.5 * accumulate_grad_batches for best results | ||
|
||
loader: | ||
params: | ||
dataset_name: coco_test | ||
|
||
trainer: | ||
preprocessing: | ||
train_image_size: [384, 512] | ||
keep_aspect_ratio: true | ||
normalize: | ||
active: true | ||
params: | ||
mean: [0., 0., 0.] | ||
std: [1, 1, 1] | ||
|
||
batch_size: 8 | ||
epochs: &epochs 300 | ||
accumulate_grad_batches: 8 # For best results, always accumulate gradients to effectively use 64 batch size | ||
n_workers: 8 | ||
validation_interval: 10 | ||
n_log_images: 8 | ||
|
||
callbacks: | ||
- name: EMACallback | ||
params: | ||
decay: 0.9999 | ||
use_dynamic_decay: True | ||
decay_tau: 2000 | ||
- name: ExportOnTrainEnd | ||
- name: TestOnTrainEnd | ||
|
||
training_strategy: | ||
name: "TripleLRSGDStrategy" | ||
params: | ||
warmup_epochs: 3 | ||
warmup_bias_lr: 0.1 | ||
warmup_momentum: 0.8 | ||
lr: 0.01 | ||
lre: 0.0001 | ||
momentum: 0.937 | ||
weight_decay: 0.0005 | ||
nesterov: True |
Oops, something went wrong.