Commit a91f15f2 authored by Luca Di Grazia's avatar Luca Di Grazia Committed by Facebook GitHub Bot
Browse files

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
parent 276c9a8a
......@@ -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,
):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment