Giter Site home page Giter Site logo

why? about safe-policy-optimization HOT 3 CLOSED

Yifei-Bi avatar Yifei-Bi commented on May 31, 2024
why?

from safe-policy-optimization.

Comments (3)

zmsn-2077 avatar zmsn-2077 commented on May 31, 2024

From your terminal info, it seems that mpi4py is having problems with the multi-threaded part, have you tried running:
python train.py --env-id Safexp-PointGoal1-v0 --algo ppo-lag --cores 1 --seed 0
Will this command work?

from safe-policy-optimization.

Yifei-Bi avatar Yifei-Bi commented on May 31, 2024

From your terminal info, it seems that mpi4py is having problems with the multi-threaded part, have you tried running: python train.py --env-id Safexp-PointGoal1-v0 --algo ppo-lag --cores 2 --seed 0 Will this command work?

我运行了上面的代码,然后出现上面的那个报错

from safe-policy-optimization.

zmsn-2077 avatar zmsn-2077 commented on May 31, 2024

I'm very sorry for your bad usage experience, please allow me to answer your question in more detail.

Firstly, my command above is trying to get you to set cores to 1 to see if cores=1is possible.
python train.py --env-id Safexp-PointGoal1-v0 --algo ppo-lag --cores 1 --seed 0

Secondly, can you run the following code to output the number of physical cores of the cpu on your local machine?

import psutil
physical_cores = psutil.cpu_count(logical=False)
print(physical_cores)

According to the parallelism mechanism of the mpi4py module, the number of physical cores of the cpu should be larger than the size of the cores parameter.

Finally, i just reinstalled the SafePO environment on a pristine ubuntu 20.04 machine and we tested it with no problems, can you provide more details about the configuration of your machine and the configuration of the software environment, this will help us to locate your problem faster. Your terminal information as above we are not able to locate where the problem is.

Hope this can help you.

from safe-policy-optimization.

Related Issues (10)

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.