Skip to content

Commit 18f1d20

Browse files
committed
move half_pixel to the main config
1 parent a4110b7 commit 18f1d20

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

config.py

+6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ def config_parser():
3939
help="number of iterations"
4040
)
4141

42+
ray = parser.add_argument_group("rays")
43+
ray.add_argument(
44+
"--use_pixel_centers", action="store_true", default=False,
45+
help="add a half pixel while generating rays"
46+
)
47+
4248
# dataset options
4349
dataset = parser.add_argument_group("dataset option")
4450
dataset.add_argument(

model/jaxnerf_torch/model.py

-7
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ def __init__(self, args):
8383
@staticmethod
8484
def add_model_specific_args(parser):
8585

86-
# ray option
87-
ray = parser.add_argument_group("rays")
88-
ray.add_argument(
89-
"--use_pixel_centers", action="store_true", default=False,
90-
help="add a half pixel while generating rays"
91-
)
92-
9386
net = parser.add_argument_group("networks")
9487
net.add_argument("--netdepth", type=int, default=8, help="layers in network")
9588
net.add_argument("--netwidth", type=int, default=256, help="channels per layer")

0 commit comments

Comments
 (0)