roboflow / roboflow/roboflow-python

search_all() inconsistency issues

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

Nobody has claimed this yet.

Dominant language
Python
Stars
629
Forks
140
Avg merge
2d 2h
Merged PRs (30d)
5

Description

The Roboflow API is returning inconsistency results. After uploading a batch of images to a project, I found 9 images were missing. I wanted to verify which images were missing, and made use of search_all(). However, this function returns multiple duplicated images that I cannot find in the GUI. I thought it could be a timing issue from the API request and tried different methods:

images = []
for page in project.search_all(fields=["id", "name"]):
    images.extend(page)
images = []
for page in project.search_all(fields=["id", "name"]):
    images.extend(page)
    time.sleep(1)

Every time I ran either option, I got different set of images with different subset of duplicates.

Contributor guide

Open the contributing guide

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 by reproducing the reported behavior with project.search_all(fields=["id", "name"]) after uploading a batch of images. Compare the returned IDs and names across repeated runs, including the one-second delay, and against the images shown in the GUI. Done means the inconsistent or duplicated results are explained and the search_all behavior is corrected or clearly scoped.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.