mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	upgrade pyre version in fbcode/vision - batch 2
				
					
				
			Differential Revision: D44182699 fbshipit-source-id: bdc5f495eaaee8ce461b91271d476d7b3ec3f8a2
This commit is contained in:
		
							parent
							
								
									013ff4fd90
								
							
						
					
					
						commit
						8c8004853a
					
				@ -147,6 +147,7 @@ def find_last_checkpoint(
 | 
			
		||||
            # pyre-fixme[61]: `fls` is undefined, or not always defined.
 | 
			
		||||
            fl = [f[0 : -len(ext)] + ".pth" for f in fls]
 | 
			
		||||
        else:
 | 
			
		||||
            # pyre-fixme[61]: `ext` is undefined, or not always defined.
 | 
			
		||||
            fl = fls[-1][0 : -len(ext)] + ".pth"
 | 
			
		||||
 | 
			
		||||
    return fl
 | 
			
		||||
 | 
			
		||||
@ -124,6 +124,7 @@ def mesh_laplacian_smoothing(meshes, method: str = "uniform"):
 | 
			
		||||
    if method == "uniform":
 | 
			
		||||
        loss = L.mm(verts_packed)
 | 
			
		||||
    elif method == "cot":
 | 
			
		||||
        # pyre-fixme[61]: `norm_w` is undefined, or not always defined.
 | 
			
		||||
        loss = L.mm(verts_packed) * norm_w - verts_packed
 | 
			
		||||
    elif method == "cotcurv":
 | 
			
		||||
        # pyre-fixme[61]: `norm_w` may not be initialized here.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user