Automatically deploying the newest model
If you are using the production work flow within a project group, you can also turn on auto deploy. When auto deploy is turned on, IBM® Maximo® Visual Inspection automatically deploys a model when it is successfully trained and when it is marked as production.
Overview
IBM Maximo Visual Inspection does the following actions when auto deploy is enabled:
When a model is newly trained:
- The latest trained model is marked untested, and it is automatically deployed.
- If another model marked untested is already deployed, the older deployed model is undeployed.
- The goal of this process is to help people who want to test the latest trained model.
When a model is marked as production:
- The deployed model becomes the current deployed production model.
- Any other deployed production model is undeployed.
- IBM Maximo Visual Inspection finds the most recent trained model that has an untested status and deploys it. If no other trained model is marked as untested, attempted inferences to the latest untested model fail.
When a model is changed from untested to rejected:
When a trained model is marked as rejected, the associated deployed model is undeployed.
When a model is changed from production to rejected:
When a trained model is marked as rejected, the associated deployed model is undeployed. IBM Maximo Visual Inspection finds the most recent trained model with Production status and deploys it. If no other trained model is marked as Production, attempted inferences to the latest Production model fail.
Although auto deploy tracks and deploys the latest model marked with each status, you can manually deploy more models from the project group by using the Models page. However, those additional models are not accessible by using the API shortcuts.
Enabling auto deploy
To enable auto deploy, you need to set two pieces of information by using the API. You can use CURL to set them.
curl -kXPUT -H "x-auth-token: insights-auth-token-value" https://insights-server.your_company.com/visual-insights/projects/{project-UUID} -d '{"enforce_pwf": "true", "auto_deploy":"true"}'
true
string, but the word must be
true
. For example, it does not work if you set the value as
yes
.