Code Monkey home page Code Monkey logo

rtrl's People

Contributors

rmst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rtrl's Issues

'id' is not a valid parameter of functools.partial

I installed the repo

pip install git+https://github.com/rmst/rtrl.git

but when I train an RTAC agent on the basic Pendulum-v0 task run

python -m rtrl run rtrl:RtacTraining Env.id=Pendulum-v0

the problem occured , and I have tried in win10 and linux, results are both like this:

Traceback (most recent call last):
  File "/root/anaconda3/envs/rt/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/root/anaconda3/envs/rt/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/root/code_xb/rtrl/rtrl/__main__.py", line 26, in <module>
    run(parse_args(*args))
  File "/root/code_xb/rtrl/rtrl/__main__.py", line 22, in parse_args
    return partial_from_args(func, kwargs)
  File "/root/code_xb/rtrl/rtrl/util.py", line 148, in partial_from_args
    keywords[key] = partial_from_args(value, sub_keywords)
  File "/root/code_xb/rtrl/rtrl/util.py", line 143, in partial_from_args
    assert key in params, f"'{key}' is not a valid parameter of {func}. Valid parameters are {tuple(params.keys())}."
AssertionError: 'id' is not a valid parameter of functools.partial(<class 'rtrl.envs.GymEnv'>, id='Pendulum-v0', real_time=True). Valid parameters are ('args', 'kwds').

Could you help me?

The 'getting started' code is not running on my side.

I did as instructed:

pip install git+https://github.com/rmst/rtrl.git
python -m rtrl run rtrl:RtacTraining Env.id=Pendulum-v0

Then the error shows:

Traceback (most recent call last):
File "/home/baiming/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/baiming/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/baiming/anaconda3/lib/python3.7/site-packages/rtrl/main.py", line 26, in
run(parse_args(*args))
File "/home/baiming/anaconda3/lib/python3.7/site-packages/rtrl/main.py", line 22, in parse_args
return partial_from_args(func, kwargs)
File "/home/baiming/anaconda3/lib/python3.7/site-packages/rtrl/util.py", line 148, in partial_from_args
keywords[key] = partial_from_args(value, sub_keywords)
File "/home/baiming/anaconda3/lib/python3.7/site-packages/rtrl/util.py", line 144, in partial_from_args
param = inspect.signature(func).parameters[key]
KeyError: 'id'

Does anyone have the same issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.