Skip to content

Use the pre-trained global model weights in Prostate Segmentation example #1515

Closed Answered by ZiyueXu77
Tarun-Khilani asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Tarun-Khilani , the "environment.json" is more for changing the default saving path of model persistence to a customized one. For starting from a pre-trained model, you can use "source_ckpt_file_full_name", add it to the persistor specs in config_fed_server.json. For example:

{
"id": "persistor",
"name": "PTFileModelPersistor",
"args": {
"model": {
"path": "monai.networks.nets.segresnet.SegResNet",
"args": {
"blocks_down": [
1,
2,
2,
4
],
"blocks_up": [
1,
1,
1
],
"init_filters": 16,
"in_channels": 4,
"out_channels": 3,
"dropout_prob": 0.2
}
},
"source_ckpt_file_full_name": "/media/Experiment/NVFlare/workspace/init_model/init_global_model.pt"
}
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ZiyueXu77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants