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

Where is "params.json" required by "render_models.py" #9

Closed
ildefons opened this issue Sep 6, 2023 · 1 comment
Closed

Where is "params.json" required by "render_models.py" #9

ildefons opened this issue Sep 6, 2023 · 1 comment

Comments

@ildefons
Copy link

ildefons commented Sep 6, 2023

I am trying to run the baseline. when running the rendering rutine I get the following error:
Call:
python baselines/train/render_models.py --config_dir ./
Error:

Traceback (most recent call last):
  File "/home/ildefons/aicrowd/Melting-Pot-Contest-2023/baselines/train/render_models.py", line 94, in <module>
    render_model(args)
  File "/home/ildefons/aicrowd/Melting-Pot-Contest-2023/baselines/train/render_models.py", line 17, in render_model
    f = open(config_file)

I basically cannot find the params.json file. Where is it?

@rstrivedi
Copy link
Owner

Hi ildefons,

params.json will be created after you have run training script. It is output by the training module. It will be located in directory where you store the results of your training. For example, if your results directory is located in baselines/train/results/<exp_name> then you will find params.json in <exp_name>/PPO_*/ folder if you run PPO algorithm which is default with this baseline. You need to have trained the model to use the rendering part.

@ildefons ildefons closed this as completed Sep 6, 2023
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