Skip to content

Commit 1445b52

Browse files
authored
Merge pull request #24 from roboflow/fix/overwrite-false
Bugfix: no files downloaded when overwrite=False
2 parents d938cbc + de92239 commit 1445b52

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

rf100vl/dataset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def __repr__(self):
2323
return f"RF100VLDataset(name={self.name}, category={self.category})"
2424

2525
def download(self, path: str, model_format: str = "coco", overwrite: bool = True):
26-
os.makedirs(path, exist_ok=True)
2726
versions: List[Version] = self.rf_project.versions()
2827
latest_version: Version = max(versions, key=lambda v: v.id)
2928
dataset =latest_version.download(
@@ -67,7 +66,7 @@ def get_clean_ann_data(self, data_ann):
6766

6867
# confirm if category 0 is none
6968
if data_ann["categories"][0]["supercategory"] != "none":
70-
return
69+
return data_ann
7170

7271
new_data_ann["categories"] = [
7372
{

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="rf100vl",
13-
version="1.1.0",
13+
version="1.1.1",
1414
description="RF100-VL Dataset Interface",
1515
author="Roboflow, Inc.",
1616
author_email="peter@roboflow.com",

0 commit comments

Comments
 (0)