Coder Social home page Coder Social logo

Comments (10)

nadavbh12 avatar nadavbh12 commented on June 22, 2024

The python example is of a random agent.
To run DQN on RLE, checkout this repository.

from retro-learning-environment.

makman7 avatar makman7 commented on June 22, 2024

I wonder if this RLE environment is used to produce the Table 3 in the paper "Playing SNES with RLE" especially for Mortal_Kombat?
If we impose the above mentioned repository to the RLE, should we get the results?

from retro-learning-environment.

nadavbh12 avatar nadavbh12 commented on June 22, 2024

The deep_w_rl repository should be able to reproduce the the results for the first column (DQN).
The results in our paper were achieved by running a Torch based agent which supports DQN, DDQN and D-DQN.
However, there are many implementation for DQN around on GitHub. It should be easy to modify them to use RLE rather than ALE as their interface is nearly identical.

Notice that the results for Mortal Kombat were achieved using random initialization at the beginning of each level.
You can set this by calling SetBool("MK_random_position", True).

from retro-learning-environment.

makman7 avatar makman7 commented on June 22, 2024

Hi @nadavbh12,

I am working on this repository but i got an issue while running this command pip install --user . and here is the screen shot:
screenshot from 2017-01-27 00-27-12

Please guide me where i am going wrong. Thanks

from retro-learning-environment.

nadavbh12 avatar nadavbh12 commented on June 22, 2024

Try removing the CMakeCache.txt file from the project's main directory and re-running the command.
I think this should resolve the issue.

from retro-learning-environment.

makman7 avatar makman7 commented on June 22, 2024

Thanks, I fix this issue, but next when I run this command ./run_nips.py --rom mortal_kombat.sfc --core snes I got error related to core. Here is my rom directory with rom file.
screenshot from 2017-01-27 03-11-20
And Here is my core directory
screenshot from 2017-01-27 03-11-40
And here is the output:
screenshot from 2017-01-27 03-05-47
full output is in this file:
log.txt

from retro-learning-environment.

makman7 avatar makman7 commented on June 22, 2024

Hi, I have solved the above issue. However, there is another problem now. Attached is the screenshot.
error_1

from retro-learning-environment.

nadavbh12 avatar nadavbh12 commented on June 22, 2024

Hey @Noor59007,
It seems that your first issue was due to a python installation commit that I'm working on.
I've edited the dependency script in deep_q_rl so that it will get RLE's previous release where the older setup.py script is present.

Regarding the new issue, I was unable to reproduce it.
Did you modify the files in deep_q_rl?
Could you check the dimensions of the screen_buffer as returned from the interface in ale_experiment.py line 120?

from retro-learning-environment.

makman7 avatar makman7 commented on June 22, 2024

Yeah, there was some path issues for the core file, So, we modified it somehow.
I found out these dimensions. [256, 224]
However, the error is still existing.
error

from retro-learning-environment.

nadavbh12 avatar nadavbh12 commented on June 22, 2024

84x84 is the cropped image size.
It seems that for some reason your image is only 10x84.
Try following the image object with a debugger and see when its size changes.
Since I wasn't able to reproduce this and the image size is as expected, a wild guess would be to check your numpy is updated and working correctly.

If that doesn't work, try running the original atari version of deep_q_rl so we're sure the problem is with my fork rather than your setup.

from retro-learning-environment.

Related Issues (20)

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.