Add TorchScript Docs Integrations Page (#8501)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Abirami Vina 2024-03-01 04:55:31 +05:30 committed by GitHub
parent f8e681c2be
commit 1db8e912a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 146 additions and 6 deletions

View file

@ -48,6 +48,7 @@ TensorFlow.js:
$ ln -s ../../yolov5/yolov8n_web_model public/yolov8n_web_model
$ npm start
"""
import json
import os
import shutil
@ -1079,9 +1080,9 @@ class Exporter:
model = ct.models.MLModel(pipeline.spec, weights_dir=weights_dir)
model.input_description["image"] = "Input image"
model.input_description["iouThreshold"] = f"(optional) IOU threshold override (default: {nms.iouThreshold})"
model.input_description[
"confidenceThreshold"
] = f"(optional) Confidence threshold override (default: {nms.confidenceThreshold})"
model.input_description["confidenceThreshold"] = (
f"(optional) Confidence threshold override (default: {nms.confidenceThreshold})"
)
model.output_description["confidence"] = 'Boxes × Class confidence (see user-defined metadata "classes")'
model.output_description["coordinates"] = "Boxes × [x, y, width, height] (relative to image size)"
LOGGER.info(f"{prefix} pipeline success")