{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"### Internet of this notebook should be enabled so that packages can be downloaded","metadata":{}},{"cell_type":"code","source":"# download segmentation models with dependencies.\n!pip install segmentation-models-pytorch --no-deps --target=/kaggle/working/mypackages\n!pip install pretrainedmodels --no-deps --target=/kaggle/working/mypackages\n!pip install efficientnet_pytorch --no-deps --target=/kaggle/working/mypackages\n!pip install dicomsdl --no-deps --target=/kaggle/working/mypackages","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-09-21T18:41:28.589385Z","iopub.execute_input":"2023-09-21T18:41:28.590125Z","iopub.status.idle":"2023-09-21T18:41:42.013763Z","shell.execute_reply.started":"2023-09-21T18:41:28.590088Z","shell.execute_reply":"2023-09-21T18:41:42.012404Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!du -sh /kaggle/working/mypackages/*","metadata":{"execution":{"iopub.status.busy":"2023-09-21T18:41:42.017052Z","iopub.execute_input":"2023-09-21T18:41:42.017396Z","iopub.status.idle":"2023-09-21T18:41:43.047176Z","shell.execute_reply.started":"2023-09-21T18:41:42.017367Z","shell.execute_reply":"2023-09-21T18:41:43.045772Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#!rm -rf /kaggle/working/*","metadata":{"execution":{"iopub.status.busy":"2023-09-21T18:41:43.048865Z","iopub.execute_input":"2023-09-21T18:41:43.049234Z","iopub.status.idle":"2023-09-21T18:41:43.053834Z","shell.execute_reply.started":"2023-09-21T18:41:43.049203Z","shell.execute_reply":"2023-09-21T18:41:43.052918Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import sys\nsys.path.append(\"/kaggle/working/mypackages\")","metadata":{"execution":{"iopub.status.busy":"2023-09-21T18:41:43.055483Z","iopub.execute_input":"2023-09-21T18:41:43.055801Z","iopub.status.idle":"2023-09-21T18:41:43.064135Z","shell.execute_reply.started":"2023-09-21T18:41:43.055767Z","shell.execute_reply":"2023-09-21T18:41:43.063131Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import segmentation_models_pytorch as smp\nimport dicomsdl","metadata":{"execution":{"iopub.status.busy":"2023-09-21T18:42:57.316893Z","iopub.execute_input":"2023-09-21T18:42:57.317648Z","iopub.status.idle":"2023-09-21T18:42:57.322280Z","shell.execute_reply.started":"2023-09-21T18:42:57.317613Z","shell.execute_reply":"2023-09-21T18:42:57.321267Z"},"trusted":true},"execution_count":null,"outputs":[]}]}