Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed SMP segmentation conditions markup #562

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions segmentation/polus-smp-training-plugin/ict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ ui:
key: inputs.inferenceMode
title: inferenceMode
type: select
- condition: inputs.inferenceMode==active
- condition: inputs.inferenceMode=='active'
description: Collection containing images on which to run inference.
key: inputs.imagesInferenceDir
title: imagesInferenceDir
type: path
- condition: inputs.inferenceMode==active
- condition: inputs.inferenceMode=='active'
description: Filename pattern for images on which to run inference.
key: inputs.inferencePattern
title: inferencePattern
Expand Down Expand Up @@ -347,7 +347,7 @@ ui:
key: inputs.encoderWeights
title: encoderWeights
type: select
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: Name of optimization algorithm to use for training the model. Required
if starting fresh.
fields:
Expand All @@ -365,40 +365,40 @@ ui:
key: inputs.optimizerName
title: optimizerName
type: select
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: Size of each batch for training. If left unspecified, we use the maximum
possible based on memory constraints.
key: inputs.batchSize
title: batchSize
type: number
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: Collection containing images to use for training.
key: inputs.imagesTrainDir
title: imagesTrainDir
type: path
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: Collection containing labels, i.e. the ground-truth, for the training
images.
key: inputs.labelsTrainDir
title: labelsTrainDir
type: path
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: Filename pattern for training images and labels.
key: inputs.trainPattern
title: trainPattern
type: text
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: Collection containing images to use for validation.
key: inputs.imagesValidDir
title: imagesValidDir
type: path
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: Collection containing labels, i.e. the ground-truth, for the validation
images.
key: inputs.labelsValidDir
title: labelsValidDir
type: path
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: Filename pattern for validation images and labels.
key: inputs.validPattern
title: validPattern
Expand All @@ -407,12 +407,12 @@ ui:
key: inputs.device
title: device
type: text
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: How often to save model checkpoints
key: inputs.checkpointFrequency
title: checkpointFrequency
type: number
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
description: Name of loss function to use.
fields:
- JaccardLoss
Expand All @@ -426,19 +426,19 @@ ui:
key: inputs.lossName
title: lossName
type: select
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
default: 100
description: Maximum number of epochs for which to continue training the model.
key: inputs.maxEpochs
title: maxEpochs
type: number
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
default: 10
description: Maximum number of epochs to wait for model to improve.
key: inputs.patience
title: patience
type: number
- condition: inputs.inferenceMode==inactive
- condition: inputs.inferenceMode=='inactive'
default: 0.0001
description: Minimum improvement in loss to reset patience.
key: inputs.minDelta
Expand Down
30 changes: 15 additions & 15 deletions segmentation/polus-smp-training-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,14 @@
"key": "inputs.imagesInferenceDir",
"title": "imagesInferenceDir",
"description": "Collection containing images on which to run inference.",
"condition": "model.inputs.inferenceMode==active"
"condition": "model.inputs.inferenceMode=='active'"
},
{
"key": "inputs.inferencePattern",
"title": "inferencePattern",
"description": "Filename pattern for images on which to run inference.",
"default": ".*",
"condition": "model.inputs.inferenceMode==active"
"condition": "model.inputs.inferenceMode=='active'"
},
{
"key": "inputs.pretrainedModel",
Expand Down Expand Up @@ -413,51 +413,51 @@
"title": "optimizerName",
"description": "Name of optimization algorithm to use for training the model. Required if starting fresh.",
"default": "Adam",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.batchSize",
"title": "batchSize",
"description": "Size of each batch for training. If left unspecified, we use the maximum possible based on memory constraints.",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.imagesTrainDir",
"title": "imagesTrainDir",
"description": "Collection containing images to use for training.",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.labelsTrainDir",
"title": "labelsTrainDir",
"description": "Collection containing labels, i.e. the ground-truth, for the training images.",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.trainPattern",
"title": "trainPattern",
"description": "Filename pattern for training images and labels.",
"default": ".*",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.imagesValidDir",
"title": "imagesValidDir",
"description": "Collection containing images to use for validation.",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.labelsValidDir",
"title": "labelsValidDir",
"description": "Collection containing labels, i.e. the ground-truth, for the validation images.",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.validPattern",
"title": "validPattern",
"description": "Filename pattern for validation images and labels.",
"default": ".*",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.device",
Expand All @@ -469,35 +469,35 @@
"key": "inputs.checkpointFrequency",
"title": "checkpointFrequency",
"description": "How often to save model checkpoints",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.lossName",
"title": "lossName",
"description": "Name of loss function to use.",
"default": "JaccardLoss",
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.maxEpochs",
"title": "maxEpochs",
"description": "Maximum number of epochs for which to continue training the model.",
"default": 100,
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.patience",
"title": "patience",
"description": "Maximum number of epochs to wait for model to improve.",
"default": 10,
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
},
{
"key": "inputs.minDelta",
"title": "minDelta",
"description": "Minimum improvement in loss to reset patience.",
"default": 0.0001,
"condition": "model.inputs.inferenceMode==inactive"
"condition": "model.inputs.inferenceMode=='inactive'"
}
],
"validators": [
Expand Down
Loading