Ultralytics Asset URL Update (#13181)

Refactor code for speed and clarity
This commit is contained in:
Glenn Jocher authored and GitHub committed 2024-07-10 20:47:16 +02:00
1 parent ff06328498
commit 150a1a318d
13 files changed
+29 -29

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ def train(opt, device):
if str(data) == "imagenet":
subprocess.run(["bash", str(ROOT / "data/scripts/get_imagenet.sh")], shell=True, check=True)
else:
url = f"https://github.com/ultralytics/yolov5/releases/download/v1.0/{data}.zip"
url = f"https://github.com/ultralytics/assets/releases/download/v0.0.0/{data}.zip"
download(url, dir=data_dir.parent)
s = f"Dataset download success ✅ ({time.time() - t:.1f}s), saved to {colorstr('bold', data_dir)}\n"
LOGGER.info(s)