mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-22 15:20:34 +08:00
lint
Summary: Fix recent flake complaints Reviewed By: MichaelRamamonjisoa Differential Revision: D51811912 fbshipit-source-id: 65183f5bc7058da910e4d5a63b2250ce8637f1cc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f74fc450e8
commit
83bacda8fb
@@ -419,16 +419,16 @@ class TestMeshRasterizerOpenGLUtils(TestCaseMixin, unittest.TestCase):
|
||||
fragments = rasterizer(self.meshes_world, raster_settings=raster_settings)
|
||||
self.assertEqual(fragments.pix_to_face.shape, torch.Size([1, 10, 2047, 1]))
|
||||
|
||||
raster_settings.image_size = (2049, 512)
|
||||
with self.assertRaisesRegex(ValueError, "Max rasterization size is"):
|
||||
raster_settings.image_size = (2049, 512)
|
||||
rasterizer(self.meshes_world, raster_settings=raster_settings)
|
||||
|
||||
raster_settings.image_size = (512, 2049)
|
||||
with self.assertRaisesRegex(ValueError, "Max rasterization size is"):
|
||||
raster_settings.image_size = (512, 2049)
|
||||
rasterizer(self.meshes_world, raster_settings=raster_settings)
|
||||
|
||||
raster_settings.image_size = (2049, 2049)
|
||||
with self.assertRaisesRegex(ValueError, "Max rasterization size is"):
|
||||
raster_settings.image_size = (2049, 2049)
|
||||
rasterizer(self.meshes_world, raster_settings=raster_settings)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user