mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00
Move Explorer tests to scheduled CI (#8305)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
de01212465
commit
d8b8b71866
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user