mirror of
https://github.com/ultralytics/ultralytics.git
synced 2025-09-15 15:48:41 +08:00
Revert "Re-enable TensorRT export in GPU tests" (#22078)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
a7a56595f8
commit
1aa3688613
@ -150,9 +150,10 @@ Note: This works using LLMs under the hood so the results are probabilistic and
|
|||||||
!!! example "Ask AI"
|
!!! example "Ask AI"
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from ultralytics import Explorer
|
|
||||||
from ultralytics.data.explorer import plot_query_result
|
from ultralytics.data.explorer import plot_query_result
|
||||||
|
|
||||||
|
from ultralytics import Explorer
|
||||||
|
|
||||||
# create an Explorer object
|
# create an Explorer object
|
||||||
exp = Explorer(data="coco128.yaml", model="yolo11n.pt")
|
exp = Explorer(data="coco128.yaml", model="yolo11n.pt")
|
||||||
exp.create_embeddings_table()
|
exp.create_embeddings_table()
|
||||||
|
|||||||
@ -116,7 +116,6 @@ Image.fromarray(plt)
|
|||||||
```python
|
```python
|
||||||
# plot
|
# plot
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from ultralytics.data.explorer import plot_query_result
|
from ultralytics.data.explorer import plot_query_result
|
||||||
|
|
||||||
plt = plot_query_result(exp.ask_ai("show me 10 images containing exactly 2 persons"))
|
plt = plot_query_result(exp.ask_ai("show me 10 images containing exactly 2 persons"))
|
||||||
|
|||||||
@ -68,7 +68,7 @@ def test_export_onnx_matrix(task, dynamic, int8, half, batch, simplify, nms):
|
|||||||
half=half,
|
half=half,
|
||||||
batch=batch,
|
batch=batch,
|
||||||
simplify=simplify,
|
simplify=simplify,
|
||||||
nms=nms,
|
nms=nms and task != "obb", # WARNING: Failing NMS with OBB
|
||||||
device=DEVICES[0],
|
device=DEVICES[0],
|
||||||
)
|
)
|
||||||
YOLO(file)([SOURCE] * batch, imgsz=64 if dynamic else 32, device=DEVICES[0]) # exported model inference
|
YOLO(file)([SOURCE] * batch, imgsz=64 if dynamic else 32, device=DEVICES[0]) # exported model inference
|
||||||
@ -76,6 +76,7 @@ def test_export_onnx_matrix(task, dynamic, int8, half, batch, simplify, nms):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.slow
|
@pytest.mark.slow
|
||||||
|
@pytest.mark.skipif(True, reason="WARNING: Failing TensorRT export tests")
|
||||||
@pytest.mark.skipif(not DEVICES, reason="No CUDA devices available")
|
@pytest.mark.skipif(not DEVICES, reason="No CUDA devices available")
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"task, dynamic, int8, half, batch",
|
"task, dynamic, int8, half, batch",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user