Ultralytics Asset URL Update (#14345)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
470b120a1b
commit
2d332a1cb1
35 changed files with 55 additions and 53 deletions
|
|
@ -90,7 +90,7 @@ def test_predict_img(model_name):
|
|||
batch = [
|
||||
str(SOURCE), # filename
|
||||
Path(SOURCE), # Path
|
||||
"https://github.com/ultralytics/yolov5/releases/download/v1.0/zidane.jpg" if ONLINE else SOURCE, # URI
|
||||
"https://github.com/ultralytics/assets/releases/download/v0.0.0/zidane.jpg" if ONLINE else SOURCE, # URI
|
||||
cv2.imread(str(SOURCE)), # OpenCV
|
||||
Image.open(SOURCE), # PIL
|
||||
np.zeros((320, 640, 3), dtype=np.uint8), # numpy
|
||||
|
|
@ -149,7 +149,7 @@ def test_track_stream():
|
|||
|
||||
Note imgsz=160 required for tracking for higher confidence and better matches.
|
||||
"""
|
||||
video_url = "https://github.com/ultralytics/yolov5/releases/download/v1.0/decelera_portrait_min.mov"
|
||||
video_url = "https://github.com/ultralytics/assets/releases/download/v0.0.0/decelera_portrait_min.mov"
|
||||
model = YOLO(MODEL)
|
||||
model.track(video_url, imgsz=160, tracker="bytetrack.yaml")
|
||||
model.track(video_url, imgsz=160, tracker="botsort.yaml", save_frames=True) # test frame saving also
|
||||
|
|
@ -290,7 +290,7 @@ def test_data_converter():
|
|||
from ultralytics.data.converter import coco80_to_coco91_class, convert_coco
|
||||
|
||||
file = "instances_val2017.json"
|
||||
download(f"https://github.com/ultralytics/yolov5/releases/download/v1.0/{file}", dir=TMP)
|
||||
download(f"https://github.com/ultralytics/assets/releases/download/v0.0.0/{file}", dir=TMP)
|
||||
convert_coco(labels_dir=TMP, save_dir=TMP / "yolo_labels", use_segments=True, use_keypoints=False, cls91to80=True)
|
||||
coco80_to_coco91_class()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue