Skip to content

Commit

Permalink
moving cupboard, adding table, reverting to pillow and shower,
Browse files Browse the repository at this point in the history
  • Loading branch information
naokiyokoyamabd committed Sep 2, 2023
1 parent 281a7e2 commit 102a3e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions zsos/policy/base_objectnav_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ def _get_object_detections(self, img: np.ndarray) -> ObjectDetections:
if self._target_object in COCO_CLASSES:
detections = self._coco_object_detector.predict(img)
self._det_conf_threshold = 0.8
else:
detections = self._object_detector.predict(img)
detections.phrases = [
p.replace("cupboard", "cabinet") for p in detections.phrases
]
else:
detections = self._object_detector.predict(img)
if self._target_object == "table" and detections.num_detections == 0:
detections = self._coco_object_detector.predict(img)
detections.phrases = [
Expand Down
4 changes: 2 additions & 2 deletions zsos/policy/habitat_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"table",
"picture",
"cabinet",
"cushion",
"pillow", # "cushion",
"couch", # "sofa",
"bed",
"drawers", # "chest of drawers",
Expand All @@ -39,7 +39,7 @@
"stool",
"towel",
"tv", # "tv monitor",
"bath", # "shower",
"shower",
"bathtub",
"counter",
"fireplace",
Expand Down
1 change: 1 addition & 0 deletions zsos/vlm/classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ gym equipment
seating
clothes
cupboard
table

0 comments on commit 102a3e5

Please sign in to comment.