Skip to main content

Utility functions for using AI2-THOR with Google Colab.

Project description


AI2-THOR Colab provides support for running AI2-THOR freely on the cloud using Google Colab. AI2-THOR is a near photo-realistic interactable framework for AI agents.

Templates

To get started, we recommend saving a copy of the AI2-THOR Colab Minimal Starter Template to your drive.

AI2-THOR Colab API Summary

Using Python's packaging manager, ai2thor_colab can be installed with

pip install ai2thor_colab

Start X Server

AI2-THOR requires an X Server to run on a Linux machine. It allows us to open a Unity window where we can render scenes and observe images. Colab runs Linux, but it does not start an X Server by default. Using ai2thor_colab.start_xserver(), we can install all required xserver dependencies and start it up:

import ai2thor_colab
ai2thor_colab.start_xserver()

Show Video

Given a sequence of image frames, we can merge them into a video and play it inside of Colab. For instance, we may RotateRight 10 times, and observe the frames after each action:

from a2thor.controller import Controller
controller = Controller()

frames = [controller.step("RotateRight").frame for _ in range(10)]
ai2thor_colab.show_video(frames, fps=5)

License

AI2-THOR Colab is licensed under Apache 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai2thor_colab-0.0.1.dev14.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

ai2thor_colab-0.0.1.dev14-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file ai2thor_colab-0.0.1.dev14.tar.gz.

File metadata

  • Download URL: ai2thor_colab-0.0.1.dev14.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for ai2thor_colab-0.0.1.dev14.tar.gz
Algorithm Hash digest
SHA256 c58e70da44b19104d18dc2af4ec75f9ff1328abaac4ea3b4315a31b4f2b2c21d
MD5 e133045edabe6a7d7db49381264d1bee
BLAKE2b-256 82d0f1e3c9864247887843bd732dd7e50e72c66519edf61525e17ebbb66bc4e7

See more details on using hashes here.

File details

Details for the file ai2thor_colab-0.0.1.dev14-py3-none-any.whl.

File metadata

  • Download URL: ai2thor_colab-0.0.1.dev14-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for ai2thor_colab-0.0.1.dev14-py3-none-any.whl
Algorithm Hash digest
SHA256 1fac83a9c6f0f116f8511be08dbd175e1d304c9a1ce623004c72fea4a948c9eb
MD5 0f58b610e55eccaadd9639a9fb5458b2
BLAKE2b-256 6737f91080d8764e54bd862b540fdd8663d1ce393f661dbb5757110f727fa236

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page