{"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":"!wget https://download.pytorch.org/whl/torch_stable.html\n!wget https://download.pytorch.org/whl/torchtext-0.5.0-py3-none-any.whl \n!wget https://download.pytorch.org/whl/cu100/torch-1.2.0-cp37-cp37m-manylinux1_x86_64.whl \n!wget https://download.pytorch.org/whl/cu100/torchvision-0.4.0-cp37-cp37m-manylinux1_x86_64.whl ","metadata":{"execution":{"iopub.status.busy":"2021-05-29T10:57:36.481648Z","iopub.execute_input":"2021-05-29T10:57:36.482019Z","iopub.status.idle":"2021-05-29T10:57:43.802903Z","shell.execute_reply.started":"2021-05-29T10:57:36.481987Z","shell.execute_reply":"2021-05-29T10:57:43.801672Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import os\nimport urllib.request\n\nurl = \"https://s3.amazonaws.com/amdegroot-models/vgg16_reducedfc.pth\"\ntarget_path = 'vgg16_reducedfc.pth' \nif not os.path.exists(target_path):\n    urllib.request.urlretrieve(url, target_path)\n    ","metadata":{"execution":{"iopub.status.busy":"2021-05-29T12:23:09.321840Z","iopub.execute_input":"2021-05-29T12:23:09.322164Z","iopub.status.idle":"2021-05-29T12:23:13.492146Z","shell.execute_reply.started":"2021-05-29T12:23:09.322135Z","shell.execute_reply":"2021-05-29T12:23:13.491113Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!ls","metadata":{"execution":{"iopub.status.busy":"2021-05-29T12:23:26.520972Z","iopub.execute_input":"2021-05-29T12:23:26.521278Z","iopub.status.idle":"2021-05-29T12:23:27.258870Z","shell.execute_reply.started":"2021-05-29T12:23:26.521252Z","shell.execute_reply":"2021-05-29T12:23:27.257630Z"},"trusted":true},"execution_count":null,"outputs":[]}]}