https://github.com/xingyaoww/alfworld-docker-setup
https://github.com/xingyaoww/alfworld-docker-setup
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xingyaoww/alfworld-docker-setup
- Owner: xingyaoww
- Created: 2022-11-08T02:40:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T03:00:16.000Z (over 2 years ago)
- Last Synced: 2025-02-04T20:12:07.194Z (3 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Update submodule
After clone this repo, run the following to update submodules:
```bash
git submodule init
git submodule update --recursive
```# Environment Setup
Adapted from [ai2thor-docker (commit id: 3d9bfd)](https://github.com/allenai/ai2thor-docker/tree/3d9bfdfbb5caa30fd0c7b35daadea0cb7f05ca94) and [alfworld](https://github.com/alfworld/alfworld).
```bash
# prepare your ssh public key which will be built into the docker container
cat ~/.ssh/yourkey.pub > docker/authorized_keys# 1. Build docker image
python3 docker/docker_build.py# 2. Run docker image
./docker/docker_run.sh
# VNC will be started on DISPLAY=:0 (slower, use for debugging)
# For faster headless rendering, use the Xserver at DISPLAY=:1# 3. Then you can ssh into the container
ssh 127.0.0.1 -p 2222 -i ~/.ssh/yourkey
# and check if thor works
cd alfred-planning
DISPLAY=:1 python3 third_party/alfworld/docker/check_thor.py###############
## (300, 300, 3)
## Everything works!!!
```