{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"gpu","dataSources":[{"sourceType":"competition","sourceId":22990,"datasetId":1136396,"databundleVersionId":2048213},{"sourceType":"datasetVersion","sourceId":7539595,"datasetId":4390255,"databundleVersionId":7633587}],"dockerImageVersionId":30648,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import os\nimport numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport seaborn as sn\nimport cv2\nimport tifffile\n\nBASE_PATH = \"../input/hubmap-kidney-segmentation/\"\nTRAIN_PATH = os.path.join(BASE_PATH, \"train\")\n\nprint(os.listdir(BASE_PATH))","metadata":{"execution":{"iopub.status.busy":"2024-02-02T12:34:33.295242Z","iopub.execute_input":"2024-02-02T12:34:33.295962Z","iopub.status.idle":"2024-02-02T12:34:34.191042Z","shell.execute_reply.started":"2024-02-02T12:34:33.295925Z","shell.execute_reply":"2024-02-02T12:34:34.190133Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_train = pd.read_csv(\n    os.path.join(BASE_PATH, \"train.csv\")\n)\ndf_train","metadata":{"execution":{"iopub.status.busy":"2024-02-02T12:34:34.192846Z","iopub.execute_input":"2024-02-02T12:34:34.193220Z","iopub.status.idle":"2024-02-02T12:34:34.438020Z","shell.execute_reply.started":"2024-02-02T12:34:34.193194Z","shell.execute_reply":"2024-02-02T12:34:34.437017Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_sub = pd.read_csv(\n    os.path.join(BASE_PATH, \"sample_submission.csv\"))\ndf_sub","metadata":{"execution":{"iopub.status.busy":"2024-02-02T12:34:34.439671Z","iopub.execute_input":"2024-02-02T12:34:34.440041Z","iopub.status.idle":"2024-02-02T12:34:34.452070Z","shell.execute_reply.started":"2024-02-02T12:34:34.440007Z","shell.execute_reply":"2024-02-02T12:34:34.451220Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!git clone https://github.com/meituan/YOLOv6.git","metadata":{"execution":{"iopub.status.busy":"2024-02-02T12:34:34.453838Z","iopub.execute_input":"2024-02-02T12:34:34.454143Z","iopub.status.idle":"2024-02-02T12:34:35.410853Z","shell.execute_reply.started":"2024-02-02T12:34:34.454106Z","shell.execute_reply":"2024-02-02T12:34:35.409667Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%cd YOLOv6/\n!wget https://github.com/meituan/YOLOv6/releases/download/0.4.0/yolov6l6.pt","metadata":{"execution":{"iopub.status.busy":"2024-02-02T12:34:35.412498Z","iopub.execute_input":"2024-02-02T12:34:35.412873Z","iopub.status.idle":"2024-02-02T12:34:37.639188Z","shell.execute_reply.started":"2024-02-02T12:34:35.412831Z","shell.execute_reply":"2024-02-02T12:34:37.638237Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pip install -r requirements.txt","metadata":{"execution":{"iopub.status.busy":"2024-02-02T12:34:37.640543Z","iopub.execute_input":"2024-02-02T12:34:37.640850Z","iopub.status.idle":"2024-02-02T12:34:49.776094Z","shell.execute_reply.started":"2024-02-02T12:34:37.640823Z","shell.execute_reply":"2024-02-02T12:34:49.774989Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"python tools/train.py --batch 32 --conf configs/yolov6l6_finetune.py --data  --img 1280 --device 0","metadata":{"execution":{"iopub.status.busy":"2024-02-02T12:40:44.208252Z","iopub.execute_input":"2024-02-02T12:40:44.208914Z","iopub.status.idle":"2024-02-02T12:40:44.215321Z","shell.execute_reply.started":"2024-02-02T12:40:44.208883Z","shell.execute_reply":"2024-02-02T12:40:44.214044Z"},"trusted":true},"execution_count":null,"outputs":[]}]}