|
{ |
|
"network_def": { |
|
"_target_": "HoVerNet", |
|
"mode": "@hovernet_mode", |
|
"adapt_standard_resnet": true, |
|
"in_channels": 3, |
|
"out_classes": 5 |
|
}, |
|
"validate#handlers": [ |
|
{ |
|
"_target_": "CheckpointLoader", |
|
"load_path": "$os.path.join(@bundle_root, 'models', 'model.pt')", |
|
"load_dict": { |
|
"model": "@network" |
|
} |
|
}, |
|
{ |
|
"_target_": "StatsHandler", |
|
"iteration_log": false |
|
}, |
|
{ |
|
"_target_": "MetricsSaver", |
|
"save_dir": "@output_dir", |
|
"metrics": [ |
|
"val_mean_dice" |
|
], |
|
"metric_details": [ |
|
"val_mean_dice" |
|
], |
|
"batch_transform": "$monai.handlers.from_engine(['image_meta_dict'])", |
|
"summary_ops": "*" |
|
} |
|
], |
|
"evaluating": [ |
|
"$setattr(torch.backends.cudnn, 'benchmark', True)", |
|
"$@validate#evaluator.run()" |
|
] |
|
} |
|
|