microsoft / microsoft/OmniParser

Resizing cropped images to 64x64 before processing them with the captioning model results in lower accuracy captions

Open
#290 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
25.4k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

https://github.com/microsoft/OmniParser/blob/5171b092483ab3e74ca50b9357e225f9f3571f18/util/utils.py#L92

Why exactly is this resize required? Was the model fine-tuned on images that were all scaled to 64x64 in the dataset?

The reason this is causing inaccuracies is that the icon detection model will accurately detect things like text input fields (that are longer in width) but if you scale that text input field to 64x64 (a 1:1 ratio), it just looks like a checkbox and that is exactly what the captioning model detects it as, instead of captioning it as an input or text field it thinks it's a checkbox because it got scaled down to look like a square box.

Does the original base model require that specific size of icons? Can we fine-tune on any size images?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at util/utils.py#L92 and trace why cropped images are resized to 64x64 before captioning. Check the model and dataset assumptions about input size and aspect ratio, then compare captions for original and resized crops. Done means the resize requirement and its effect on elongated controls are established, with the issue resolved or the rationale documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.