Summary: lint fixes

Reviewed By: davidsonic

Differential Revision: D42451530

fbshipit-source-id: 120bdd58fc074a713895df15df4e9efa9ea0a420
This commit is contained in:
Jeremy Reizenstein 2023-01-12 14:23:39 -08:00 committed by Facebook GitHub Bot
parent 3388d3f0aa
commit d71105f5e5
2 changed files with 6 additions and 3 deletions

View File

@ -128,8 +128,8 @@ def visualize_basics(
# TODO: handle errors on the outside # TODO: handle errors on the outside
try: try:
imout = {"all": torch.cat(list(imout.values()), dim=2)} imout = {"all": torch.cat(list(imout.values()), dim=2)}
except: except RuntimeError as e:
print("cant cat!") print("cant cat!", e.args)
for k, v in imout.items(): for k, v in imout.items():
viz.images( viz.images(

View File

@ -1412,7 +1412,10 @@ class TestRenderMeshes(TestCaseMixin, unittest.TestCase):
images = renderer(sphere_mesh) images = renderer(sphere_mesh)
rgb = images[0, ..., :3].squeeze().cpu() rgb = images[0, ..., :3].squeeze().cpu()
filename = f"test_simple_sphere_outside_zfar_{int(zfar)}_{rasterizer_type.__name__}.png" filename = (
"test_simple_sphere_outside_zfar_"
f"{int(zfar)}_{rasterizer_type.__name__}.png"
)
# Load reference image # Load reference image
image_ref = load_rgb_image(filename, DATA_DIR) image_ref = load_rgb_image(filename, DATA_DIR)