(modelUrl: string)
| 103 | } |
| 104 | |
| 105 | export 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 | |
| 112 | function sanitizeOptions(options: ObjectDetectionOptions) { |
| 113 | options = options || {} as ObjectDetectionOptions; |
nothing calls this directly
no test coverage detected
searching dependent graphs…