Coder Social home page Coder Social logo

Comments (6)

smearle avatar smearle commented on August 22, 2024

You need to launch the visdom server as described in the Readme. I think only the second error message is relevant here. First is generic "I was multiprocessing and something went wrong", third is a warning that came with the original micropolis as well, I believe. Or, you can just ignore these messages. The training/evaluation reward graphs will be output as png files anyway.

from gym-city.

leckylao avatar leckylao commented on August 22, 2024

Thank you for your reply @smearle. Visdom is up and running fine on 8097.

image

image

These are the log output from Visdom when running the train.py script. So looks like it's able to connect. Any ideas?

image
As shown it can set up a new session at the beginning but then has the "Unable to init server"

FYI I am running docker with the Dockerfile. But I don't think it's related to docker as I can see Visdom is up running and there's connection messages

from gym-city.

smearle avatar smearle commented on August 22, 2024

Strange. Does the code work otherwise?
I think I've been getting this bug too, but simply ignoring it and referring to the "png" files for training/eval reward graphs. Keep me in the loop if you'd like to try hunting down the bug here.

EDIT: actually, I can launch a visdom server and connect to it successfully. However, there is a bug where the graph is reproduced each time it is updated, leaving a bunch of duplicate graphs in visdom. I'm on the "pcgrl_mix" branch (you will need to comment out some imports -- of other external gym environments -- to use it) -- might be slightly different than master in these respects.
My best guess is either this bug is fixed on the pcgrl_mix branch, or, it is a docker thing.

from gym-city.

leckylao avatar leckylao commented on August 22, 2024

No, the trained_models folder is empty.

I am uploading my image built from master which is huge 5.57GB. Then could you have a test? And then I will try the pcgrl_mix branch.

EDIT: image has been uploaded to https://hub.docker.com/repository/docker/leckylao/gym-city 3.67GB. And you can run docker pull leckylao/gym-city:latest to download. Then you can test it with:

docker run leckylao/gym-city:latest python3 -m visdom.server
then
docker ps to get the container name
then
docker exec -ti {cointainer_name} bash
then
python3 train.py --experiment test_0 --algo a2c --model FullyConv --num-process 24 --map-width 16 --render

EDIT: Just tried pcgrl_mix branch but still got the same connection issue

from gym-city.

leckylao avatar leckylao commented on August 22, 2024

I am now running Ubuntu VM and can confirm this issue is docker specific. In docker Visdom server stopped with message INFO:root:Application Started and missing You can navigate to http://localhost:8097. And when I ctrl-c from Visdom in docker it shows You can navigate to http://dfdfaweadsss:8097. So I guess the issue is related to Visdom trying to get hostname from docker. And I reckon adding this to README that due to this running in docker is not supported.

from gym-city.

smearle avatar smearle commented on August 22, 2024

Aha, thank you for getting to the bottom of this docker issue! For now, you're good to simply comment out the import I believe. The import is because I've been toying around with applying the training loop in this repo to the environments in the repo for "PCGRL" (and on this experimental branch): https://github.com/amidos2006/gym-pcgrl/tree/FractalNet
I hope you're able to get to training soon. Keep me in the loop of any further hiccups.

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.