Python API upload fails silently if targeted project does not exist but was before
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự khác biệt giữa việc sử dụng project.upload từ script và sử dụng theo từng dòng, sau đó kiểm tra đường dẫn upload của Python API và kết quả của roboflow project get CLI. Không có tệp mã nguồn hoặc bài kiểm thử nào được nêu; được xem là hoàn tất khi các bản upload từ script xuất hiện trong bảng annotate �� Unassigned của GUI và số lượng chưa gắn nhãn của CLI nhất quán sau khi xóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 629
- Fork
- 140
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 5
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của roboflow/roboflow-python
-
RLE segmentation mask visible in dataset thumbnail, but invisible in annotation preview/editor Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
roboflow/roboflow-python#505 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
roboflow/roboflow-python#433 ·
-
Dataset Download Stuck Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
roboflow/roboflow-python#429 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
roboflow/roboflow-python#427 · 1 bình luận ·
-
Inability to upload raw bytes Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
roboflow/roboflow-python#426 ·
Tất cả issue của roboflow/roboflow-python
Issue tương tự
-
essnmx good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
[Feature] 奇物选择添加优先级 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
syfoud/Simulated_Scepter#174 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Giskard-AI/giskard-oss#2840 · 1 bình luận ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Đang mởarea: repo bug perceived difficulty: 2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yeti-platform/yeti#1380 ·