Skip to content

Commit 8c2b0b0

Browse files
generatedunixname89002005307016facebook-github-bot
authored andcommitted
upgrade pyre version in fbcode/vision - batch 2
Differential Revision: D43044534 fbshipit-source-id: dc841b6704ccd562f5a40e7b2834e26063a9f7ae
1 parent d8471b2 commit 8c2b0b0

File tree

13 files changed

+0
-43
lines changed

13 files changed

+0
-43
lines changed

pytorch3d/datasets/r2n2/r2n2.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,6 @@ def _compute_camera_calibration(self, RT):
368368
T = RT[3, :3]
369369
return R, T
370370

371-
# pyre-fixme[14]: `render` overrides method defined in `ShapeNetBase`
372-
# inconsistently.
373371
def render(
374372
self,
375373
model_ids: Optional[List[str]] = None,

pytorch3d/implicitron/evaluation/evaluator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class ImplicitronEvaluator(EvaluatorBase):
5757
def __post_init__(self):
5858
run_auto_creation(self)
5959

60-
# pyre-fixme[14]: `run` overrides method defined in `EvaluatorBase` inconsistently.
6160
def run(
6261
self,
6362
model: ImplicitronModelBase,

pytorch3d/implicitron/models/generic_model.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ def __post_init__(self):
315315

316316
self.log_loss_weights()
317317

318-
# pyre-fixme[14]: `forward` overrides method defined in `ImplicitronModelBase`
319-
# inconsistently.
320318
def forward(
321319
self,
322320
*, # force keyword-only arguments

pytorch3d/implicitron/models/implicit_function/scene_representation_networks.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ def create_raymarch_function(self) -> None:
345345
def raymarch_function_tweak_args(cls, type, args: DictConfig) -> None:
346346
args.pop("latent_dim", None)
347347

348-
# pyre-fixme[14]: `forward` overrides method defined in `ImplicitFunctionBase`
349-
# inconsistently.
350348
def forward(
351349
self,
352350
*,
@@ -406,8 +404,6 @@ def hypernet_tweak_args(cls, type, args: DictConfig) -> None:
406404
args.pop("latent_dim", None)
407405
args.pop("latent_dim_hypernet", None)
408406

409-
# pyre-fixme[14]: `forward` overrides method defined in `ImplicitFunctionBase`
410-
# inconsistently.
411407
def forward(
412408
self,
413409
*,

pytorch3d/implicitron/models/model_dbir.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ class ModelDBIR(ImplicitronModelBase):
4141
bg_color: Tuple[float, float, float] = (0.0, 0.0, 0.0)
4242
max_points: int = -1
4343

44-
# pyre-fixme[14]: `forward` overrides method defined in `ImplicitronModelBase`
45-
# inconsistently.
4644
def forward(
4745
self,
4846
*, # force keyword-only arguments

pytorch3d/implicitron/models/renderer/raymarcher.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ def __post_init__(self):
111111
"minimum": lambda curr, acc: torch.minimum(curr, acc),
112112
}[self.weight_function_type]
113113

114-
# pyre-fixme[14]: `forward` overrides method defined in `RaymarcherBase`
115-
# inconsistently.
116114
def forward(
117115
self,
118116
rays_densities: torch.Tensor,

pytorch3d/implicitron/models/renderer/sdf_renderer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ def create_ray_tracer(self) -> None:
6666
def requires_object_mask(self) -> bool:
6767
return True
6868

69-
# pyre-fixme[14]: `forward` overrides method defined in `BaseRenderer`
70-
# inconsistently.
7169
def forward(
7270
self,
7371
ray_bundle: ImplicitronRayBundle,

pytorch3d/io/obj_io.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,6 @@ class MeshObjFormat(MeshFormatInterpreter):
298298
def __init__(self) -> None:
299299
self.known_suffixes = (".obj",)
300300

301-
# pyre-fixme[14]: `read` overrides method defined in `MeshFormatInterpreter`
302-
# inconsistently.
303301
def read(
304302
self,
305303
path: PathOrStr,
@@ -324,8 +322,6 @@ def read(
324322
)
325323
return mesh
326324

327-
# pyre-fixme[14]: `save` overrides method defined in `MeshFormatInterpreter`
328-
# inconsistently.
329325
def save(
330326
self,
331327
data: Meshes,

pytorch3d/io/off_io.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,6 @@ def read(
456456
)
457457
return mesh
458458

459-
# pyre-fixme[14]: `save` overrides method defined in `MeshFormatInterpreter`
460-
# inconsistently.
461459
def save(
462460
self,
463461
data: Meshes,

pytorch3d/io/ply_io.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,8 +1372,6 @@ def read(
13721372
)
13731373
return mesh
13741374

1375-
# pyre-fixme[14]: `save` overrides method defined in `MeshFormatInterpreter`
1376-
# inconsistently.
13771375
def save(
13781376
self,
13791377
data: Meshes,
@@ -1454,8 +1452,6 @@ def read(
14541452
)
14551453
return pointcloud
14561454

1457-
# pyre-fixme[14]: `save` overrides method defined in
1458-
# `PointcloudFormatInterpreter` inconsistently.
14591455
def save(
14601456
self,
14611457
data: Pointclouds,

0 commit comments

Comments
 (0)