From 4296fd96c53f04d8c547d988c7707a1a86711e97 Mon Sep 17 00:00:00 2001 From: Jeremy Reizenstein Date: Tue, 10 Nov 2020 16:34:49 -0800 Subject: [PATCH] curl needs -L Summary: As mentioned in a comment on https://github.com/facebookresearch/pytorch3d/issues/438, curl must be told to follow redirects. Reviewed By: nikhilaravi Differential Revision: D24870138 fbshipit-source-id: 0c8aeb5146f8699bcea03d4108276fc24e9eab6b --- INSTALL.md | 2 +- docs/tutorials/README.md | 2 +- docs/tutorials/bundle_adjustment.ipynb | 2 +- ...ra_position_optimization_with_differentiable_rendering.ipynb | 2 +- docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb | 2 +- docs/tutorials/deform_source_mesh_to_target_mesh.ipynb | 2 +- docs/tutorials/fit_textured_mesh.ipynb | 2 +- docs/tutorials/render_colored_points.ipynb | 2 +- docs/tutorials/render_densepose.ipynb | 2 +- docs/tutorials/render_textured_meshes.ipynb | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 8faf22e5..2933e4db 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -32,7 +32,7 @@ Otherwise download the CUB library from https://github.com/NVIDIA/cub/releases a Define the environment variable CUB_HOME before building and point it to the directory that contains `CMakeLists.txt` for CUB. For example on Linux/Mac, ``` -curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz +curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz tar xzf 1.10.0.tar.gz export CUB_HOME=$PWD/cub-1.10.0 ``` diff --git a/docs/tutorials/README.md b/docs/tutorials/README.md index ecb7d5f6..e81b0dfc 100644 --- a/docs/tutorials/README.md +++ b/docs/tutorials/README.md @@ -11,7 +11,7 @@ with the CUDA 10.1 inside a GPU colab notebook. If you need to install PyTorch3D from source inside colab, you can use ``` import os -!curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz +!curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz !tar xzf 1.10.0.tar.gz os.environ["CUB_HOME"] = os.getcwd() + "/cub-1.10.0" !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'` diff --git a/docs/tutorials/bundle_adjustment.ipynb b/docs/tutorials/bundle_adjustment.ipynb index 0e1b239f..38d02c9c 100644 --- a/docs/tutorials/bundle_adjustment.ipynb +++ b/docs/tutorials/bundle_adjustment.ipynb @@ -93,7 +93,7 @@ " except ModuleNotFoundError:\n", " need_pytorch3d=True\n", " if need_pytorch3d:\n", - " !curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", + " !curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", " !tar xzf 1.10.0.tar.gz\n", " os.environ[\"CUB_HOME\"] = os.getcwd() + \"/cub-1.10.0\"\n", " !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'" diff --git a/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb b/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb index 533de740..d84db529 100644 --- a/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb +++ b/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb @@ -80,7 +80,7 @@ " except ModuleNotFoundError:\n", " need_pytorch3d=True\n", " if need_pytorch3d:\n", - " !curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", + " !curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", " !tar xzf 1.10.0.tar.gz\n", " os.environ[\"CUB_HOME\"] = os.getcwd() + \"/cub-1.10.0\"\n", " !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'" diff --git a/docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb b/docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb index e2643983..7dc0f4d0 100644 --- a/docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb +++ b/docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb @@ -55,7 +55,7 @@ " except ModuleNotFoundError:\n", " need_pytorch3d=True\n", " if need_pytorch3d:\n", - " !curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", + " !curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", " !tar xzf 1.10.0.tar.gz\n", " os.environ[\"CUB_HOME\"] = os.getcwd() + \"/cub-1.10.0\"\n", " !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'" diff --git a/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb b/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb index 8f5b59d5..cf676ee6 100644 --- a/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb +++ b/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb @@ -94,7 +94,7 @@ " except ModuleNotFoundError:\n", " need_pytorch3d=True\n", " if need_pytorch3d:\n", - " !curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", + " !curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", " !tar xzf 1.10.0.tar.gz\n", " os.environ[\"CUB_HOME\"] = os.getcwd() + \"/cub-1.10.0\"\n", " !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'" diff --git a/docs/tutorials/fit_textured_mesh.ipynb b/docs/tutorials/fit_textured_mesh.ipynb index 9685f954..fe045b2f 100644 --- a/docs/tutorials/fit_textured_mesh.ipynb +++ b/docs/tutorials/fit_textured_mesh.ipynb @@ -72,7 +72,7 @@ " except ModuleNotFoundError:\n", " need_pytorch3d=True\n", " if need_pytorch3d:\n", - " !curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", + " !curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", " !tar xzf 1.10.0.tar.gz\n", " os.environ[\"CUB_HOME\"] = os.getcwd() + \"/cub-1.10.0\"\n", " !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'" diff --git a/docs/tutorials/render_colored_points.ipynb b/docs/tutorials/render_colored_points.ipynb index a1e7d329..6aa206a6 100644 --- a/docs/tutorials/render_colored_points.ipynb +++ b/docs/tutorials/render_colored_points.ipynb @@ -54,7 +54,7 @@ " except ModuleNotFoundError:\n", " need_pytorch3d=True\n", " if need_pytorch3d:\n", - " !curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", + " !curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", " !tar xzf 1.10.0.tar.gz\n", " os.environ[\"CUB_HOME\"] = os.getcwd() + \"/cub-1.10.0\"\n", " !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'" diff --git a/docs/tutorials/render_densepose.ipynb b/docs/tutorials/render_densepose.ipynb index a314d9c9..264499d3 100644 --- a/docs/tutorials/render_densepose.ipynb +++ b/docs/tutorials/render_densepose.ipynb @@ -61,7 +61,7 @@ " except ModuleNotFoundError:\n", " need_pytorch3d=True\n", " if need_pytorch3d:\n", - " !curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", + " !curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", " !tar xzf 1.10.0.tar.gz\n", " os.environ[\"CUB_HOME\"] = os.getcwd() + \"/cub-1.10.0\"\n", " !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'" diff --git a/docs/tutorials/render_textured_meshes.ipynb b/docs/tutorials/render_textured_meshes.ipynb index 7f3c5d4a..c28acbf0 100644 --- a/docs/tutorials/render_textured_meshes.ipynb +++ b/docs/tutorials/render_textured_meshes.ipynb @@ -77,7 +77,7 @@ " except ModuleNotFoundError:\n", " need_pytorch3d=True\n", " if need_pytorch3d:\n", - " !curl -O https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", + " !curl -LO https://github.com/NVIDIA/cub/archive/1.10.0.tar.gz\n", " !tar xzf 1.10.0.tar.gz\n", " os.environ[\"CUB_HOME\"] = os.getcwd() + \"/cub-1.10.0\"\n", " !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'"