Coder Social home page Coder Social logo

robustfieldautonomylab / multi_robot_distributional_rl_navigation Goto Github PK

View Code? Open in Web Editor NEW
40.0 4.0 4.0 1.18 MB

[ICRA 2024] Decentralized Multi-Robot Navigation for Autonomous Surface Vehicles with Distributional Reinforcement Learning

Home Page: https://ieeexplore.ieee.org/document/10611668

License: MIT License

Python 100.00%
collision-avoidance distributional-rl icra2024 marine-robotics planning-under-uncertainty

multi_robot_distributional_rl_navigation's People

Contributors

bexilin 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

Watchers

 avatar  avatar  avatar  avatar

multi_robot_distributional_rl_navigation's Issues

ValueError in save_evaluation Method of trainer.py

Description:

I encountered a ValueError while running the script train_rl_agents.py. The error occurs when trying to save an evaluation using np.savez in the save_evaluation method of trainer.py. The specific error message is as follows:

Traceback (most recent call last):
  File "train_rl_agents.py", line 121, in <module>
    run_trial(args.device,param)
  File "train_rl_agents.py", line 100, in run_trial
    trainer.learn(total_timesteps=params["total_timesteps"],
  File "/home/hb/RLNav/Multi_Robot_Distributional_RL_Navigation/policy/trainer.py", line 179, in learn
    self.save_evaluation(eval_log_path)
  File "/home/hb/RLNav/Multi_Robot_Distributional_RL_Navigation/policy/trainer.py", line 371, in save_evaluation
    np.savez(
  File "<__array_function__ internals>", line 200, in savez
  File "/home/hb/anaconda3/envs/1_body/lib/python3.8/site-packages/numpy/lib/npyio.py", line 615, in savez
    _savez(file, args, kwds, False)
  File "/home/hb/anaconda3/envs/1_body/lib/python3.8/site-packages/numpy/lib/npyio.py", line 716, in _savez
    val = np.asanyarray(val)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 4 dimensions. The detected shape was (1, 1, 3, 1002) + inhomogeneous part.

Steps to Reproduce:

python train_rl_agents.py -C config/config_IQN.json -D cuda
The error occurs just after evaluation.

Expected Behavior:

The evaluation npz should be saved successfully without any errors.

Actual Behavior:

A ValueError is raised, indicating an issue with the shape of the array being saved.

Environment:

Python version: 3.8
gym version: 0.19.0
Operating System: Ubuntu 20.04.6 LTS x86_64

Additional Information:

  • It seems that the issue is related to the shape of the array being passed to np.savez.
  • Upon trying to convert values of data_to save using np.array(), I found that data_to_save['objs'] has an incorrect shape, which likely causes this issue.
    image

Any guidance on how to resolve this issue would be appreciated.

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.