Skip to content

Does BrowserGym supports image_som? #111

Closed

Description

@junleiz

I do not find image_som in the current obs:
obs = {
"chat_messages": copy.deepcopy(self.chat.messages),
"goal": goal_msg, # TODO: redundant with chat messages, to be removed?
"goal_image_urls": goal_image_urls, # TODO: redundant with chat messages, to be removed?
"open_pages_urls": [page.url for page in self.context.pages],
"active_page_index": np.asarray([self.context.pages.index(self.page)]),
"url": self.page.url,
"screenshot": extract_screenshot(self.page),
"dom_object": dom,
"axtree_object": axtree,
"extra_element_properties": extra_properties,
"focused_element_bid": focused_element_bid,
"last_action": self.last_action,
"last_action_error": self.last_action_error,
"elapsed_time": np.asarray([time.time() - self.start_time]),
}
Does BrowerGym supports image som ?

Activity

  1. TLSDC commented on Aug 15, 2024

    @TLSDC
    Contributor

    Hi @leoozy, BGym does have a function to generate the SOM representation.

    def overlay_som(
    screenshot: np.typing.ArrayLike,
    extra_properties: dict,
    fontsize: int = 12,
    linewidth: int = 2,
    tag_margin: int = 2,
    ):

    It is not computed by default to not slow down text only users.
    Hope this helps :)

  2. locked and limited conversation to collaborators on Aug 26, 2024
  3. converted this issue into a discussion #116 on Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions