{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.11.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"nvidiaTeslaT4","dataSources":[{"sourceId":99552,"databundleVersionId":13851420,"isSourceIdPinned":false,"sourceType":"competition"},{"sourceId":12974092,"sourceType":"datasetVersion","datasetId":8091323},{"sourceId":13267539,"sourceType":"datasetVersion","datasetId":8407675},{"sourceId":13267672,"sourceType":"datasetVersion","datasetId":8407765},{"sourceId":13267764,"sourceType":"datasetVersion","datasetId":8407830},{"sourceId":13268490,"sourceType":"datasetVersion","datasetId":8408329},{"sourceId":13268619,"sourceType":"datasetVersion","datasetId":8211597},{"sourceId":13307077,"sourceType":"datasetVersion","datasetId":8211582},{"sourceId":13307086,"sourceType":"datasetVersion","datasetId":8211598},{"sourceId":13327553,"sourceType":"datasetVersion","datasetId":8449523},{"sourceId":13327619,"sourceType":"datasetVersion","datasetId":8211584},{"sourceId":260238394,"sourceType":"kernelVersion"}],"dockerImageVersionId":31090,"isInternetEnabled":false,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"## pip package","metadata":{}},{"cell_type":"code","source":"%%capture\n!uv pip install --system --no-index --find-links=/kaggle/input/rsna2025-packages/pip-packages -r /kaggle/input/rsna2025-pip-packages/requirements.txt --no-build-isolation \n!uv pip install --system --no-index --find-links=/kaggle/input/rsna2025-packages/pip-packages --force-reinstall numpy==1.26.4","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-10-09T04:10:28.04818Z","iopub.execute_input":"2025-10-09T04:10:28.048452Z","iopub.status.idle":"2025-10-09T04:11:04.727663Z","shell.execute_reply.started":"2025-10-09T04:10:28.048422Z","shell.execute_reply":"2025-10-09T04:11:04.726843Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"%%capture\n!cp -r /kaggle/input/rsna2025-nnunet /kaggle/working/\n!rm -r /kaggle/working/rsna2025-nnunet/nnunetv2.egg-info;\n!cd /kaggle/working/rsna2025-nnunet; uv pip install --system . --no-build-isolation --no-index","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-10-09T04:11:04.728674Z","iopub.execute_input":"2025-10-09T04:11:04.728998Z","iopub.status.idle":"2025-10-09T04:11:08.872487Z","shell.execute_reply.started":"2025-10-09T04:11:04.728965Z","shell.execute_reply":"2025-10-09T04:11:08.871494Z"}},"outputs":[],"execution_count":null},{"cell_type":"markdown","source":"## apt package","metadata":{}},{"cell_type":"code","source":"%%capture\n!dpkg -i /kaggle/input/rsna2025-packages/libyaml-cpp0.7_0.7.0+dfsg-8build1_amd64.deb\n!dpkg -i /kaggle/input/rsna2025-packages/dcm2niix_1.0.20211006-1build1_amd64.deb\n!dpkg -i /kaggle/input/rsna2025-packages/libgdcm-tools_3.0.10-1build2_amd64.deb","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-10-09T04:11:08.87448Z","iopub.execute_input":"2025-10-09T04:11:08.874737Z","iopub.status.idle":"2025-10-09T04:11:18.943142Z","shell.execute_reply.started":"2025-10-09T04:11:08.874712Z","shell.execute_reply":"2025-10-09T04:11:18.942092Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"!cp -r /kaggle/input/rsna2025-src /kaggle/working; mv /kaggle/working/rsna2025-src /kaggle/working/src\n!cp -r /kaggle/input/rsna2025-scripts /kaggle/working; mv /kaggle/working/rsna2025-scripts /kaggle/working/scripts\n!ln -s /kaggle/input/rsna2025-configs /kaggle/working/configs\n\n# for rootutils\n!touch /kaggle/working/.project-root","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-10-09T04:11:18.944385Z","iopub.execute_input":"2025-10-09T04:11:18.944677Z","iopub.status.idle":"2025-10-09T04:11:20.141341Z","shell.execute_reply.started":"2025-10-09T04:11:18.944643Z","shell.execute_reply":"2025-10-09T04:11:20.140362Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"# rootutils設定\nimport rootutils\nimport os\nfrom pathlib import Path\n\nrootutils.setup_root(Path().resolve(), indicator=\".project-root\", pythonpath=True)\n\nroot = os.environ[\"PROJECT_ROOT\"]\nos.chdir(root)\n","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-10-09T04:11:20.142541Z","iopub.execute_input":"2025-10-09T04:11:20.142808Z","iopub.status.idle":"2025-10-09T04:11:20.164907Z","shell.execute_reply.started":"2025-10-09T04:11:20.142783Z","shell.execute_reply":"2025-10-09T04:11:20.164345Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"!python scripts/convert_nnunet_to_onnx_trt.py --model-dir /kaggle/input/nnunet-vessel-grouping-da7  --fold all --checkpoint-name checkpoint_final.pth --out-dir /kaggle/working/trt --fp16\n!python scripts/convert_nnunet_to_onnx_trt.py --model-dir /kaggle/input/nnunet-da3-sklr-with-all  --fold 0 --checkpoint-name checkpoint_final.pth --out-dir /kaggle/working/trt --fp16\n!python scripts/convert_nnunet_to_onnx_trt.py --model-dir /kaggle/input/nnunet-da3-sklr-with-all  --fold 1 --checkpoint-name checkpoint_final.pth --out-dir /kaggle/working/trt --fp16\n!python scripts/convert_nnunet_to_onnx_trt.py --model-dir /kaggle/input/nnunet-da3-sklr-with-all  --fold all --checkpoint-name checkpoint_final.pth --out-dir /kaggle/working/trt --fp16\n!python scripts/convert_nnunet_to_onnx_trt.py --model-dir /kaggle/input/nnunet-da3-sklr-ep800  --fold all --checkpoint-name checkpoint_final.pth --out-dir /kaggle/working/trt --fp16\n!python scripts/convert_nnunet_to_onnx_trt.py --model-dir /kaggle/input/nnunet-da6-sklr-w3-tv07  --fold all --checkpoint-name checkpoint_final.pth --out-dir /kaggle/working/trt --fp16\n!python scripts/convert_nnunet_to_onnx_trt.py --model-dir /kaggle/input/nnunet-da6-1-sklr-tv07  --fold all --checkpoint-name checkpoint_final.pth --out-dir /kaggle/working/trt --fp16","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-10-09T04:11:20.165751Z","iopub.execute_input":"2025-10-09T04:11:20.165986Z","iopub.status.idle":"2025-10-09T04:20:57.649892Z","shell.execute_reply.started":"2025-10-09T04:11:20.16596Z","shell.execute_reply":"2025-10-09T04:20:57.649117Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"","metadata":{"trusted":true},"outputs":[],"execution_count":null}]}