allenai / ai2thor-rearrangement

🔀 Visual Room Rearrangement
https://ai2thor.allenai.org/rearrangement
Apache License 2.0
104 stars 19 forks source link

Hi @herveyrobot and @nbqu , #51

Open herveyrobot opened 1 year ago

herveyrobot commented 1 year ago
          Hi @herveyrobot and @nbqu ,

The example.py code was written with the assumption that it would be run on a mac, sorry about that! As the error message notes:

[d != torch.device("cpu") and d >= 0 for d in devices]
TypeError: 'NoneType' object is not iterable
[engine.py: 1861]

the parameter devices passed to the TwoPhaseRGBBaseExperimentConfig.stagewise_task_sampler_args function is None by default which is fine when you're not using Linux but causes issues otherwise. Can you try changing:

task_sampler_params = TwoPhaseRGBBaseExperimentConfig.stagewise_task_sampler_args(
    stage="train", process_ind=0, total_processes=1,
)

to

task_sampler_params = TwoPhaseRGBBaseExperimentConfig.stagewise_task_sampler_args(
    stage="train", process_ind=0, total_processes=1, devices=[0]
)

and trying again?

Originally posted by @Lucaweihs in https://github.com/allenai/ai2thor-rearrangement/issues/48#issuecomment-1668722513

herveyrobot commented 1 year ago

It can't work for me. The errors that occurred are as follows:

[08/08 19:43:13 ERROR:] [train worker 0] Encountered TypeError, exiting. [engine.py: 1858] [08/08 19:43:13 ERROR:] Traceback (most recent call last): File "/root/ai2thor-rearrangement/baseline_configs/rearrange_base.py", line 292, in stagewise_task_sampler_args x_displays = get_open_x_displays(throw_error_if_empty=True) File "/opt/miniconda3/envs/rearrange/lib/python3.9/site-packages/allenact_plugins/ithor_plugin/ithor_util.py", line 88, in get_open_x_displays raise IOError( OSError: Could not find any open X-displays on which to run AI2-THOR processes. Please see the AI2-THOR installation instructions at https://allenact.org/installation/installation-framework/#installation-of-ithor-ithor-plugin for information as to how to start such displays.

During handling of the above exception, another exception occurred: TypeError: 'NoneType' object is not iterable [engine.py: 1861] [08/08 19:43:13 ERROR:] Encountered Exception. Terminating runner. [runner.py: 1467] [08/08 19:43:13 ERROR:] Traceback (most recent call last): File "/opt/miniconda3/envs/rearrange/lib/python3.9/site-packages/allenact/algorithms/onpolicy_sync/runner.py", line 1434, in log_and_close raise Exception( Exception: Train worker 0 abnormally terminated [runner.py: 1468] Traceback (most recent call last): File "/opt/miniconda3/envs/rearrange/lib/python3.9/site-packages/allenact/algorithms/onpolicy_sync/runner.py", line 1434, in log_and_close raise Exception( Exception: Train worker 0 abnormally terminated

Stardust-y commented 6 months ago

same problem when training, have you solved it yet?