Comments (8)
Thanks, just pushed a fix for that now.
from gym-city.
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.
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.
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.
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.
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.
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.
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)
- ValueError: You are trying to load a weight file containing 5 layers into a model with 7 layers. HOT 1
- A3Clstm undefined HOT 1
- Microplois code uses python2 base and gym_micropolis in python3 and some conflicts HOT 13
- which options HOT 24
- ConnectionResetError: [Errno 104] Connection reset by peer HOT 6
- No module named 'gym_pcgrl' HOT 2
- PPO RuntimeError: The size of tensor a (5) must match the size of tensor b (4) at non-singleton dimension 0 HOT 1
- error: ‘DOMAIN’ undeclared (first use in this function) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gym-city.