You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
load_from =None# load models as a pre-trained model from a given path. This will not resume training.
228
228
resume_from =None# Resume checkpoints from a given path, the training will be resumed from the iteration when the checkpoint's is saved.
229
-
workflow = [('train', 1)] # Workflow for runner. [('train', 1)] means there is only one workflow and the workflow named 'train' is executed once. The workflow trains the model by 40000 iterations according to the total_iters.
229
+
workflow = [('train', 1)] # Workflow for runner. [('train', 1)] means there is only one workflow and the workflow named 'train' is executed once. The workflow trains the model by 40000 iterations according to the `runner.max_iters`.
230
230
cudnn_benchmark =True# Whether use cudnn_benchmark to speed up, which is fast for fixed input size.
231
231
optimizer =dict( # Config used to build optimizer, support all the optimizers in PyTorch whose arguments are also the same as those in PyTorch
232
232
type='SGD', # Type of optimizers, refer to https://github.com/open-mmlab/mmcv/blob/master/mmcv/runner/optimizer/default_constructor.py#L13 for more details
@@ -239,7 +239,9 @@ lr_config = dict(
239
239
power=0.9, # The power of polynomial decay.
240
240
min_lr=0.0001, # The minimum learning rate to stable the training.
241
241
by_epoch=False) # Whethe count by epoch or not.
242
-
total_iters =40000# Total number of iterations.
242
+
runner =dict(
243
+
type='IterBasedRunner', # Type of runner to use (i.e. IterBasedRunner or EpochBasedRunner)
244
+
max_iters=40000) # Total number of iterations. For EpochBasedRunner use `max_epochs`
243
245
checkpoint_config =dict( # Config to set the checkpoint hook, Refer to https://github.com/open-mmlab/mmcv/blob/master/mmcv/runner/hooks/checkpoint.py for implementation.
0 commit comments