:py:mod:`tfds_defect_detection.downloader` ========================================== .. py:module:: tfds_defect_detection.downloader Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 mvtec/index.rst visual_anomalies/index.rst Package Contents ---------------- Classes ~~~~~~~ .. autoapisummary:: tfds_defect_detection.downloader.BaseDownloader tfds_defect_detection.downloader.MvtecDownloader tfds_defect_detection.downloader.VisaDownloader Functions ~~~~~~~~~ .. autoapisummary:: tfds_defect_detection.downloader.download_and_prepare .. py:class:: BaseDownloader(delete_tmp=True) .. py:attribute:: mask_suffix :annotation: = .. py:method:: convert_to_mvtec_style(root: pathlib.Path) .. py:method:: download_and_extract(cache_dir) -> pathlib.Path .. py:class:: MvtecDownloader(delete_tmp=True) Bases: :py:obj:`BaseDownloader` .. py:attribute:: mask_suffix :annotation: = _mask .. py:method:: download_and_extract(cache_dir) -> pathlib.Path .. py:class:: VisaDownloader(delete_tmp=True) Bases: :py:obj:`BaseDownloader` .. py:attribute:: mask_suffix :annotation: = .. py:method:: convert_to_mvtec_style(root: pathlib.Path) .. py:method:: download_and_extract(cache_dir) -> pathlib.Path .. py:function:: download_and_prepare(cache_dir: pathlib.Path, names: Iterable[typing_extensions.Literal[mvtec, visa]], download=True, image_validation=False, delete_tmp=True)