{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"nvidiaTeslaT4","dataSources":[{"sourceId":7341881,"sourceType":"datasetVersion","datasetId":4262844},{"sourceId":7467346,"sourceType":"datasetVersion","datasetId":4346662},{"sourceId":7736100,"sourceType":"datasetVersion","datasetId":4521088}],"dockerImageVersionId":30627,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!pip install gdown\n!gdown 1kJ_0La4AQJ5AOvfIwODnTuHrQkvvKaZi","metadata":{"execution":{"iopub.status.busy":"2024-03-04T01:49:35.586188Z","iopub.execute_input":"2024-03-04T01:49:35.586471Z","iopub.status.idle":"2024-03-04T01:49:59.460602Z","shell.execute_reply.started":"2024-03-04T01:49:35.586448Z","shell.execute_reply":"2024-03-04T01:49:59.459694Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!unzip /kaggle/working/r50_ms1m_asian_celeb.zip\n!rm -rf /kaggle/working/r50_ms1m_asian_celeb.zip","metadata":{"execution":{"iopub.status.busy":"2024-03-04T01:49:59.46204Z","iopub.execute_input":"2024-03-04T01:49:59.462387Z","iopub.status.idle":"2024-03-04T01:50:15.101709Z","shell.execute_reply.started":"2024-03-04T01:49:59.462358Z","shell.execute_reply":"2024-03-04T01:50:15.100518Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!git clone -b rbl_custom https://gitlab+deploy-token-40:gldt-dkm1eh-M9v-jbNZgAcJu@git.rabiloo.net/tech/model-training/insightface2.git","metadata":{"execution":{"iopub.status.busy":"2024-03-04T01:50:15.104046Z","iopub.execute_input":"2024-03-04T01:50:15.104362Z","iopub.status.idle":"2024-03-04T01:50:22.025657Z","shell.execute_reply.started":"2024-03-04T01:50:15.104335Z","shell.execute_reply":"2024-03-04T01:50:22.024503Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%cd /kaggle/working/insightface2/recognition/arcface_torch","metadata":{"execution":{"iopub.status.busy":"2024-03-04T01:50:24.611655Z","iopub.execute_input":"2024-03-04T01:50:24.612045Z","iopub.status.idle":"2024-03-04T01:50:24.619692Z","shell.execute_reply.started":"2024-03-04T01:50:24.612008Z","shell.execute_reply":"2024-03-04T01:50:24.618813Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install -r requirement.txt","metadata":{"execution":{"iopub.status.busy":"2024-03-04T01:51:19.815696Z","iopub.execute_input":"2024-03-04T01:51:19.816097Z","iopub.status.idle":"2024-03-04T01:51:33.454953Z","shell.execute_reply.started":"2024-03-04T01:51:19.81606Z","shell.execute_reply":"2024-03-04T01:51:33.453855Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!PUBLIC_KEY=AKIAZEPZMQEPOAGMAHG3 \\\nSECRET_KEY=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 \\\nBUCKET=rabiai-model \\\nREGION=ap-southeast-1 \\\nWANDB_KEY=adbaa35e9a33e6934dc3a33b22056c0fd340dd43 \\\ntorchrun --nproc_per_node=2 train_v2.py configs/cwf_proxylessnas_pruning.py \\\n--wandb_project insightface_ms1mv3_compact_proxylessnas_pruning_OTO \\\n--wandb_entity duydq \\\n--rec /kaggle/input/ms1mv3-compact-1/ab \\\n--num_classes 5000 \\\n--num_image 301419 \\\n--batch_size 128 \\\n--folder_distillation /kaggle/working/r50_ms1m_asian_celeb \\\n--pruning \\\n--using_wandb \\\n--resume","metadata":{"execution":{"iopub.status.busy":"2024-03-05T02:24:41.392763Z","iopub.execute_input":"2024-03-05T02:24:41.393048Z","iopub.status.idle":"2024-03-05T02:24:53.204092Z","shell.execute_reply.started":"2024-03-05T02:24:41.393022Z","shell.execute_reply":"2024-03-05T02:24:53.203127Z"},"trusted":true},"execution_count":null,"outputs":[]}]}