diff --git a/prostate-mri-lesion-seg/LICENSE b/prostate-mri-lesion-seg/LICENSE index 84b42190..52ecad51 100644 --- a/prostate-mri-lesion-seg/LICENSE +++ b/prostate-mri-lesion-seg/LICENSE @@ -1,54 +1,54 @@ -Prostate-MRI_Lesion_Detection, v2.0 (Release date: August 2, 2023) -• DEFINITIONS: AUTHOR(S) NVIDIA Corp. and National Cancer Institute, NIH - -• PROVIDER: the National Cancer Institute (NCI), a participating institute of the -National Institutes of Health (NIH), and an agency of the United States Government. - -• SOFTWARE: the machine readable, binary, object code form, -and the related documentation for the modules of the Prostate-MRI_Lesion_Detection, v2.0 -software package, which is a collection of operators which accept (T2, ADC, and High -b-value DICOM images) and produce prostate organ and lesion segmentation files - -• RECIPIENT: the party that downloads the software. - -By downloading or otherwise receiving the SOFTWARE, RECIPIENT may -use and/or redistribute the SOFTWARE, with or without modification, -subject to RECIPIENT’s agreement to the following terms: - -1. THE SOFTWARE SHALL NOT BE USED IN THE TREATMENT OR DIAGNOSIS -OF HUMAN SUBJECTS. RECIPIENT is responsible for -compliance with all laws and regulations applicable to the use -of the SOFTWARE. - -2. THE SOFTWARE is distributed for NON-COMMERCIAL RESEARCH PURPOSES ONLY. RECIPIENT is -responsible for appropriate-use compliance. - -3. RECIPIENT agrees to acknowledge PROVIDER’s contribution and -the name of the author of the SOFTWARE in all written publications -containing any data or information regarding or resulting from use -of the SOFTWARE. - -4. THE SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT -ARE DISCLAIMED. IN NO EVENT SHALL THE PROVIDER OR THE INDIVIDUAL DEVELOPERS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGE. - -5. RECIPIENT agrees not to use any trademarks, service marks, trade names, -logos or product names of NVIDIA, NCI or NIH to endorse or promote products derived -from the SOFTWARE without specific, prior and written permission. - -6. For sake of clarity, and not by way of limitation, RECIPIENT may add its -own copyright statement to its modifications or derivative works of the SOFTWARE -and may provide additional or different license terms and conditions in its -sublicenses of modifications or derivative works of the SOFTWARE provided that -RECIPIENT’s use, reproduction, and distribution of the SOFTWARE otherwise complies -with the conditions stated in this Agreement. Whenever Recipient distributes or -redistributes the SOFTWARE, a copy of this Agreement must be included with -each copy of the SOFTWARE. +Prostate-MRI_Lesion_Detection, v2.0 (Release date: August 2, 2023) +• DEFINITIONS: AUTHOR(S) NVIDIA Corp. and National Cancer Institute, NIH + +• PROVIDER: the National Cancer Institute (NCI), a participating institute of the +National Institutes of Health (NIH), and an agency of the United States Government. + +• SOFTWARE: the machine readable, binary, object code form, +and the related documentation for the modules of the Prostate-MRI_Lesion_Detection, v2.0 +software package, which is a collection of operators which accept (T2, ADC, and High +b-value DICOM images) and produce prostate organ and lesion segmentation files + +• RECIPIENT: the party that downloads the software. + +By downloading or otherwise receiving the SOFTWARE, RECIPIENT may +use and/or redistribute the SOFTWARE, with or without modification, +subject to RECIPIENT’s agreement to the following terms: + +1. THE SOFTWARE SHALL NOT BE USED IN THE TREATMENT OR DIAGNOSIS +OF HUMAN SUBJECTS. RECIPIENT is responsible for +compliance with all laws and regulations applicable to the use +of the SOFTWARE. + +2. THE SOFTWARE is distributed for NON-COMMERCIAL RESEARCH PURPOSES ONLY. RECIPIENT is +responsible for appropriate-use compliance. + +3. RECIPIENT agrees to acknowledge PROVIDER’s contribution and +the name of the author of the SOFTWARE in all written publications +containing any data or information regarding or resulting from use +of the SOFTWARE. + +4. THE SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +ARE DISCLAIMED. IN NO EVENT SHALL THE PROVIDER OR THE INDIVIDUAL DEVELOPERS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGE. + +5. RECIPIENT agrees not to use any trademarks, service marks, trade names, +logos or product names of NVIDIA, NCI or NIH to endorse or promote products derived +from the SOFTWARE without specific, prior and written permission. + +6. For sake of clarity, and not by way of limitation, RECIPIENT may add its +own copyright statement to its modifications or derivative works of the SOFTWARE +and may provide additional or different license terms and conditions in its +sublicenses of modifications or derivative works of the SOFTWARE provided that +RECIPIENT’s use, reproduction, and distribution of the SOFTWARE otherwise complies +with the conditions stated in this Agreement. Whenever Recipient distributes or +redistributes the SOFTWARE, a copy of this Agreement must be included with +each copy of the SOFTWARE. diff --git a/prostate-mri-lesion-seg/prostate_mri_lesion_seg_app/custom_lesion_seg_operator.py b/prostate-mri-lesion-seg/prostate_mri_lesion_seg_app/custom_lesion_seg_operator.py index a3fa57be..8b9c3b60 100644 --- a/prostate-mri-lesion-seg/prostate_mri_lesion_seg_app/custom_lesion_seg_operator.py +++ b/prostate-mri-lesion-seg/prostate_mri_lesion_seg_app/custom_lesion_seg_operator.py @@ -231,7 +231,6 @@ class CustomProstateLesionSegOperator(Operator): """Performs Prostate Lesion segmentation with a 3D image converted from a mp-DICOM MRI series.""" def __init__(self, model_name: Optional[str] = "", model_path: Optional[str] = ""): - self.logger = logging.getLogger("{}.{}".format(__name__, type(self).__name__)) super().__init__() @@ -346,9 +345,7 @@ def compute(self, op_input: InputContext, op_output: OutputContext, context: Exe # Convert to Image and transpose back to DHW lesion_mask = self.merge_volumes(output_path=output_path, data=data, tags=tags) - lesion_mask = Image( - data=lesion_mask.T, metadata=image1.metadata() - ) + lesion_mask = Image(data=lesion_mask.T, metadata=image1.metadata()) op_output.set(lesion_mask, "seg_image")