From ae90c2030c610b4610e955cabc552fbf88396804 Mon Sep 17 00:00:00 2001 From: RWL Date: Thu, 5 Aug 2021 12:21:01 -0500 Subject: [PATCH] Patch to issue #790 RasterizationSettings perspective_correct=False needed for example convergence Due to changes from 4.0 to 5.0 the additional parameter perspective_correct=False is needed for the example to successfully converge on a mesh. Without this parameter, the website examples will not work in Colaboratory or locally. --- docs/tutorials/fit_textured_mesh.ipynb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/tutorials/fit_textured_mesh.ipynb b/docs/tutorials/fit_textured_mesh.ipynb index 736a832ac..476377a82 100644 --- a/docs/tutorials/fit_textured_mesh.ipynb +++ b/docs/tutorials/fit_textured_mesh.ipynb @@ -318,6 +318,7 @@ "# rasterization method is used. Refer to docs/notes/renderer.md for an \n", "# explanation of the difference between naive and coarse-to-fine rasterization. \n", "raster_settings = RasterizationSettings(\n", + " perspective_correct=False, \n", " image_size=128, \n", " blur_radius=0.0, \n", " faces_per_pixel=1, \n", @@ -401,6 +402,7 @@ "# Rasterization settings for silhouette rendering \n", "sigma = 1e-4\n", "raster_settings_silhouette = RasterizationSettings(\n", + " perspective_correct=False, \n", " image_size=128, \n", " blur_radius=np.log(1. / 1e-4 - 1.)*sigma, \n", " faces_per_pixel=50, \n", @@ -526,6 +528,7 @@ "# Renderer for Image-based 3D Reasoning', ICCV 2019\n", "sigma = 1e-4\n", "raster_settings_soft = RasterizationSettings(\n", + " perspective_correct=False, \n", " image_size=128, \n", " blur_radius=np.log(1. / 1e-4 - 1.)*sigma, \n", " faces_per_pixel=50, \n", @@ -703,6 +706,7 @@ "# Renderer for Image-based 3D Reasoning', ICCV 2019\n", "sigma = 1e-4\n", "raster_settings_soft = RasterizationSettings(\n", + " perspective_correct=False, \n", " image_size=128, \n", " blur_radius=np.log(1. / 1e-4 - 1.)*sigma, \n", " faces_per_pixel=50, \n",