Skip to content

Commit

Permalink
Fix misleading CPU-only warning message (#325), remove screen from ex…
Browse files Browse the repository at this point in the history
…ample commands
  • Loading branch information
araistrick authored and pvl-bot committed Sep 27, 2024
1 parent b3ab846 commit f033891
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/ConfiguringInfinigen.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ python -m infinigen.datagen.manage_jobs --output_folder outputs/stereo_data --nu
#### Creating a few low-resolution images to your test changes

```bash
screen python -m infinigen.datagen.manage_jobs --output_folder outputs/dev --num_scenes 50 \
python -m infinigen.datagen.manage_jobs --output_folder outputs/dev --num_scenes 50 \
--pipeline_config slurm monocular cuda_terrain \
--cleanup big_files --warmup_sec 1200 --configs dev
```
Expand Down
4 changes: 2 additions & 2 deletions docs/HelloRoom.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ We also provide an OpenGL-based ground truth extractor which offers additional g

To generate a single scene in one command, you can run the following:
```bash
screen python -m infinigen.datagen.manage_jobs --output_folder outputs/my_dataset --num_scenes 1 --pipeline_configs local_256GB.gin monocular.gin blender_gt.gin indoor_background_configs.gin --configs singleroom.gin --pipeline_overrides get_cmd.driver_script='infinigen_examples.generate_indoors' manage_datagen_jobs.num_concurrent=16 --overrides compose_indoors.restrict_single_supported_roomtype=True
python -m infinigen.datagen.manage_jobs --output_folder outputs/my_dataset --num_scenes 1 --pipeline_configs local_256GB.gin monocular.gin blender_gt.gin indoor_background_configs.gin --configs singleroom.gin --pipeline_overrides get_cmd.driver_script='infinigen_examples.generate_indoors' manage_datagen_jobs.num_concurrent=16 --overrides compose_indoors.restrict_single_supported_roomtype=True
```

To create a large dataset of many random rooms, we recommend:
```bash
screen python -m infinigen.datagen.manage_jobs --output_folder outputs/my_dataset --num_scenes 1000 --pipeline_configs local_256GB.gin monocular.gin blender_gt.gin indoor_background_configs.gin --configs singleroom.gin --pipeline_overrides get_cmd.driver_script='infinigen_examples.generate_indoors' manage_datagen_jobs.num_concurrent=16 --overrides compose_indoors.restrict_single_supported_roomtype=True
python -m infinigen.datagen.manage_jobs --output_folder outputs/my_dataset --num_scenes 1000 --pipeline_configs local_256GB.gin monocular.gin blender_gt.gin indoor_background_configs.gin --configs singleroom.gin --pipeline_overrides get_cmd.driver_script='infinigen_examples.generate_indoors' manage_datagen_jobs.num_concurrent=16 --overrides compose_indoors.restrict_single_supported_roomtype=True
```

You can inspect `outputs/my_dataset/SEED/` to see the running logs of the subprocesses and output results.
Expand Down
2 changes: 1 addition & 1 deletion infinigen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging
from pathlib import Path

__version__ = "1.8.2"
__version__ = "1.8.3"


def repo_root():
Expand Down
4 changes: 2 additions & 2 deletions infinigen/core/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def configure_render_cycles(
@gin.configurable
def configure_cycles_devices(use_gpu=True):
if use_gpu is False:
logger.info(f"Render will use CPU-only due to {use_gpu=}")
logger.info(f"Job will use CPU-only due to {use_gpu=}")
bpy.context.scene.cycles.device = "CPU"
return

Expand All @@ -264,7 +264,7 @@ def configure_cycles_devices(use_gpu=True):
use_device_type = types[0]

if use_device_type == "CPU":
logger.warning(f"Render will use CPU-only, only found {types=}")
logger.warning(f"Job will use CPU-only, only found {types=}")
bpy.context.scene.cycles.device = "CPU"
return

Expand Down

0 comments on commit f033891

Please sign in to comment.