roboflow / roboflow-python

The official Roboflow Python package. Manage your datasets, models, and deployments. Roboflow has everything you need to build a computer vision application.
https://docs.roboflow.com/python
Apache License 2.0
272 stars 71 forks source link

BugFix: importing a yolo dataset with a trailing slash ignores annotations #248

Closed tonylampada closed 4 months ago

tonylampada commented 4 months ago

Description

dumb bug:

roboflow import -w <workspaceId> -p <projectId> /path/to/some/yolo/format/dataset/
# uploads only images
roboflow import -w <workspaceId> -p <projectId> /path/to/some/yolo/format/dataset
# uploads images and annotations

This fixes it.

Type of change

Please delete options that are not relevant.

How has this change been tested, please provide a testcase or example of how you tested the change?