{"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":"import time\nimport os\n\nrun_start_t = time.time()\n\nprint('000')\n!cp -r /kaggle/input/imagenet-object-localization-challenge/ILSVRC/Data/CLS-LOC/val  /kaggle/working/\nprint('111')\n!mv /kaggle/working/val    /kaggle/working/imagenet_validation\nprint('111')\n!cp /kaggle/input/valprep/valprep.sh /kaggle/working/imagenet_validation\nprint('222')\n!du -h /kaggle/working/imagenet_validation/","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-01-22T08:54:51.68123Z","iopub.execute_input":"2023-01-22T08:54:51.681674Z","iopub.status.idle":"2023-01-22T09:01:30.513805Z","shell.execute_reply.started":"2023-01-22T08:54:51.681587Z","shell.execute_reply":"2023-01-22T09:01:30.512344Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!ls /kaggle/working/imagenet_validation/","metadata":{"execution":{"iopub.status.busy":"2023-01-22T09:04:37.194572Z","iopub.execute_input":"2023-01-22T09:04:37.195304Z","iopub.status.idle":"2023-01-22T09:04:38.299633Z","shell.execute_reply.started":"2023-01-22T09:04:37.195242Z","shell.execute_reply":"2023-01-22T09:04:38.298071Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"os.chdir('/kaggle/working/imagenet_validation/')\n\n!chmod +x ./valprep.sh\n!./valprep.sh\n\nos.system('rm -rf /kaggle/working/imagenet_validation/valprep.sh')\n\nprint(f'total finished, cost time: {time.time()-run_start_t:.2f} sec')","metadata":{"execution":{"iopub.status.busy":"2023-01-22T09:01:30.5161Z","iopub.execute_input":"2023-01-22T09:01:30.517012Z","iopub.status.idle":"2023-01-22T09:03:20.588011Z","shell.execute_reply.started":"2023-01-22T09:01:30.516974Z","shell.execute_reply":"2023-01-22T09:03:20.585503Z"},"trusted":true},"execution_count":null,"outputs":[]}]}