When i run the customVisionImgClassify.js, there are a lot of issues. But compare this demo with the official demo on [https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/quickstarts/object-detection?pivots=programming-language-javascript](docs Microsoft), some issues solved.
But the train project process still has issues whatever I tried, code showed as below:
let trainingIteration = await trainer.trainProject(sampleProject.id);
When i remove await in let trainingIteration = await trainer.trainProject(sampleProject.id); it throw exceptions:
The exceptions:
Creating project...
Adding images...
Training...
Training started...
Training status: undefined
(node:14840) UnhandledPromiseRejectionWarning: Error: iterationId cannot be null or undefined.
at Serializer.serialize (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:540:19)
at getOperationArgumentValueFromParameterPath (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:4683:24)
at getOperationArgumentValueFromParameter (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:4658:12)
at TrainingAPIClient.ServiceClient.sendOperationRequest (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:4454:45)
at TrainingAPIClient.publishIteration (D:\Technology\web\image_ai\node_modules@azure\cognitiveservices-customvision-training\dist\cognitiveservices-customvision-training.js:3474:25)
at sample (D:\Technology\web\image_ai\customvision\customVisionImgClassify.js:108:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:14840) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:14840) UnhandledPromiseRejectionWarning: Error: Not enough images for training
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
(node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your current
Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)
(node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your current
Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 11)
(node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your current
Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 14)
(node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your current
Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by r block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandltrict (see htted-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 17) (node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your currentf your current Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier. at new RestError (D:\Technology\web\image_ai\node_modules\@azure\ms-rest-js\dist\msRest.node.js:2433:28) at D:\Technology\web\image_ai\node_modules\@azure\ms-rest-js\dist\msRest.node.js:3577:37 at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by r block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandltrict (see htted-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 20)
OS and Version?
Windows 10.
Is there any way to get rid of this to make demo running properly? Please help me with this issue.
When i run the customVisionImgClassify.js, there are a lot of issues. But compare this demo with the official demo on [https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/quickstarts/object-detection?pivots=programming-language-javascript](docs Microsoft), some issues solved.
But the train project process still has issues whatever I tried, code showed as below:
let trainingIteration = await trainer.trainProject(sampleProject.id);When i remove await in
let trainingIteration = await trainer.trainProject(sampleProject.id);it throw exceptions:The exceptions:
Creating project...
Adding images...
Training...
Training started...
Training status: undefined
(node:14840) UnhandledPromiseRejectionWarning: Error: iterationId cannot be null or undefined.
at Serializer.serialize (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:540:19)
at getOperationArgumentValueFromParameterPath (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:4683:24)
at getOperationArgumentValueFromParameter (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:4658:12)
at TrainingAPIClient.ServiceClient.sendOperationRequest (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:4454:45)
at TrainingAPIClient.publishIteration (D:\Technology\web\image_ai\node_modules@azure\cognitiveservices-customvision-training\dist\cognitiveservices-customvision-training.js:3474:25)
at sample (D:\Technology\web\image_ai\customvision\customVisionImgClassify.js:108:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)(node:14840) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:14840) UnhandledPromiseRejectionWarning: Error: Not enough images for training
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)(node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your current
Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)(node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your current
Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 11)(node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your current
Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 14)(node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your current
Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.
at new RestError (D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:2433:28)
at D:\Technology\web\image_ai\node_modules@azure\ms-rest-js\dist\msRest.node.js:3577:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by r block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandltrict(see htted-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 17) (node:14840) UnhandledPromiseRejectionWarning: Error: Requests to the CreateImagesFromData Operation under Custom_Vision_Training_3.3 have exceeded rate limit of your currentf your current Custom_Vision.Training F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier. at new RestError (D:\Technology\web\image_ai\node_modules\@azure\ms-rest-js\dist\msRest.node.js:2433:28) at D:\Technology\web\image_ai\node_modules\@azure\ms-rest-js\dist\msRest.node.js:3577:37 at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:14840) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by r block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandltrict(see htted-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 20)OS and Version?
Is there any way to get rid of this to make demo running properly? Please help me with this issue.