mitrefireline / simharness

An open-source Reinforcement Learning (RL) harness written in Python to work with SimFire for training agents to fight wildfires on real data.
https://fireline.mitre.org
Apache License 2.0
13 stars 1 forks source link

Interpolation key 'simulation.fire_start_seed' not found #4

Closed Nebreg3 closed 6 months ago

Nebreg3 commented 7 months ago

Issue When running the main.py of simharness, after installing all the dependencies, initializing the ray cluster, and following the installation process, I encounter this error:

File "/home/userlinux/Documents/simharness-dev/main.py", line 176, in _instantiate_config
    env_settings = instantiate(cfg.environment, _convert_="partial")

raise InterpolationKeyError(f"Interpolation key '{inter_key}' not found")
omegaconf.errors.InterpolationKeyError: Interpolation key 'simulation.fire_start_seed' not found

Althougt in nfs/lslab2/fireline/simharness/experiments/2024-04-18_18-39-00/hydra_output/config.yaml i have:

random:
     seed: ${simulation.fire_start_seed}

Temporaly solution: Comment out line 79 and 80 in both conf/simulation/train/default.yaml and conf/simulation/eval/default.yaml

afennelly-mitre commented 6 months ago

This issue has been resolved with the updates in commit https://github.com/mitrefireline/simharness/commit/706d74cc47b30add70f0f3948be4f9df47e69de0.

@Nestor-UVE you should be able to launch a training experiment with the following command:

python main.py -cn train cli.data_dir=$HOME/.simharness

Please create a new issue if you are still having trouble running experiments with main.py on the dev branch. Thank you!