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:
Luca Di Grazia 2022-08-11 08:54:37 -07:00 committed by Facebook GitHub Bot
parent 276c9a8acb
commit a91f15f24e
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class NeuralRadianceField(torch.nn.Module):
n_hidden_neurons_xyz: int = 256, n_hidden_neurons_xyz: int = 256,
n_hidden_neurons_dir: int = 128, n_hidden_neurons_dir: int = 128,
n_layers_xyz: int = 8, n_layers_xyz: int = 8,
append_xyz: Tuple[int] = (5,), append_xyz: Tuple[int, ...] = (5,),
use_multiple_streams: bool = True, use_multiple_streams: bool = True,
**kwargs, **kwargs,
): ):
@ -253,7 +253,7 @@ class MLPWithInputSkips(torch.nn.Module):
output_dim: int, output_dim: int,
skip_dim: int, skip_dim: int,
hidden_dim: int, hidden_dim: int,
input_skips: Tuple[int] = (), input_skips: Tuple[int, ...] = (),
): ):
""" """
Args: Args:

View File

@ -67,7 +67,7 @@ class RadianceFieldRenderer(torch.nn.Module):
n_hidden_neurons_xyz: int = 256, n_hidden_neurons_xyz: int = 256,
n_hidden_neurons_dir: int = 128, n_hidden_neurons_dir: int = 128,
n_layers_xyz: int = 8, n_layers_xyz: int = 8,
append_xyz: Tuple[int] = (5,), append_xyz: Tuple[int, ...] = (5,),
density_noise_std: float = 0.0, density_noise_std: float = 0.0,
visualization: bool = False, visualization: bool = False,
): ):