Git Product home page Git Product logo

Comments (6)

0x15F9 avatar 0x15F9 commented on September 1, 2024 80

I was also experiencing the same problem and, based on the previous answers, I wrote this short script to be used in colab. I hope someone finds it useful.

! wget http://www.atarimania.com/roms/Roms.rar
! mkdir /content/ROM/
! unrar e /content/Roms.rar /content/ROM/
! python -m atari_py.import_roms /content/ROM/

from atari-py.

dusty-keyboard avatar dusty-keyboard commented on September 1, 2024 16

Found a fix. Go to http://www.atarimania.com/rom_collection_archive_atari_2600_roms.html and download the .rar file with the roms. Extract that .rar file on your local machine. There are 2 zip files in the extracted folder. Then upload those 2 zip files to you colab project.. inside your colab notebook run the following
from google.colab import files
uploaded = files.upload()

This will give you a button to browse your local machine. Upload those 2 zip files.

Then in you colab notebook run the following
!python -m atari_py.import_roms .

Don't forget the . at the end. Then you can run atari gym.

from atari-py.

ageron avatar ageron commented on September 1, 2024 15

It's now possible to install Gym along with the ROMs like this:

pip install gym[atari,accept-rom-license]

This installs the autorom package, which provides the AutoROM command, and runs this command with the --accept-rom-license option. AutoROM downloads the ROMs and puts them in the right folders, so everything just works again, but now if Atari decides to sue someone for using their copyrighted ROMs, it will be you, not OpenAI (I'm not a lawyer, though!). 😆

from atari-py.

berni-lehner avatar berni-lehner commented on September 1, 2024 5

It seems this is a general issue with Colab+gym, I fail to create the pong environment, with the same code that worked flawlessly on Saturday.

from atari-py.

alirezakazemipour avatar alirezakazemipour commented on September 1, 2024 2

@0x15F9
You have no idea how many times I have come back to and used your solution! ❤️
Quite a lifesaver! 😄
Thanks a lot.

from atari-py.

alghenab avatar alghenab commented on September 1, 2024

Just copy and Run.

!wget http://www.atarimania.com/roms/Roms.rar
!unrar x /content/Roms.rar /content
!python -m atari_py.import_roms .

from atari-py.

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.