"git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "c506e7eda02c94eb585fc07ac5e5a032db81f327"
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( ...@@ -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(
......
...@@ -1412,7 +1412,10 @@ class TestRenderMeshes(TestCaseMixin, unittest.TestCase): ...@@ -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)
......
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