"git@developer.sourcefind.cn:OpenDAS/torch-harmonics.git" did not exist on "942aa4ead5c02ddcfb154dbd82742da3ea00c6d0"
Commit d71105f5 authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

lints

Summary: lint fixes

Reviewed By: davidsonic

Differential Revision: D42451530

fbshipit-source-id: 120bdd58fc074a713895df15df4e9efa9ea0a420
parent 3388d3f0
......@@ -128,8 +128,8 @@ def visualize_basics(
# TODO: handle errors on the outside
try:
imout = {"all": torch.cat(list(imout.values()), dim=2)}
except:
print("cant cat!")
except RuntimeError as e:
print("cant cat!", e.args)
for k, v in imout.items():
viz.images(
......
......@@ -1412,7 +1412,10 @@ class TestRenderMeshes(TestCaseMixin, unittest.TestCase):
images = renderer(sphere_mesh)
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
image_ref = load_rgb_image(filename, DATA_DIR)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment