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: D44881859 fbshipit-source-id: 4ed410724a14d580f811c1288f51a71ce8fb0c9a
This commit is contained in:
		
							parent
							
								
									e245560abb
								
							
						
					
					
						commit
						355d6332cb
					
				@ -57,6 +57,7 @@ class ImplicitronEvaluator(EvaluatorBase):
 | 
			
		||||
    def __post_init__(self):
 | 
			
		||||
        run_auto_creation(self)
 | 
			
		||||
 | 
			
		||||
    # pyre-fixme[14]: `run` overrides method defined in `EvaluatorBase` inconsistently.
 | 
			
		||||
    def run(
 | 
			
		||||
        self,
 | 
			
		||||
        model: ImplicitronModelBase,
 | 
			
		||||
 | 
			
		||||
@ -41,6 +41,8 @@ class ModelDBIR(ImplicitronModelBase):
 | 
			
		||||
    bg_color: Tuple[float, float, float] = (0.0, 0.0, 0.0)
 | 
			
		||||
    max_points: int = -1
 | 
			
		||||
 | 
			
		||||
    # pyre-fixme[14]: `forward` overrides method defined in `ImplicitronModelBase`
 | 
			
		||||
    #  inconsistently.
 | 
			
		||||
    def forward(
 | 
			
		||||
        self,
 | 
			
		||||
        *,  # force keyword-only arguments
 | 
			
		||||
 | 
			
		||||
@ -111,6 +111,8 @@ class AccumulativeRaymarcherBase(RaymarcherBase, torch.nn.Module):
 | 
			
		||||
            "minimum": lambda curr, acc: torch.minimum(curr, acc),
 | 
			
		||||
        }[self.weight_function_type]
 | 
			
		||||
 | 
			
		||||
    # pyre-fixme[14]: `forward` overrides method defined in `RaymarcherBase`
 | 
			
		||||
    #  inconsistently.
 | 
			
		||||
    def forward(
 | 
			
		||||
        self,
 | 
			
		||||
        rays_densities: torch.Tensor,
 | 
			
		||||
 | 
			
		||||
@ -491,6 +491,8 @@ class TexturesAtlas(TexturesBase):
 | 
			
		||||
        new_tex._num_faces_per_mesh = new_props["_num_faces_per_mesh"]
 | 
			
		||||
        return new_tex
 | 
			
		||||
 | 
			
		||||
    # pyre-fixme[14]: `sample_textures` overrides method defined in `TexturesBase`
 | 
			
		||||
    #  inconsistently.
 | 
			
		||||
    def sample_textures(self, fragments, **kwargs) -> torch.Tensor:
 | 
			
		||||
        """
 | 
			
		||||
        This is similar to a nearest neighbor sampling and involves a
 | 
			
		||||
@ -927,6 +929,8 @@ class TexturesUV(TexturesBase):
 | 
			
		||||
        new_tex._num_faces_per_mesh = new_props["_num_faces_per_mesh"]
 | 
			
		||||
        return new_tex
 | 
			
		||||
 | 
			
		||||
    # pyre-fixme[14]: `sample_textures` overrides method defined in `TexturesBase`
 | 
			
		||||
    #  inconsistently.
 | 
			
		||||
    def sample_textures(self, fragments, **kwargs) -> torch.Tensor:
 | 
			
		||||
        """
 | 
			
		||||
        Interpolate a 2D texture map using uv vertex texture coordinates for each
 | 
			
		||||
@ -1450,6 +1454,8 @@ class TexturesVertex(TexturesBase):
 | 
			
		||||
        new_tex._num_verts_per_mesh = new_props["_num_verts_per_mesh"]
 | 
			
		||||
        return new_tex
 | 
			
		||||
 | 
			
		||||
    # pyre-fixme[14]: `sample_textures` overrides method defined in `TexturesBase`
 | 
			
		||||
    #  inconsistently.
 | 
			
		||||
    def sample_textures(self, fragments, faces_packed=None) -> torch.Tensor:
 | 
			
		||||
        """
 | 
			
		||||
        Determine the color for each rasterized face. Interpolate the colors for
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user