Python API upload fails silently if targeted project does not exist but was before
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di roboflow/roboflow-python
-
RLE segmentation mask visible in dataset thumbnail, but invisible in annotation preview/editor Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
roboflow/roboflow-python#505 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
roboflow/roboflow-python#433 ·
-
Dataset Download Stuck Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
roboflow/roboflow-python#429 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
roboflow/roboflow-python#427 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
roboflow/roboflow-python#426 ·
Tutte le issue di roboflow/roboflow-python
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
canonical/paas-charm#368 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
addition to tracking list Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
StevenBlack/hosts#3256 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
qualcomm/qai-appbuilder#275 ·