search_all() inconsistency issues

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

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.

Dominant language
Python
Stars
642
Forks
146
Avg merge
1d 10h
Merged PRs (30d)
13

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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.

More from roboflow/roboflow-python

All issues in roboflow/roboflow-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.