Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Python API upload fails silently if targeted project does not exist but was before

Aperta
#302 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api

Direzione di ricerca

Inizia riproducendo la differenza tra l’uso di project.upload dallo script e l’uso riga per riga, quindi esamina il percorso di upload della Python API e il risultato di roboflow project get CLI. Non sono indicati file sorgente o test; il lavoro è completato quando gli upload dallo script compaiono nel pannello annotate �� Unassigned della GUI e il conteggio degli elementi non annotati della CLI è coerente dopo l’eliminazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

Strange and buggy behavior with Python API when uploading images.

Steps to reproduce

I use Roboflow Python API to upload batches of images to be annotated.

I wrote a script that creates Roboflow client and uploads images, here's a simplified version:

import roboflow

IMAGE_PATH = "/path/to/images"
BATCH_NAME = "batch_name"

rf = roboflow.
ws = rf.workspace("my-workspace")
project = ws.project("my-project")

project.upload(image_path=IMAGE_PATH, batch_name=BATCH_NAME)

Logs show that in connects to workspace, finds the project and says my images are uploaded.

BUT, when I check the GUI I have no images in the annotate > Unassigned panel. More, using the CLI to check with roboflow project get my-project -w my-workspace there's nothing under "project":"unannotated"

Where it is very surprising is that if I open a python terminal (sourced with the same env !) and write line-by-line the preceeding code ... IT WORKS !!! Images appear instantly in annotate > Unassigned panel !

Bonus observation: When unannotated images are deleted from the GUI, the unannotated counter in the CLI is not reset...

Expected Behavior

When running my script images should appear in the GUI like when running line-by-line python code.

Version

1.1.37

Lingua principale
Python
Stelle
629
Fork
140
Merge medio
2g 2h
PR unite (30g)
5

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di roboflow/roboflow-python

Tutte le issue di roboflow/roboflow-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.