From a3f75ee599b8b782b16018e9ce7d967bdc49f0ac Mon Sep 17 00:00:00 2001 From: FTC Engineering Date: Wed, 28 Oct 2020 14:25:43 -0400 Subject: [PATCH] Updated Using a Custom TensorFlow Model with Blocks (markdown) --- Using-a-Custom-TensorFlow-Model-with-Blocks.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Using-a-Custom-TensorFlow-Model-with-Blocks.md b/Using-a-Custom-TensorFlow-Model-with-Blocks.md index e9581ae..93d2707 100644 --- a/Using-a-Custom-TensorFlow-Model-with-Blocks.md +++ b/Using-a-Custom-TensorFlow-Model-with-Blocks.md @@ -43,6 +43,21 @@ Look in the op mode for the programming block "TensorFlowObjectDetectionCustomMo

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

+When you load an inference model, you must specify a list of labels that describe the known objects that are included in the model. For the "skystone.tflite" model, there are two known objects. The first object has a label of "Stone" and the second object has a label of "Skystone". Click on the little gear icon for the "create list with" block, and then drag a second item onto the list block, to change the number of items in the list from one to two. + +

[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/clickOnGear.png]]
Click on gear icon to configure the number of items in the list.

+ +After you have added the additional item to the list, click on the gear icon a second time to hide the list configuration window. Change the names of the list items to "Stone" and "Skystone". + +

[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/changeLabels.png]]
Specify the labels to be used for the elements in the model.

+ +### Adjusting the Zoom Factor +If the object that you are trying to detect will be at a distance of 24" (61cm) or greater, you might want to set the digital zoom factor to a value greater than 1. This will tell the TensorFlow to use an artificially magnified portion of the image, which can result in more accurate detections at greater distances. + +

[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/setZoom.png]]
You can specify a zoom factor if the object is located at a medium to far distance from the camera.

+ + +