-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🛠 Fix broken mvtec link, and split url to fit to 120 (#264)
- Loading branch information
1 parent
cab7aa2
commit b2dfdd2
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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:[email protected]/mvtec_anomaly_detection/{dataset_name}", | ||
url=f"{url}/{dataset_name}", | ||
filename=self.root / dataset_name, | ||
reporthook=progress_bar.update_to, | ||
) | ||
|