Open vedmak3 opened 2 years ago
The output message is similar to the issue https://github.com/zldrobit/tfjs-yolov5-example/issues/7 and plz have a look at https://github.com/zldrobit/tfjs-yolov5-example/issues/7#issuecomment-981439940. After examining, a modification in src/index.js is found, and changing the const variable weights
back by
const weights = '/web_model/model.json';
make the project work correctly.
http.js:209 Uncaught (in promise) Error: Failed to parse model JSON of response from ./best_web_model/model.json. Please make sure the server is serving valid JSON for this request. at HTTPRequest._callee2$ (http.js:209) at tryCatch (runtime.js:62) at Generator.invoke [as _invoke] (runtime.js:288) at Generator.prototype. [as throw] (runtime.js:114)
at asyncGeneratorStep (asyncToGenerator.js:3)
at _throw (asyncToGenerator.js:29)