Remove pandas from exports table (#16371)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
e24a6f3b05
commit
5024bcac9d
3 changed files with 6 additions and 8 deletions
|
|
@ -95,9 +95,7 @@ from ultralytics.utils.torch_utils import TORCH_1_13, get_latest_opset, select_d
|
|||
|
||||
|
||||
def export_formats():
|
||||
"""YOLOv8 export formats."""
|
||||
import pandas # scope for faster 'import ultralytics'
|
||||
|
||||
"""Ultralytics YOLO export formats."""
|
||||
x = [
|
||||
["PyTorch", "-", ".pt", True, True],
|
||||
["TorchScript", "torchscript", ".torchscript", True, True],
|
||||
|
|
@ -113,7 +111,7 @@ def export_formats():
|
|||
["PaddlePaddle", "paddle", "_paddle_model", True, True],
|
||||
["NCNN", "ncnn", "_ncnn_model", True, True],
|
||||
]
|
||||
return pandas.DataFrame(x, columns=["Format", "Argument", "Suffix", "CPU", "GPU"])
|
||||
return dict(zip(["Format", "Argument", "Suffix", "CPU", "GPU"], zip(*x)))
|
||||
|
||||
|
||||
def gd_outputs(gd):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue