Coder Social home page Coder Social logo

Comments (8)

smearle avatar smearle commented on August 22, 2024

Thanks, just pushed a fix for that now.

from gym-city.

SBunce92 avatar SBunce92 commented on August 22, 2024

I was working on something myself - it seems it's a bit more complex than I first thought, as I'm still getting an error further down the line with swig:

make[3]: Entering directory '/home/sam/Projects/gym-city/gym_city/envs/micropolis/MicropolisCore/src/TileEngine' swig3.0 -python -py3 -c++ -Isrc -Wall \ -outdir objs \ -o objs/tileengine_wrap.cpp \ swig/tileengine.i Unable to open file objs/tileengine_wrap.cpp: No such file or directory

Hope this helps

from gym-city.

smearle avatar smearle commented on August 22, 2024

Ah yes, I think you just need to manually make a directory called 'objs' in 'TileEngine.' We should probably just have the makefile do this automatically, maybe you can submit a pull request to that effect.

from gym-city.

SBunce92 avatar SBunce92 commented on August 22, 2024

Also, partly my fault for capitalising 'makefile', but I think the change affects the lower case makefile instead. Happy to provide a PR for these changes if you like

from gym-city.

smearle avatar smearle commented on August 22, 2024

Oops, I hadn't meant to include both makefiles in the repo; I was using 'makefile' for running demos (inference on trained agents), where the models are saved locally on my machine, but not in this repo (since they're large files). Ideally though, we could host those trained agents elsewhere and instruct the user to download them in the Readme, if they like.

from gym-city.

SBunce92 avatar SBunce92 commented on August 22, 2024

I've been playing around with this for a few hours and seem to be digging myself deeper into a rabbit hole. I can submit a PR for the makefiles, which I have managed to mess about to get it to build correctly. However, I keep running into issues with gi, cairo, and swig is doing some odd things with imports.

Given that there are many dependencies and conda doesn't seem to be able to resolve the requirements at present, it might be worth wrapping the project up in a Dockerfile at some point?

from gym-city.

smearle avatar smearle commented on August 22, 2024

For sure, I'm curious what you've done with the makefiles. Yes, gi/cairo are usually the culprits, when trying to build. In the meantime, see if you can run the Game of Life environment, to make sure everything else is all good, something like:
python3 main.py --env-name GameOfLifeEnv-v0 --experiment test --render
Are you using Ubuntu? I haven't tried on Windows or OS X. In any case, post the error message(s) you're running into—I've gone through this process several times, and always get a little stuck. You're likely just missing some package or other relating to gi/cairo.

I definitely think it would be worthwhile to work on a Dockerfile, if only to sort out and record exactly which packages are required.

PS Honestly just keep copying and pasting the error messages into google and installing the suggested packages until you get a new error message, and repeat.

from gym-city.

smearle avatar smearle commented on August 22, 2024

Hello again. I added a Dockerfile, which can train an agent with CUDA acceleration (and render the 0th environment). I still need to figure out how to save log files and models inside docker. You can also look at the Dockerfile to figure out what you will need to install in order to build locally (especially if you are using Ubuntu). Run sh run.sh, which will attempt to build and run the image specified by Dockerfile. It will take a while to build the image for the first time and still needs to be cleaned/optimized.

from gym-city.

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.