Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi @herveyrobot and @nbqu , #51

Open
herveyrobot opened this issue Aug 9, 2023 · 2 comments
Open

Hi @herveyrobot and @nbqu , #51

herveyrobot opened this issue Aug 9, 2023 · 2 comments

Comments

@herveyrobot
Copy link

          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 #48 (comment)

@herveyrobot
Copy link
Author

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
Copy link

same problem when training, have you solved it yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants