{"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":[{"sourceId":6799,"databundleVersionId":4225553,"sourceType":"competition"},{"sourceId":8564593,"sourceType":"datasetVersion","datasetId":5111557}],"dockerImageVersionId":30698,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!git clone https://github.com/sail-sg/iFormer.git","metadata":{"execution":{"iopub.status.busy":"2024-05-29T21:45:45.692588Z","iopub.execute_input":"2024-05-29T21:45:45.693073Z","iopub.status.idle":"2024-05-29T21:45:47.313094Z","shell.execute_reply.started":"2024-05-29T21:45:45.693031Z","shell.execute_reply":"2024-05-29T21:45:47.311438Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!chmod +x /kaggle/working/iFormer/train.py","metadata":{"execution":{"iopub.status.busy":"2024-05-29T21:45:47.315643Z","iopub.execute_input":"2024-05-29T21:45:47.31611Z","iopub.status.idle":"2024-05-29T21:45:48.335739Z","shell.execute_reply.started":"2024-05-29T21:45:47.316075Z","shell.execute_reply":"2024-05-29T21:45:48.334329Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install timm==0.5.4 fvcore","metadata":{"execution":{"iopub.status.busy":"2024-05-29T21:45:48.341407Z","iopub.execute_input":"2024-05-29T21:45:48.341837Z","iopub.status.idle":"2024-05-29T21:46:08.256856Z","shell.execute_reply.started":"2024-05-29T21:45:48.341781Z","shell.execute_reply":"2024-05-29T21:46:08.255874Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!/kaggle/working/iFormer/train.py /kaggle/input/imagenet-object-localization-challenge/ILSVRC/Data/CLS-LOC \\\n--model iformer_small -b 128 --epochs 300 --img-size 128 --drop-path 0.2 --lr 1e-3 \\\n--weight-decay 0.05 --aa rand-m9-mstd0.5-inc1 --warmup-lr 1e-6 --warmup-epochs 5 \\\n--output checkpoint --min-lr 1e-6 --experiment iformer_small --initial-checkpoint /kaggle/input/checkpoint-iformer/last.pth.tar","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2024-05-29T21:46:08.258308Z","iopub.execute_input":"2024-05-29T21:46:08.258611Z"},"trusted":true},"execution_count":null,"outputs":[]}]}