mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
apply new formatting config
Summary: pyfmt now specifies a target Python version of 3.8 when formatting with black. With this new config, black adds trailing commas to all multiline function calls. This applies the new formatting as part of rolling out the linttool-integration for pyfmt. paintitblack Reviewed By: zertosh, lisroach Differential Revision: D37084377 fbshipit-source-id: 781a1b883a381a172e54d6e447137657977876b4
This commit is contained in:
parent
023a2369ae
commit
ea4f3260e4
@ -377,7 +377,7 @@ class R2N2(ShapeNetBase): # pragma: no cover
|
||||
view_idxs: Optional[List[int]] = None,
|
||||
shader_type=HardPhongShader,
|
||||
device: Device = "cpu",
|
||||
**kwargs
|
||||
**kwargs,
|
||||
) -> torch.Tensor:
|
||||
"""
|
||||
Render models with BlenderCamera by default to achieve the same orientations as the
|
||||
|
@ -113,7 +113,7 @@ class ShapeNetBase(torch.utils.data.Dataset): # pragma: no cover
|
||||
idxs: Optional[List[int]] = None,
|
||||
shader_type=HardPhongShader,
|
||||
device: Device = "cpu",
|
||||
**kwargs
|
||||
**kwargs,
|
||||
) -> torch.Tensor:
|
||||
"""
|
||||
If a list of model_ids are supplied, render all the objects by the given model_ids.
|
||||
|
@ -30,7 +30,7 @@ class FeatureExtractorBase(ReplaceableBase, torch.nn.Module):
|
||||
self,
|
||||
imgs: Optional[torch.Tensor],
|
||||
masks: Optional[torch.Tensor] = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
) -> Dict[Any, torch.Tensor]:
|
||||
"""
|
||||
Args:
|
||||
|
@ -109,7 +109,7 @@ class MultiPassEmissionAbsorptionRenderer( # pyre-ignore: 13
|
||||
ray_bundle: RayBundle,
|
||||
implicit_functions: List[ImplicitFunctionWrapper] = [],
|
||||
evaluation_mode: EvaluationMode = EvaluationMode.EVALUATION,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
) -> RendererOutput:
|
||||
"""
|
||||
Args:
|
||||
|
@ -75,7 +75,7 @@ def render_point_cloud_pytorch3d(
|
||||
eps: float = 1e-2,
|
||||
bg_color=None,
|
||||
bin_size: Optional[int] = None,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
):
|
||||
|
||||
# feature dimension
|
||||
|
@ -176,7 +176,7 @@ class ImplicitRenderer(torch.nn.Module):
|
||||
rays_densities=rays_densities,
|
||||
rays_features=rays_features,
|
||||
ray_bundle=ray_bundle,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
)
|
||||
# images - minibatch x ... x (feature_dim + opacity_dim)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user