Skip to content

Commit c9742d0

Browse files
patricklabatutfacebook-github-bot
authored andcommitted
Enable spelling linter for Markdown, reStructuredText and IPython notebooks
Summary: Enable spelling linter for Markdown, reStructuredText and IPython notebooks under `fbcode/vision/fair`. Apply suggested fixes. Reviewed By: ppwwyyxx Differential Revision: D20495298 fbshipit-source-id: 95310c7b51f9fa68ba2aa34ecc39a874da36a75c
1 parent 3901dbe commit c9742d0

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

docs/tutorials/bundle_adjustment.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@
157157
},
158158
"outputs": [],
159159
"source": [
160-
"!wget https://raw.githubusercontent.com/facebookresearch/pytorch3d/master/docs/tutorials/utils/camera_visualisation.py\n",
161-
"from camera_visualisation import plot_camera_scene\n",
160+
"!wget https://raw.githubusercontent.com/facebookresearch/pytorch3d/master/docs/tutorials/utils/camera_visualization.py\n",
161+
"from camera_visualization import plot_camera_scene\n",
162162
"\n",
163163
"!mkdir data\n",
164164
"!wget -P data https://raw.githubusercontent.com/facebookresearch/pytorch3d/master/docs/tutorials/data/camera_graph.pth"
@@ -482,7 +482,7 @@
482482
"log_R_absolute_init = torch.randn(N, 3).float().cuda()\n",
483483
"T_absolute_init = torch.randn(N, 3).float().cuda()\n",
484484
"\n",
485-
"# futhermore, we know that the first camera is a trivial one \n",
485+
"# furthermore, we know that the first camera is a trivial one \n",
486486
"# (see the description above)\n",
487487
"log_R_absolute_init[0, :] = 0.\n",
488488
"T_absolute_init[0, :] = 0.\n",

docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@
424424
"id": "dvTLnrWorQd2"
425425
},
426426
"source": [
427-
"### Visualise the starting position and the reference position"
427+
"### Visualize the starting position and the reference position"
428428
]
429429
},
430430
{

docs/tutorials/render_textured_meshes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@
545545
"source": [
546546
"## 6. Batched Rendering\n",
547547
"\n",
548-
"One of the core design choices of the PyTorch3D API is to suport **batched inputs for all components**. \n",
548+
"One of the core design choices of the PyTorch3D API is to support **batched inputs for all components**. \n",
549549
"The renderer and associated components can take batched inputs and **render a batch of output images in one forward pass**. We will now use this feature to render the mesh from many different viewpoints.\n"
550550
]
551551
},

docs/tutorials/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
22

3-
from .camera_visualisation import (
3+
from .camera_visualization import (
44
get_camera_wireframe,
55
plot_camera_scene,
66
plot_cameras,

pytorch3d/renderer/mesh/shader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def forward(self, fragments, meshes, **kwargs) -> torch.Tensor:
330330
class SoftSilhouetteShader(nn.Module):
331331
"""
332332
Calculate the silhouette by blending the top K faces for each pixel based
333-
on the 2d euclidean distance of the centre of the pixel to the mesh face.
333+
on the 2d euclidean distance of the center of the pixel to the mesh face.
334334
335335
Use this shader for generating silhouettes similar to SoftRasterizer [0].
336336

tests/test_blending.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def test_sigmoid_alpha_blend_python(self):
272272
)
273273

274274
def test_softmax_rgb_blend(self):
275-
# Create dummy outputs of rasterization simulating a cube in the centre
275+
# Create dummy outputs of rasterization simulating a cube in the center
276276
# of the image with surrounding padded values.
277277
N, S, K = 1, 8, 2
278278
device = torch.device("cuda")
@@ -421,7 +421,7 @@ def fn():
421421
return fn
422422

423423
def test_blend_params(self):
424-
"""Test colour parameter of BlendParams().
424+
"""Test color parameter of BlendParams().
425425
Assert passed value overrides default value.
426426
"""
427427
bp_default = BlendParams()

0 commit comments

Comments
 (0)