GithubHelp home page GithubHelp logo

Issue running model about mesa HOT 3 CLOSED

zhiningliu1998 avatar zhiningliu1998 commented on July 28, 2024
Issue running model

from mesa.

Comments (3)

ZhiningLiu1998 avatar ZhiningLiu1998 commented on July 28, 2024

Hi FELIPE,

Thanks for your interest in our work~

But I'm sorry that I cannot reproduce your error.
Just to confirm, did you follow the commands in the requirements section for the install? i.e., this part:

NOTE: this implementation requires an old version of PyTorch (v1.0.0).
You may want to start a new conda environment to run our code. The step-by-step guide is as follows (using torch-cpu for an example):

  • conda create --name mesa python=3.7.11
  • conda activate mesa
  • conda install pytorch-cpu==1.0.0 torchvision-cpu==0.2.1 cpuonly -c pytorch
  • pip install -r requirements.txt

These commands should help you to get ready for running mesa. If you have any further questions, please feel free to open an issue or drop me an email.

I just did a fresh install with these commands and the code seems to work as expected.
Please try following this guide and see if it solves your problem.

image

PS: The meta-sampler used in MESA is not a large network. Its size depends only on the dimensionality of the meta-state (usually < 20), rather than the amount of data. So the advantage of pytorch-GPU is likely to be insignificant.

from mesa.

fipeop avatar fipeop commented on July 28, 2024

Yes, I followed those commands --- did you test on a Unix environment? Wondering if those steps only work on Windows, maybe?

from mesa.

ZhiningLiu1998 avatar ZhiningLiu1998 commented on July 28, 2024

Yes, my primary development environment is Windows, so I only tested these steps on it. Maybe there are some magic inconsistencies between anaconda on windows and Unix-based OSs that caused this problem?

But I'm sorry that I'm currently busy applying for a Ph.D., so I'm afraid that there is no time for me to fix this. You can see that the meta_sampler is just a Soft Actor-Critic network (see here), which is defined in this folder. The main classes are defined in sac.py and model.py, with only less than 300 lines of code in total. I believe the problem is most likely in these 300 lines of code in SAC. In the future, I may replace the SAC implementation based on a more modern version of Pytorch.

If you find a solution to this error, I would greatly appreciate a PR!

Thanks again for your interest~

from mesa.

Related Issues (9)

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.