{"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":"!pip download pylibjpeg pylibjpeg-openjpeg pylibjpeg-libjpeg pydicom python-gdcm","metadata":{"execution":{"iopub.status.busy":"2023-01-29T04:47:32.735048Z","iopub.execute_input":"2023-01-29T04:47:32.735651Z","iopub.status.idle":"2023-01-29T04:47:39.296642Z","shell.execute_reply.started":"2023-01-29T04:47:32.735542Z","shell.execute_reply":"2023-01-29T04:47:39.294962Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import joblib","metadata":{"execution":{"iopub.status.busy":"2023-01-30T15:07:45.590933Z","iopub.execute_input":"2023-01-30T15:07:45.591732Z","iopub.status.idle":"2023-01-30T15:07:45.675879Z","shell.execute_reply.started":"2023-01-30T15:07:45.59163Z","shell.execute_reply":"2023-01-30T15:07:45.674951Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip download efficientnet_pyt","metadata":{"execution":{"iopub.status.busy":"2023-01-29T04:47:39.299084Z","iopub.execute_input":"2023-01-29T04:47:39.299438Z","iopub.status.idle":"2023-01-29T04:47:41.632688Z","shell.execute_reply.started":"2023-01-29T04:47:39.299406Z","shell.execute_reply":"2023-01-29T04:47:41.631428Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip download hydra-core","metadata":{"execution":{"iopub.status.busy":"2023-01-29T04:47:41.634281Z","iopub.execute_input":"2023-01-29T04:47:41.635231Z","iopub.status.idle":"2023-01-29T04:47:46.373095Z","shell.execute_reply.started":"2023-01-29T04:47:41.635188Z","shell.execute_reply":"2023-01-29T04:47:46.371169Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip download dicomsdl","metadata":{"execution":{"iopub.status.busy":"2023-01-29T04:42:58.43831Z","iopub.execute_input":"2023-01-29T04:42:58.43872Z","iopub.status.idle":"2023-01-29T04:43:00.958507Z","shell.execute_reply.started":"2023-01-29T04:42:58.438684Z","shell.execute_reply":"2023-01-29T04:43:00.957273Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip download timm","metadata":{"execution":{"iopub.status.busy":"2023-02-05T08:07:49.567165Z","iopub.execute_input":"2023-02-05T08:07:49.567575Z","iopub.status.idle":"2023-02-05T08:08:40.732239Z","shell.execute_reply.started":"2023-02-05T08:07:49.567538Z","shell.execute_reply":"2023-02-05T08:08:40.730865Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# to prevent uncompress the tar file\n# Kaggle uncompress the tarballs, but pip command cannot use the uncompressed files.\n#\nimport pathlib\nimport subprocess\n\nfor fname in pathlib.Path(\"./\").glob(\"*\"):\n    if str(fname).endswith((\".tar.gz\", \".zip\")):\n        print(fname)\n        subprocess.run([\"mv\", str(fname), f\"{str(fname)}.tmp\"])","metadata":{"execution":{"iopub.status.busy":"2023-01-29T04:49:00.577742Z","iopub.execute_input":"2023-01-29T04:49:00.578253Z","iopub.status.idle":"2023-01-29T04:49:00.619143Z","shell.execute_reply.started":"2023-01-29T04:49:00.578212Z","shell.execute_reply":"2023-01-29T04:49:00.617215Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# model append","metadata":{}},{"cell_type":"code","source":"# model_path=\"https://download.pytorch.org/models/resnet50-0676ba61.pth\"\n# !wget $model_path","metadata":{"execution":{"iopub.status.busy":"2023-01-29T04:41:17.666964Z","iopub.execute_input":"2023-01-29T04:41:17.667357Z","iopub.status.idle":"2023-01-29T04:41:29.669957Z","shell.execute_reply.started":"2023-01-29T04:41:17.66732Z","shell.execute_reply":"2023-01-29T04:41:29.668955Z"},"trusted":true},"execution_count":null,"outputs":[]}]}