From 7843d955a3da83b6079cabc90219accaae1a964b Mon Sep 17 00:00:00 2001 From: julipode Date: Mon, 18 Dec 2023 17:04:58 -0500 Subject: [PATCH] Update object-detector.md URLs to json files will not work, and will end up using Coco as a fallback. --- docs/reference/object-detector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/object-detector.md b/docs/reference/object-detector.md index 1f0b46f99..747a5d6fa 100644 --- a/docs/reference/object-detector.md +++ b/docs/reference/object-detector.md @@ -41,7 +41,7 @@ const objectDetector = ml5.objectDetector(modelNameOrUrl, ?options, ?callback); ``` #### Parameters -* **modelNameOrUrl**: A String value of a valid model OR a url to a `model.json` that contains a pre-trained model. Models available are: ['cocossd'](https://github.com/tensorflow/tfjs-models/tree/master/coco-ssd), ['yolo'](https://pjreddie.com/darknet/yolo/) +* **modelNameOrUrl**: A String value of a valid model. Models available are: ['cocossd'](https://github.com/tensorflow/tfjs-models/tree/master/coco-ssd), ['yolo'](https://pjreddie.com/darknet/yolo/) * **options**: Optional. An object describing a model accuracy and performance. For YOLO this are: `{ filterBoxesThreshold: 0.01, IOUThreshold: 0.4, classProbThreshold: 0.4 }` * **callback**: Optional. A function to run once the model has been loaded. If no callback is provided, it will return a promise that will be resolved once the model has loaded.