-
Notifications
You must be signed in to change notification settings - Fork 14
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
python3 train.py -config agents/CartPole-v1/es.yaml Error #11
Comments
And run ppo can success.but use visualizer MovieWriter ffmpeg unavailable; using Pillow instead. During handling of the above exception, another exception occurred: Traceback (most recent call last): |
run python3 train.py -config agents/CartPole-v1/es.yaml
then
发生异常: KeyError
'Gym'
File "/home/xzpwsl2/my/work/gymnax/gymnax-blines/utils/es.py", line 16, in train_es
train_evaluator = ProblemMapper["Gym"](
File "/home/xzpwsl2/my/work/gymnax/gymnax-blines/train.py", line 24, in main
log_steps, log_return, network_ckpt = train_fn(
File "/home/xzpwsl2/my/work/gymnax/gymnax-blines/train.py", line 76, in
main(
KeyError: 'Gym'
I found it only Gymnax.So I change it.But
Module.apply() missing 1 required positional argument: 'variables'
File "/home/xzpwsl2/my/work/gymnax/gymnax-blines/train.py", line 76, in
main(
File "/home/xzpwsl2/my/work/gymnax/gymnax-blines/train.py", line 24, in main
log_steps, log_return, network_ckpt = train_fn(
File "/home/xzpwsl2/my/work/gymnax/gymnax-blines/utils/es.py", line 84, in train_es
fitness = train_evaluator.rollout(rng_eval, reshaped_params).mean(
jax._src.traceback_util.UnfilteredStackTrace: TypeError: Module.apply() missing 1 required positional argument: 'variables'
The stack trace below excludes JAX-internal frames.
The preceding is the original exception that occurred, unmodified.
The above exception was the direct cause of the following exception:
File "/home/xzpwsl2/my/work/gymnax/gymnax-blines/utils/es.py", line 84, in train_es
fitness = train_evaluator.rollout(rng_eval, reshaped_params).mean(
File "/home/xzpwsl2/my/work/gymnax/gymnax-blines/train.py", line 24, in main
log_steps, log_return, network_ckpt = train_fn(
File "/home/xzpwsl2/my/work/gymnax/gymnax-blines/train.py", line 76, in
main(
TypeError: Module.apply() missing 1 required positional argument: 'variables'
The text was updated successfully, but these errors were encountered: