Skip to content

Commit

Permalink
Using an abs path and updating the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucaweihs committed Aug 5, 2024
1 parent c4af594 commit 87d855f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ You can use the following command to generate a new environment.
```
python holodeck/main.py --query "a living room" --openai_api_key <OPENAI_API_KEY>
```
Our system uses `gpt-4-1106-preview`, **so please ensure you have access to it.**
Our system uses `gpt-4o-2024-05-13`, **so please ensure you have access to it.**

**Note:** To yield better layouts, use `DFS` as the solver. If you pull the repo before `12/28/2023`, you must set the [argument](https://github.com/allenai/Holodeck/blob/386b0a868def29175436dc3b1ed85b6309eb3cad/main.py#L78) `--use_milp` to `False` to use `DFS`.

Expand Down
6 changes: 4 additions & 2 deletions ai2holodeck/generation/holodeck.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
OBJATHOR_ANNOTATIONS_PATH,
HOLODECK_THOR_FEATURES_DIR,
HOLODECK_THOR_ANNOTATIONS_PATH,
LLM_MODEL_NAME,
LLM_MODEL_NAME, ABS_PATH_OF_HOLODECK,
)
from ai2holodeck.generation.ceiling_objects import CeilingObjectGenerator
from ai2holodeck.generation.doors import DoorGenerator
Expand Down Expand Up @@ -137,7 +137,9 @@ def __init__(
self.additional_requirements_ceiling = "N/A"

def get_empty_scene(self):
return compress_json.load("generation/empty_house.json")
return compress_json.load(
os.path.join(ABS_PATH_OF_HOLODECK, "generation/empty_house.json")
)

def empty_house(self, scene):
scene["rooms"] = []
Expand Down

0 comments on commit 87d855f

Please sign in to comment.