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
311 stars 77 forks source link

Change `download()` to not overwrite files by default #213

Closed capjamesg closed 10 months ago

capjamesg commented 10 months ago

Description

This PR changes the download() method to set the overwrite flag to False by default. This will ensure that a dataset is not re-downloaded every time the download() method is run.

This addresses #108.

Type of change

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

Run the following snippet twice:

!pip install roboflow

from roboflow import Roboflow
rf = Roboflow(api_key="")
project = rf.workspace("capjamesg").project("streamlit-logo-detection")
dataset = project.version(1).download("coco")

When you run the code for the first time, a Downloading Dataset Version Zip in message should appear as the dataset is downloaded. On the second run, Downloading Dataset Version Zip in should not appear.

Any specific deployment considerations

N/A

Docs

N/A