{"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":"code","source":"!mkdir -p /root/.cache/torch/hub/checkpoints\n!cp -r ../input/landmark-additional-packages/rwightman_gen-efficientnet-pytorch_master/rwightman_gen-efficientnet-pytorch_master /root/.cache/torch/hub\n!cp ../input/landmark-additional-packages/tf_efficientnet_b3_aa-84b4657e.pth /root/.cache/torch/hub/checkpoints/\n!cp ../input/landmark-additional-packages/tf_efficientnet_b5_ra-9a3e5369.pth /root/.cache/torch/hub/checkpoints/\n!cp ../input/landmark-additional-packages/se_resnext50_32x4d-a260b3a4.pth /root/.cache/torch/hub/checkpoints/\n!cp ../input/landmark-additional-packages/resnet50d_ra2-464e36ba.pth /root/.cache/torch/hub/checkpoints/","metadata":{"execution":{"iopub.status.busy":"2021-10-11T14:26:36.653817Z","iopub.execute_input":"2021-10-11T14:26:36.654118Z","iopub.status.idle":"2021-10-11T14:26:46.791705Z","shell.execute_reply.started":"2021-10-11T14:26:36.654042Z","shell.execute_reply":"2021-10-11T14:26:46.790628Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install -q ../input/landmark-additional-packages/timm-0.3.4-py3-none-any.whl\n!pip install -q ../input/landmark-additional-packages/geffnet-1.0.0-py3-none-any.whl\n!pip install -q ../input/landmark-additional-packages/EfficientNet-PyTorch/EfficientNet-PyTorch-master\n!pip install -q ../input/landmark-additional-packages/pycocotools-2.0.2/dist/pycocotools-2.0.2.tar\n!pip install -q ../input/landmark-additional-packages/pretrainedmodels-0.7.4/pretrainedmodels-0.7.4","metadata":{"execution":{"iopub.status.busy":"2021-10-11T14:27:24.922036Z","iopub.execute_input":"2021-10-11T14:27:24.922369Z","iopub.status.idle":"2021-10-11T14:29:45.795236Z","shell.execute_reply.started":"2021-10-11T14:27:24.922336Z","shell.execute_reply":"2021-10-11T14:29:45.794166Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install \"/kaggle/input/hpamisc/pytorch_zoo-master\"\n!pip install \"/kaggle/input/hpamisc/pycocotools-2.0-cp37-cp37m-linux_x86_64.whl\"\n!pip install \"/kaggle/input/hpamisc/faiss_gpu-1.7.0-cp37-cp37m-manylinux2014_x86_64.whl\"","metadata":{"execution":{"iopub.status.busy":"2021-10-11T14:29:53.287784Z","iopub.execute_input":"2021-10-11T14:29:53.288144Z","iopub.status.idle":"2021-10-11T14:31:17.008911Z","shell.execute_reply.started":"2021-10-11T14:29:53.288095Z","shell.execute_reply":"2021-10-11T14:31:17.007945Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!ls ","metadata":{"execution":{"iopub.status.busy":"2021-10-11T14:31:17.012058Z","iopub.execute_input":"2021-10-11T14:31:17.012478Z","iopub.status.idle":"2021-10-11T14:31:17.701917Z","shell.execute_reply.started":"2021-10-11T14:31:17.012439Z","shell.execute_reply":"2021-10-11T14:31:17.701019Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"with open('../input/hpa-maozi-optimization-o1/maozi.py') as fp:\n    mz = fp.read()","metadata":{"execution":{"iopub.status.busy":"2021-10-11T14:31:17.704002Z","iopub.execute_input":"2021-10-11T14:31:17.704363Z","iopub.status.idle":"2021-10-11T14:31:17.718342Z","shell.execute_reply.started":"2021-10-11T14:31:17.704323Z","shell.execute_reply":"2021-10-11T14:31:17.717606Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"mz = mz.replace(\n    \"directory = '/kaggle/input/hpa-single-cell-image-classification'\",\n    \"directory = '../input/cam-input-processing/'\")","metadata":{"execution":{"iopub.status.busy":"2021-10-11T14:31:17.719896Z","iopub.execute_input":"2021-10-11T14:31:17.720278Z","iopub.status.idle":"2021-10-11T14:31:17.726701Z","shell.execute_reply.started":"2021-10-11T14:31:17.720241Z","shell.execute_reply":"2021-10-11T14:31:17.725927Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"with open('maoziv2.py', 'w') as fp:\n    fp.write(mz)","metadata":{"execution":{"iopub.status.busy":"2021-10-11T14:31:17.727795Z","iopub.execute_input":"2021-10-11T14:31:17.72806Z","iopub.status.idle":"2021-10-11T14:31:17.735832Z","shell.execute_reply.started":"2021-10-11T14:31:17.728036Z","shell.execute_reply":"2021-10-11T14:31:17.73505Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"! python maoziv2.py","metadata":{"execution":{"iopub.status.busy":"2021-10-11T14:31:17.739145Z","iopub.execute_input":"2021-10-11T14:31:17.739519Z"},"trusted":true},"execution_count":null,"outputs":[]}]}