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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ai2thor_colab-0.0.1.dev11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4351102766b2bd57adce8d892a1297ab78e90dd2e6619b4044fb965415cd4527 |
|
MD5 | 09471f6e1e81de29a6cfe873bed199ce |
|
BLAKE2b-256 | 100e3e18f1f5b90e61f09b5d9418839674e5ee6eb8633f83c4f9658581225397 |
Hashes for ai2thor_colab-0.0.1.dev11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85170c51be2ede96f64e58d3cbec71a4d4e533f92986f4a6fec319d59190b8bb |
|
MD5 | 74c03ff9e10726b40e5cfeaa42fa3e76 |
|
BLAKE2b-256 | 92c3d9d9b2b1d89d22454bc5055366e7c08b4fc4d9e96896ecb48dcb5d1957d3 |