{"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":"# Test Submission","metadata":{}},{"cell_type":"markdown","source":"Install dependencies needed to read dicom images","metadata":{}},{"cell_type":"code","source":"# Online\n# !pip install -qU \"python-gdcm\" pydicom pylibjpeg\n'''Offline (need to add dataset --> for-pydicom)'''\n!pip install -qU ../input/for-pydicom/python_gdcm-3.0.14-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl ../input/for-pydicom/pylibjpeg-1.4.0-py3-none-any.whl --find-links frozen_packages --no-index","metadata":{"execution":{"iopub.status.busy":"2023-01-24T07:45:02.325493Z","iopub.execute_input":"2023-01-24T07:45:02.326263Z","iopub.status.idle":"2023-01-24T07:45:17.210059Z","shell.execute_reply.started":"2023-01-24T07:45:02.326085Z","shell.execute_reply":"2023-01-24T07:45:17.208096Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!cp -r /kaggle/input/efficientnet-keras-dataset/efficientnet_kaggle /tmp/ && pip install -q /tmp/efficientnet_kaggle","metadata":{"execution":{"iopub.status.busy":"2023-01-24T07:45:17.213152Z","iopub.execute_input":"2023-01-24T07:45:17.214667Z","iopub.status.idle":"2023-01-24T07:45:51.298171Z","shell.execute_reply.started":"2023-01-24T07:45:17.214609Z","shell.execute_reply":"2023-01-24T07:45:51.296949Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"Navigate to base directory in order to run the inference script","metadata":{}},{"cell_type":"code","source":"cd ..","metadata":{"execution":{"iopub.status.busy":"2023-01-24T07:45:51.299812Z","iopub.execute_input":"2023-01-24T07:45:51.300243Z","iopub.status.idle":"2023-01-24T07:45:51.31107Z","shell.execute_reply.started":"2023-01-24T07:45:51.300201Z","shell.execute_reply":"2023-01-24T07:45:51.309423Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"ls","metadata":{"execution":{"iopub.status.busy":"2023-01-24T07:45:51.312918Z","iopub.execute_input":"2023-01-24T07:45:51.313517Z","iopub.status.idle":"2023-01-24T07:45:52.428089Z","shell.execute_reply.started":"2023-01-24T07:45:51.313464Z","shell.execute_reply":"2023-01-24T07:45:52.42678Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"ls kaggle/input","metadata":{"execution":{"iopub.status.busy":"2023-01-24T07:45:52.431449Z","iopub.execute_input":"2023-01-24T07:45:52.431884Z","iopub.status.idle":"2023-01-24T07:45:53.522887Z","shell.execute_reply.started":"2023-01-24T07:45:52.431844Z","shell.execute_reply":"2023-01-24T07:45:53.521614Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import os\ncwd = os.getcwd()\nsubfolders = [ f.path for f in os.scandir(cwd) if f.is_dir() ]\nprint('/kaggle' in subfolders)","metadata":{"execution":{"iopub.status.busy":"2023-01-24T07:45:53.525377Z","iopub.execute_input":"2023-01-24T07:45:53.525919Z","iopub.status.idle":"2023-01-24T07:45:53.534674Z","shell.execute_reply.started":"2023-01-24T07:45:53.525863Z","shell.execute_reply":"2023-01-24T07:45:53.533419Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!python /kaggle/input/kaggle-rsna-screening-mammography-code/src/predict_model.py --config /kaggle/input/rsnamodel/results/config.yaml --model /kaggle/input/rsnamodel/results/models/flowing_yogurt_98 --kaggle","metadata":{"execution":{"iopub.status.busy":"2023-01-24T07:45:53.536628Z","iopub.execute_input":"2023-01-24T07:45:53.537017Z","iopub.status.idle":"2023-01-24T07:46:48.988639Z","shell.execute_reply.started":"2023-01-24T07:45:53.536974Z","shell.execute_reply":"2023-01-24T07:46:48.987022Z"},"trusted":true},"execution_count":null,"outputs":[]}]}