eval_from_folders
The segmentation neural network evaluation from folders logic.
kelp.nn.training.eval_from_folders.EvaluateFromFoldersConfig
Bases: ConfigBase
A config for evaluating from folders.
Source code in kelp/nn/training/eval_from_folders.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
kelp.nn.training.eval_from_folders.eval_from_folders
Runs model evaluation using specified ground truth and predictions directories.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gt_dir |
Path
|
The ground truth directory. |
required |
preds_dir |
Path
|
The predictions' directory. |
required |
metrics |
Optional[MetricCollection]
|
The metrics to use to evaluate the quality of predictions. |
None
|
prefix |
Optional[str]
|
The prefix to use for logged metrics. |
'test'
|
Source code in kelp/nn/training/eval_from_folders.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
|
kelp.nn.training.eval_from_folders.main
Main entrypoint for model evaluation from folders.
Source code in kelp/nn/training/eval_from_folders.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
kelp.nn.training.eval_from_folders.parse_args
Parse command line arguments.
Returns: An instance of EvaluateFromFoldersConfig.
Source code in kelp/nn/training/eval_from_folders.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|