Move Explorer tests to scheduled CI (#8305)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2024-02-19 17:25:26 +01:00 committed by GitHub
parent de01212465
commit d8b8b71866
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,11 +1,13 @@
# Ultralytics YOLO 🚀, AGPL-3.0 license # Ultralytics YOLO 🚀, AGPL-3.0 license
import PIL import PIL
import pytest
from ultralytics import Explorer from ultralytics import Explorer
from ultralytics.utils import ASSETS from ultralytics.utils import ASSETS
@pytest.mark.slow
def test_similarity(): def test_similarity():
"""Test similarity calculations and SQL queries for correctness and response length.""" """Test similarity calculations and SQL queries for correctness and response length."""
exp = Explorer() exp = Explorer()
@ -22,6 +24,7 @@ def test_similarity():
assert len(sql) > 0 assert len(sql) > 0
@pytest.mark.slow
def test_det(): def test_det():
"""Test detection functionalities and ensure the embedding table has bounding boxes.""" """Test detection functionalities and ensure the embedding table has bounding boxes."""
exp = Explorer(data="coco8.yaml", model="yolov8n.pt") exp = Explorer(data="coco8.yaml", model="yolov8n.pt")
@ -34,6 +37,7 @@ def test_det():
assert isinstance(similar, PIL.Image.Image) assert isinstance(similar, PIL.Image.Image)
@pytest.mark.slow
def test_seg(): def test_seg():
"""Test segmentation functionalities and verify the embedding table includes masks.""" """Test segmentation functionalities and verify the embedding table includes masks."""
exp = Explorer(data="coco8-seg.yaml", model="yolov8n-seg.pt") exp = Explorer(data="coco8-seg.yaml", model="yolov8n-seg.pt")
@ -45,6 +49,7 @@ def test_seg():
assert isinstance(similar, PIL.Image.Image) assert isinstance(similar, PIL.Image.Image)
@pytest.mark.slow
def test_pose(): def test_pose():
"""Test pose estimation functionalities and check the embedding table for keypoints.""" """Test pose estimation functionalities and check the embedding table for keypoints."""
exp = Explorer(data="coco8-pose.yaml", model="yolov8n-pose.pt") exp = Explorer(data="coco8-pose.yaml", model="yolov8n-pose.pt")