Skip to content

Commit

Permalink
renamed viz tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed May 8, 2024
1 parent 8fe03b4 commit e9c47dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vision_agent/tools/tools_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def save_image(image: np.ndarray) -> str:
return f.name


def display_bounding_boxes(
def overlay_bounding_boxes(
image: np.ndarray, bboxes: List[Dict[str, Any]]
) -> np.ndarray:
"""'display_bounding_boxes' is a utility function that displays bounding boxes on
Expand Down Expand Up @@ -326,7 +326,7 @@ def display_bounding_boxes(
return np.array(pil_image.convert("RGB"))


def display_segmentation_masks(
def overlay_segmentation_masks(
image: np.ndarray, masks: List[Dict[str, Any]]
) -> np.ndarray:
"""'display_segmentation_masks' is a utility function that displays segmentation
Expand Down Expand Up @@ -418,12 +418,12 @@ def get_tools_df(funcs: List[Callable[..., Any]]) -> pd.DataFrame:
ocr,
load_image,
save_image,
display_bounding_boxes,
display_segmentation_masks,
overlay_bounding_boxes,
overlay_segmentation_masks,
]
TOOLS_DF = get_tools_df(TOOLS) # type: ignore
TOOL_DESCRIPTIONS = get_tool_descriptions(TOOLS) # type: ignore
TOOL_DOCSTRING = get_tool_documentation(TOOLS) # type: ignore
UTILITIES_DOCSTRING = get_tool_documentation(
[load_image, save_image, display_bounding_boxes]
[load_image, save_image, overlay_bounding_boxes]
)

0 comments on commit e9c47dd

Please sign in to comment.