Icon Filter
The icon control filter is a method to filter the controls based on the similarity between the control icon image and the agent's plan using the image/text embeddings.
Configuration
To activate the icon control filtering, you need to add ICON
to the CONTROL_FILTER
list in the config_dev.yaml
file. Below is the detailed icon control filter configuration in the config_dev.yaml
file:
CONTROL_FILTER
: A list of filtering methods that you want to apply to the controls. To activate the icon control filtering, addICON
to the list.CONTROL_FILTER_TOP_K_ICON
: The number of controls to keep after filtering.CONTROL_FILTER_MODEL_ICON_NAME
: The control filter model name for icon similarity. By default, it is set to "clip-ViT-B-32".
Reference
Bases: BasicControlFilter
A class that represents a icon model for control filtering.
control_filter(control_dicts, cropped_icons_dict, plans, top_k)
Filters control items based on their scores and returns the top-k items.
Parameters: |
|
---|
Returns: |
|
---|
Source code in automator/ui_control/control_filter.py
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 |
|
control_filter_score(control_icon, plans)
Calculates the score of a control icon based on its similarity to the given keywords.
Parameters: |
|
---|
Returns: |
|
---|
Source code in automator/ui_control/control_filter.py
240 241 242 243 244 245 246 247 248 249 250 |
|