From 428621421cb2b43f32e4f1a140f4491e9c14b496 Mon Sep 17 00:00:00 2001 From: FTC Engineering Date: Wed, 28 Oct 2020 14:08:55 -0400 Subject: [PATCH] Updated Using a Custom TensorFlow Model with Blocks (markdown) --- Using-a-Custom-TensorFlow-Model-with-Blocks.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Using-a-Custom-TensorFlow-Model-with-Blocks.md b/Using-a-Custom-TensorFlow-Model-with-Blocks.md index 2f81c42..e9581ae 100644 --- a/Using-a-Custom-TensorFlow-Model-with-Blocks.md +++ b/Using-a-Custom-TensorFlow-Model-with-Blocks.md @@ -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.

[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/initialize.png]]
Use the appropriate initialization block for the type of camera used on your robot.

+ +### 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. + +

[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/skystoneTflite.png]]
Change the tflitemodelFilename to match the name of your uploaded file.

+ + + +