deepcell_types.utils.download_training_data#
- deepcell_types.utils.download_training_data(*, extract=False)#
Download the public training-data corpus for deepcell-types (v1.1).
The compressed archive is downloaded to
$HOME/.deepcell/data. The asset is pinned to a single released version; older versions are not available through this helper.Note that the downloaded asset is a
.zipand must be extracted before the containedtissuenet-*.zarrarchive can be used aspredict(zarr_path=...)/DEEPCELL_TYPES_ZARR_PATH. Passextract=Trueto unpack it (viaextract_archive(), which rejects path-traversal members) and receive the extraction directory.- Parameters:
- extractbool, default=False
If
True, extract the downloaded.zipnext to itself and return the extraction directory instead of the.zippath.
- Returns:
- pathlib.Path
Local path to the downloaded
.zip(or, whenextract=True, the directory it was extracted into).