Skip to content

Commit

Permalink
Merge pull request princeton-vl#298 from princeton-vl/f_misc_bugfix
Browse files Browse the repository at this point in the history
Fix opt-out multistory, use action=append for cmdline configs
  • Loading branch information
pvl-bot authored Oct 18, 2024
2 parents ee415db + 8bc75f6 commit d5d349c
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 28 deletions.
5 changes: 5 additions & 0 deletions infinigen/datagen/manage_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ def main(args, shuffle=True, wandb_project="render", upload_commandfile_method=N
"--specific_seed",
default=None,
nargs="+",
action="append",
help="The default, None, will choose a random seed per scene. Otherwise, all "
"scenes will have the specified seed. Interpreted as an integer if possible.",
)
Expand Down Expand Up @@ -798,6 +799,7 @@ def main(args, shuffle=True, wandb_project="render", upload_commandfile_method=N
parser.add_argument(
"--configs",
nargs="*",
action="append",
default=[],
help="List of gin config names to pass through to all underlying "
"scene generation jobs.",
Expand All @@ -806,6 +808,7 @@ def main(args, shuffle=True, wandb_project="render", upload_commandfile_method=N
"-p",
"--overrides",
nargs="+",
action="append",
type=str,
default=[],
help="List of gin overrides to pass through to all underlying "
Expand All @@ -822,12 +825,14 @@ def main(args, shuffle=True, wandb_project="render", upload_commandfile_method=N
"--pipeline_configs",
type=str,
nargs="+",
action="append",
help="List of gin config names from tools/pipeline_configs "
"to configure this execution",
)
parser.add_argument(
"--pipeline_overrides",
nargs="+",
action="append",
type=str,
default=[],
help="List of gin overrides to configure this execution",
Expand Down
3 changes: 3 additions & 0 deletions infinigen/tools/download_pregenerated_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,20 +290,23 @@ def main(args):
"--seeds",
type=str,
nargs="+",
action="append",
default=None,
help="What scenes should we download? Omit to download all available in this release",
)
parser.add_argument(
"--cameras",
type=str,
nargs="+",
action="append",
default=None,
help="What cameras should we download data for? Omit to download all available in this release",
)
parser.add_argument(
"--data_types",
type=str,
nargs="+",
action="append",
default=None,
help="What data types (e.g Image, Depth, etc) should we download data for? Omit to download all available in this release",
)
Expand Down
1 change: 1 addition & 0 deletions infinigen/tools/submit_asset_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def get_slurm_banned_nodes(config_path=None):
"-a",
"--assets",
nargs="+",
action="append",
default=[
"CachedBushFactory",
"CachedTreeFactory",
Expand Down
2 changes: 2 additions & 0 deletions infinigen_examples/configs_indoor/base_indoors.gin
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ SimulatedAnnealingSolver.final_temp = 0.001
SimulatedAnnealingSolver.finetune_pct = 0.15
SimulatedAnnealingSolver.max_invalid_candidates = 5

RoomConstants.n_stories = 1

configure_render_cycles.num_samples = 16000

animate_cameras.follow_poi_chance=0.0
Expand Down
13 changes: 0 additions & 13 deletions infinigen_examples/configs_indoor/common.gin

This file was deleted.

1 change: 0 additions & 1 deletion infinigen_examples/configs_indoor/fast_solve.gin
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FloorPlanSolver.n_divide_trials = 25
FloorPlanSolver.iters_mult = 25
RoomConstants.n_stories = 1
GraphMaker.fast=True

home_room_constraints.fast = True
Expand Down
1 change: 0 additions & 1 deletion infinigen_examples/configs_indoor/home.gin

This file was deleted.

6 changes: 0 additions & 6 deletions infinigen_examples/configs_indoor/office.gin

This file was deleted.

4 changes: 0 additions & 4 deletions infinigen_examples/configs_indoor/warehouse.gin

This file was deleted.

5 changes: 3 additions & 2 deletions infinigen_examples/generate_individual_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,7 @@ def main(args):

if len(factories) == 1 and factories[0].endswith(".txt"):
factories = [
f.split(".")[-1]
for f in load_txt_list(factories[0], skip_sharp=False)
f.split(".")[-1] for f in load_txt_list(factories[0], skip_sharp=False)
]
else:
assert not any(f.endswith(".txt") for f in factories)
Expand Down Expand Up @@ -672,13 +671,15 @@ def make_args():
"--configs",
type=str,
nargs="+",
action="append",
default=[],
help="List of gin config files to apply",
)
parser.add_argument(
"--overrides",
type=str,
nargs="+",
action="append",
default=[],
help="List of gin overrides to apply",
)
Expand Down
5 changes: 4 additions & 1 deletion infinigen_examples/generate_indoors.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ def main(args):
"-t",
"--task",
nargs="+",
action="append",
default=["coarse"],
choices=[
"coarse",
Expand All @@ -537,14 +538,16 @@ def main(args):
"-g",
"--configs",
nargs="+",
default=["base"],
action="append",
default=[],
help="Set of config files for gin (separated by spaces) "
"e.g. --gin_config file1 file2 (exclude .gin from path)",
)
parser.add_argument(
"-p",
"--overrides",
nargs="+",
action="append",
default=[],
help="Parameter settings that override config defaults "
"e.g. --gin_param module_1.a=2 module_2.b=3",
Expand Down
3 changes: 3 additions & 0 deletions infinigen_examples/generate_nature.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,7 @@ def main(args):
"-t",
"--task",
nargs="+",
action="append",
default=["coarse"],
choices=[
"coarse",
Expand All @@ -997,6 +998,7 @@ def main(args):
"-g",
"--configs",
nargs="+",
action="append",
default=["base"],
help="Set of config files for gin (separated by spaces) "
"e.g. --gin_config file1 file2 (exclude .gin from path)",
Expand All @@ -1005,6 +1007,7 @@ def main(args):
"-p",
"--overrides",
nargs="+",
action="append",
default=[],
help="Parameter settings that override config defaults "
"e.g. --gin_param module_1.a=2 module_2.b=3",
Expand Down

0 comments on commit d5d349c

Please sign in to comment.