mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	Incompatible variable type fixed (#1288)
Summary: **"filename"**: "projects/nerf/nerf/implicit_function.py" **"warning_type"**: "Incompatible variable type [9]", **"warning_message"**: " input_skips is declared to have type `Tuple[int]` but is used as type `Tuple[]`.", **"warning_line"**: 256, **"fix"**: input_skips: Tuple[int,...] = () Pull Request resolved: https://github.com/facebookresearch/pytorch3d/pull/1288 Reviewed By: kjchalup Differential Revision: D38615188 Pulled By: bottler fbshipit-source-id: a014344dd6cf2125f564f948a3c905ceb84cf994
This commit is contained in:
		
							parent
							
								
									276c9a8acb
								
							
						
					
					
						commit
						a91f15f24e
					
				@ -26,7 +26,7 @@ class NeuralRadianceField(torch.nn.Module):
 | 
			
		||||
        n_hidden_neurons_xyz: int = 256,
 | 
			
		||||
        n_hidden_neurons_dir: int = 128,
 | 
			
		||||
        n_layers_xyz: int = 8,
 | 
			
		||||
        append_xyz: Tuple[int] = (5,),
 | 
			
		||||
        append_xyz: Tuple[int, ...] = (5,),
 | 
			
		||||
        use_multiple_streams: bool = True,
 | 
			
		||||
        **kwargs,
 | 
			
		||||
    ):
 | 
			
		||||
@ -253,7 +253,7 @@ class MLPWithInputSkips(torch.nn.Module):
 | 
			
		||||
        output_dim: int,
 | 
			
		||||
        skip_dim: int,
 | 
			
		||||
        hidden_dim: int,
 | 
			
		||||
        input_skips: Tuple[int] = (),
 | 
			
		||||
        input_skips: Tuple[int, ...] = (),
 | 
			
		||||
    ):
 | 
			
		||||
        """
 | 
			
		||||
        Args:
 | 
			
		||||
 | 
			
		||||
@ -67,7 +67,7 @@ class RadianceFieldRenderer(torch.nn.Module):
 | 
			
		||||
        n_hidden_neurons_xyz: int = 256,
 | 
			
		||||
        n_hidden_neurons_dir: int = 128,
 | 
			
		||||
        n_layers_xyz: int = 8,
 | 
			
		||||
        append_xyz: Tuple[int] = (5,),
 | 
			
		||||
        append_xyz: Tuple[int, ...] = (5,),
 | 
			
		||||
        density_noise_std: float = 0.0,
 | 
			
		||||
        visualization: bool = False,
 | 
			
		||||
    ):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user