Updated Using a Custom TensorFlow Model with Blocks (markdown)
@ -43,6 +43,21 @@ Look in the op mode for the programming block "TensorFlowObjectDetectionCustomMo
|
|||||||
|
|
||||||
<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>
|
<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>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
<p align="center">[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/clickOnGear.png]]<br/>Click on gear icon to configure the number of items in the list.<p>
|
||||||
|
|
||||||
|
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".
|
||||||
|
|
||||||
|
<p align="center">[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/changeLabels.png]]<br/>Specify the labels to be used for the elements in the model.<p>
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
|
<p align="center">[[/images/Using-a-Custom-TensorFlow-Model-with-Blocks/setZoom.png]]<br/>You can specify a zoom factor if the object is located at a medium to far distance from the camera.<p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user