mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	lints
Summary: lint fixes Reviewed By: davidsonic Differential Revision: D42451530 fbshipit-source-id: 120bdd58fc074a713895df15df4e9efa9ea0a420
This commit is contained in:
		
							parent
							
								
									3388d3f0aa
								
							
						
					
					
						commit
						d71105f5e5
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user