Skip to content

Commit

Permalink
🛠 Fix broken mvtec link, and split url to fit to 120 (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
samet-akcay committed Apr 22, 2022
1 parent cab7aa2 commit b2dfdd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions anomalib/data/mvtec.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,13 @@ def prepare_data(self) -> None:
logger.info("Found the dataset.")
else:
self.root.mkdir(parents=True, exist_ok=True)
dataset_name = "mvtec_anomaly_detection.tar.xz"

logger.info("Downloading the Mvtec AD dataset.")
url = "https://www.mydrive.ch/shares/38536/3830184030e49fe74747669442f0f282/download/420938113-1629952094"
dataset_name = "mvtec_anomaly_detection.tar.xz"
with DownloadProgressBar(unit="B", unit_scale=True, miniters=1, desc="MVTec AD") as progress_bar:
urlretrieve(
url=f"ftp://guest:GU.205dldo@ftp.softronics.ch/mvtec_anomaly_detection/{dataset_name}",
url=f"{url}/{dataset_name}",
filename=self.root / dataset_name,
reporthook=progress_bar.update_to,
)
Expand Down

0 comments on commit b2dfdd2

Please sign in to comment.