{"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":"!pip install -Uqq fastai","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"execution":{"iopub.status.busy":"2022-05-06T00:27:46.107701Z","iopub.execute_input":"2022-05-06T00:27:46.108413Z","iopub.status.idle":"2022-05-06T00:27:55.449310Z","shell.execute_reply.started":"2022-05-06T00:27:46.108373Z","shell.execute_reply":"2022-05-06T00:27:55.448385Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from fastai.vision.all import *\n\npath = Path('../input/small-jpegs-fgvc')\ntrn_path = path/'train'\ntst_path = path/'test'\n\ntrns_path = Path('train')\ntrns_path.mkdir(exist_ok=True)\ntsts_path = Path('test')\ntsts_path.mkdir(exist_ok=True)","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-05-06T00:27:55.453049Z","iopub.execute_input":"2022-05-06T00:27:55.453280Z","iopub.status.idle":"2022-05-06T00:27:55.460829Z","shell.execute_reply.started":"2022-05-06T00:27:55.453253Z","shell.execute_reply":"2022-05-06T00:27:55.459994Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"resize_images(trn_path, max_workers=8, dest=trns_path, max_size=512)","metadata":{"execution":{"iopub.status.busy":"2022-05-06T00:28:24.657199Z","iopub.execute_input":"2022-05-06T00:28:24.657463Z","iopub.status.idle":"2022-05-06T00:28:24.661500Z","shell.execute_reply.started":"2022-05-06T00:28:24.657433Z","shell.execute_reply":"2022-05-06T00:28:24.660519Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"resize_images(tst_path, max_workers=8, dest=tsts_path, max_size=512)","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}