Upload a Model
On the DATA tab in the Viam app, navigate to the Models subtab.
To add a new model:
- Specify a Name for the model.
- Add a
.tflite
model file. - Add a
.txt
label file. - Click CREATE MODEL.
The model now starts training and you can follow its process in the Training section of the page.
Once the model has finished training, it becomes visible in the Models section of the page.
Upload a new version of a model
If you deploy a model to a robot, Viam automatically assumes that this is the latest
version of the model and that you would always like to deploy the latest
version of the model to the robot.
If you upload a new version of that model, Viam will automatically deploy the new version to the robot and replace the old version.
If you do not want Viam to automatically deploy the latest
version of the model, you can change packages
configuration in the Raw JSON robot configuration.
You can get the version number from a specific model version by clicking on COPY on the model on the model page. The model package config looks like this:
{"package":"<model_id>/allblack","version":"1234567891011","name":"<model_name>"}
Next Steps
To deploy your model to your robot, see deploy model.
Have questions, or want to meet other people working on robots? Join our Community Discord.
Was this page helpful?
Glad to hear it! If there is anything we could be doing better, please create an issue.
We're sorry about that. If you'd like to talk to us for help, please join the Community Discord. To ensure we know what's wrong with this page, you can also open an issue.