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

Running --mode test Returns Error #4

Open
kvarys opened this issue Aug 9, 2022 · 0 comments
Open

Running --mode test Returns Error #4

kvarys opened this issue Aug 9, 2022 · 0 comments

Comments

@kvarys
Copy link

kvarys commented Aug 9, 2022

Dear Researchers,

When executing python3 main.py --mode test --cvae_path craft_cvae_abstract.pth --config craft_ours.yaml --test_iter 400000 --viz_name viz I receive the following error:

'Trainer' object has no attribute 'scenario_pool' -> trainers/partial.py(791)test() -> possible_tasks = list(self.scenario_pool.keys())

At line 812 in the same method I noticed the following call which initializes the scenario_pool:

if self.world_name == "CraftWorldHard":                                                           
     self._load_or_sample_test_scenarios(50)                                                                     
else:                                                                                                       
     self._load_or_sample_test_scenarios(10)

by adding this if/else into the test method before the line 791, the problem seems to be resolved. Would you say this is a correct solution of the issue?

Thank you!

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

1 participant