MCPcopy Create free account
hub / github.com/tensorflow/tfjs / loadObjectDetection

Function loadObjectDetection

tfjs-automl/src/object_detection.ts:105–110  ·  view source on GitHub ↗
(modelUrl: string)

Source from the content-addressed store, hash-verified

103}
104
105export async function loadObjectDetection(modelUrl: string):
106 Promise<ObjectDetectionModel> {
107 const [model, dict] =
108 await Promise.all([loadGraphModel(modelUrl), loadDictionary(modelUrl)]);
109 return new ObjectDetectionModel(model, dict);
110}
111
112function sanitizeOptions(options: ObjectDetectionOptions) {
113 options = options || {} as ObjectDetectionOptions;

Callers

nothing calls this directly

Calls 3

loadGraphModelFunction · 0.90
loadDictionaryFunction · 0.90
allMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…