{"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":66962,"databundleVersionId":7431443,"sourceType":"competition"},{"sourceId":7341881,"sourceType":"datasetVersion","datasetId":4262844}],"dockerImageVersionId":30627,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!pip install gdown","metadata":{"execution":{"iopub.status.busy":"2024-01-15T02:31:32.708673Z","iopub.execute_input":"2024-01-15T02:31:32.709633Z","iopub.status.idle":"2024-01-15T02:31:48.402497Z","shell.execute_reply.started":"2024-01-15T02:31:32.709598Z","shell.execute_reply":"2024-01-15T02:31:48.401313Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!gdown 1kJ_0La4AQJ5AOvfIwODnTuHrQkvvKaZi","metadata":{"execution":{"iopub.status.busy":"2024-01-15T02:31:48.404655Z","iopub.execute_input":"2024-01-15T02:31:48.404957Z","iopub.status.idle":"2024-01-15T02:31:50.122839Z","shell.execute_reply.started":"2024-01-15T02:31:48.404931Z","shell.execute_reply":"2024-01-15T02:31:50.121818Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!unzip /kaggle/working/r50_ms1m_asian_celeb.zip","metadata":{"execution":{"iopub.status.busy":"2024-01-15T02:31:50.124376Z","iopub.execute_input":"2024-01-15T02:31:50.124782Z","iopub.status.idle":"2024-01-15T02:31:51.123452Z","shell.execute_reply.started":"2024-01-15T02:31:50.124730Z","shell.execute_reply":"2024-01-15T02:31:51.122150Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!git clone https://github.com/C0NGTRI123/insigh.git","metadata":{"execution":{"iopub.status.busy":"2024-01-15T02:31:51.125463Z","iopub.execute_input":"2024-01-15T02:31:51.125955Z","iopub.status.idle":"2024-01-15T02:31:53.037695Z","shell.execute_reply.started":"2024-01-15T02:31:51.125918Z","shell.execute_reply":"2024-01-15T02:31:53.036504Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%cd /kaggle/working/insigh","metadata":{"execution":{"iopub.status.busy":"2024-01-15T02:31:53.041042Z","iopub.execute_input":"2024-01-15T02:31:53.041354Z","iopub.status.idle":"2024-01-15T02:31:53.048387Z","shell.execute_reply.started":"2024-01-15T02:31:53.041327Z","shell.execute_reply":"2024-01-15T02:31:53.047217Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install -r requirement.txt","metadata":{"execution":{"iopub.status.busy":"2024-01-15T02:31:53.049795Z","iopub.execute_input":"2024-01-15T02:31:53.050181Z","iopub.status.idle":"2024-01-15T02:32:15.530389Z","shell.execute_reply.started":"2024-01-15T02:31:53.050154Z","shell.execute_reply":"2024-01-15T02:32:15.529274Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install numpy==1.23.5\n!pip install mxnet==1.9.1\n!pip install boto3","metadata":{"execution":{"iopub.status.busy":"2024-01-15T02:32:15.531721Z","iopub.execute_input":"2024-01-15T02:32:15.532041Z","iopub.status.idle":"2024-01-15T02:32:57.563980Z","shell.execute_reply.started":"2024-01-15T02:32:15.532011Z","shell.execute_reply":"2024-01-15T02:32:57.562809Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!git pull","metadata":{"execution":{"iopub.status.busy":"2024-01-15T02:32:57.565429Z","iopub.execute_input":"2024-01-15T02:32:57.565754Z","iopub.status.idle":"2024-01-15T02:32:58.813922Z","shell.execute_reply.started":"2024-01-15T02:32:57.565724Z","shell.execute_reply":"2024-01-15T02:32:58.812775Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!torchrun --nproc_per_node=2 train_v2.py configs/ms1mv2_mixnet_m.py","metadata":{"execution":{"iopub.status.busy":"2024-01-15T02:32:58.815400Z","iopub.execute_input":"2024-01-15T02:32:58.815704Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!torchrun --nproc_per_node=2 train_v2.py configs/ms1mv2_mixnet_s.py\n","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!torchrun --nproc_per_node=2 train_v2.py configs/ms1mv2_mixnet_l.py\n","metadata":{"trusted":true},"execution_count":null,"outputs":[]}]}