Skip to content

Commit

Permalink
Merge cddf51f into f76069e
Browse files Browse the repository at this point in the history
  • Loading branch information
jcohenadad committed Jan 28, 2023
2 parents f76069e + cddf51f commit b847bdd
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 47 deletions.
87 changes: 44 additions & 43 deletions docs/source/configuration_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,50 @@ Split Dataset
For example: ``1 - 0.6 - 0.2 = 0.2``.


Cascaded Models
---------------

.. jsonschema::

{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "object_detection_params",
"type": "dict",
"required": "false",
"options": {
"object_detection_path": {
"type": "string",
"$$description": [
"Path to the object detection model. The folder,\n",
"configuration file, and model need to have the same name\n",
"(e.g. ``findcord_tumor/``, ``findcord_tumor/findcord_tumor.json``, and\n",
"``findcord_tumor/findcord_tumor.onnx``, respectively). The model's prediction\n",
"will be used to generate bounding boxes. Default: ``null``."
]
},
"safety_factor": {
"type": "[int, int, int]",
"$$description": [
"List of length 3 containing the factors to multiply each dimension of the\n",
"bounding box. Ex: If the original bounding box has a size of 10x20x30 with\n",
"a safety factor of [1.5, 1.5, 1.5], the final dimensions of the bounding box\n",
"will be 15x30x45 with an unchanged center. Default: ``[1.0, 1.0, 1.0]``."
]
}
}
}

.. code-block:: JSON
{
"object_detection_params": {
"object_detection_path": null,
"safety_factor": [1.0, 1.0, 1.0]
}
}
Training Parameters
-------------------

Expand Down Expand Up @@ -1429,49 +1473,6 @@ being used for the segmentation task).
}
Cascaded Architecture Features
------------------------------

.. jsonschema::

{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "object_detection_params",
"type": "dict",
"required": "false",
"options": {
"object_detection_path": {
"type": "string",
"$$description": [
"Path to object detection model and the configuration file. The folder,\n",
"configuration file, and model need to have the same name\n",
"(e.g. ``findcord_tumor/``, ``findcord_tumor/findcord_tumor.json``, and\n",
"``findcord_tumor/findcord_tumor.onnx``, respectively). The model's prediction\n",
"will be used to generate bounding boxes. Default: ``null``."
]
},
"safety_factor": {
"type": "[int, int, int]",
"$$description": [
"List of length 3 containing the factors to multiply each dimension of the\n",
"bounding box. Ex: If the original bounding box has a size of 10x20x30 with\n",
"a safety factor of [1.5, 1.5, 1.5], the final dimensions of the bounding box\n",
"will be 15x30x45 with an unchanged center. Default: ``[1.0, 1.0, 1.0]``."
]
}
}
}

.. code-block:: JSON
{
"object_detection_params": {
"object_detection_path": null,
"safety_factor": [1.0, 1.0, 1.0]
}
}
Transformations
---------------

Expand Down
8 changes: 4 additions & 4 deletions ivadomed/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
"path_output": "spineGeneric",
"model_name": "my_model",
"debugging": false,
"object_detection_params": {
"object_detection_path": null,
"safety_factor": [1.0, 1.0, 1.0]
},
"wandb": {
"wandb_api_key": "",
"project_name": "my_project",
Expand Down Expand Up @@ -47,6 +43,10 @@
"train_fraction": 0.6,
"test_fraction": 0.2
},
"object_detection_params": {
"object_detection_path": null,
"safety_factor": [1.0, 1.0, 1.0]
},
"training_parameters": {
"batch_size": 32,
"loss": {
Expand Down

0 comments on commit b847bdd

Please sign in to comment.