skimage2.data.download_all#
- skimage2.data.download_all(directory=None)[source]#
Download all datasets for use with scikit-image offline.
Scikit-image datasets are no longer shipped with the library by default. This allows us to use higher quality datasets, while keeping the library download size small.
This function requires the installation of an optional dependency, pooch, to download the full dataset. Follow installation instruction found at
Call this function to download all sample images making them available offline on your machine.
- Parameters:
- directorystr or Path, optional
The directory where the dataset should be stored.
- Raises:
- ModuleNotFoundError:
If pooch is not install, this error will be raised.
Notes
scikit-image will only search for images stored in the default directory. Only specify the directory if you wish to download the images to your own folder for a particular reason. You can access the location of the default data directory by inspecting the variable
_skimage2.data.data_dir.