diff --git a/model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb b/model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb index f1dc6f0e5f..08d8746568 100644 --- a/model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb +++ b/model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb @@ -116,17 +116,17 @@ "!python -c \"import cv2\" || pip install -q opencv-python-headless\n", "\n", "# These are the libraries used to read DICOM Seg objects.\n", - "!python -m pip install -q pydicom pydicom-seg\n", - "\n", - "# Install tcia_utils to download the datasets.\n", - "!python -m pip install --upgrade -q --no-deps tcia_utils\n", + "!python -m pip install -q \"pydicom==2.4.4\" pydicom-seg\n", "\n", "# Install the dependency manually to avoid installing opencv-python.\n", - "!python -m pip install -q plotly bs4 ipywidgets unidecode jsonschema\n", + "!python -m pip install -q plotly bs4 unidecode\n", "!python -m pip install -q --no-deps rt-utils\n", "\n", + "# Install tcia_utils to download the datasets.\n", + "!python -m pip install --upgrade -q --no-deps tcia_utils\n", + "\n", "# This is the installation required for itkWidgets.\n", - "!python -m pip install --upgrade --pre -q \"itkwidgets[all]==1.0a23\" imjoy_elfinder" + "!python -m pip install --upgrade -q \"itkwidgets[all]==1.0a53\" imjoy_elfinder" ] }, { @@ -422,61 +422,7 @@ "id": "RF4LqDs-emJR", "tags": [] }, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " \n", - " \n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/javascript": "window.connectPlugin && window.connectPlugin(\"f2c5a353-92e5-49ea-8f0a-4a5232883799\")", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
" - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/plain": [ - "" - ] - }, - "execution_count": 11, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "view(image=mr_image_prep, label_image=seg_image_prep)" ] @@ -553,56 +499,12 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "metadata": { "id": "9bmgCBL9emJS", "tags": [] }, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " \n", - " \n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/javascript": "window.connectPlugin && window.connectPlugin(\"f2c5a353-92e5-49ea-8f0a-4a5232883799\")", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
" - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "# View the image with results overlaid in an interactive 2D slice viewer.\n", "viewer_b = view(image=mr_image_prep, label_image=result_image_resampled)" @@ -626,56 +528,12 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "metadata": { "id": "2wHOPVkWemJS", "tags": [] }, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " \n", - " \n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/javascript": "window.connectPlugin && window.connectPlugin(\"f2c5a353-92e5-49ea-8f0a-4a5232883799\")", - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
" - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "result_array = itk.GetArrayViewFromImage(result_image_resampled)\n", "expert_array = itk.GetArrayViewFromImage(seg_image_prep)\n", @@ -749,9 +607,9 @@ "provenance": [] }, "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "monai", "language": "python", - "name": "python3" + "name": "monai" }, "language_info": { "codemirror_mode": { @@ -767,5 +625,5 @@ } }, "nbformat": 4, - "nbformat_minor": 1 + "nbformat_minor": 4 }