roboflow / roboflow/roboflow-python
Python API upload fails silently if targeted project does not exist but was before
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 629
- Forks
- 140
- Ø Merge
- 2 T. 2 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Unterschied zwischen der Verwendung von project.upload aus dem Skript und der zeilenweisen Verwendung zu reproduzieren. Untersuche anschließend den Upload-Pfad der Python API und das Ergebnis von roboflow project get CLI. Es wird keine Quelldatei oder kein Test genannt; abgeschlossen ist die Aufgabe, wenn Uploads aus dem Skript im GUI-Bereich annotate �� Unassigned erscheinen und die Anzahl der nicht annotierten Elemente in der CLI nach dem Löschen konsistent ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100