Updated Using a Custom TensorFlow Model with Blocks (markdown)

FTC Engineering
2020-10-28 14:08:55 -04:00
parent cf0062fed8
commit 428621421c

@ -37,3 +37,12 @@ Click on the "Blocks" tab at the top of the screen to navigate to the Blocks Pro
The new op mode should appear in edit mode in your browser. By default, the sample op mode assumes that you are using the smartphone camera with your robot controller. If you are using a webcam, disable the phone-specific initialization block and enable the webcam-specific block. The new op mode should appear in edit mode in your browser. By default, the sample op mode assumes that you are using the smartphone camera with your robot controller. If you are using a webcam, disable the phone-specific initialization block and enable the webcam-specific block.
<p align="center">[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/initialize.png]]<br/>Use the appropriate initialization block for the type of camera used on your robot.<p> <p align="center">[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/initialize.png]]<br/>Use the appropriate initialization block for the type of camera used on your robot.<p>
### Loading the Custom Model
Look in the op mode for the programming block "TensorFlowObjectDetectionCustomModel.setModelFromFile" and change the "tfliteModelFilename" from its default value of "WiffleBalls.tflite" to the name of the .tflite file that you uploaded to your robot controller.
<p align="center">[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/skystoneTflite.png]]<br/>Change the tflitemodelFilename to match the name of your uploaded file.<p>