MCPcopy
hub / github.com/tensorflow/tfjs-models / updateGuiInputResolution

Function updateGuiInputResolution

posenet/demo/coco.js:238–248  ·  view source on GitHub ↗
(inputResolutionArray)

Source from the content-addressed store, hash-verified

236 model.open();
237 let inputResolutionController = null;
238 function updateGuiInputResolution(inputResolutionArray) {
239 if (inputResolutionController) {
240 inputResolutionController.remove();
241 }
242 inputResolutionController =
243 model.add(guiState.model, 'inputResolution', inputResolutionArray);
244 inputResolutionController.onChange(async function(inputResolution) {
245 guiState.model.inputResolution = +inputResolution;
246 reloadNetTestImageAndEstimatePoses(guiState.net);
247 });
248 }
249 // Output stride: Internally, this parameter affects the height and width of
250 // the layers in the neural network. The lower the value of the output stride
251 // the higher the accuracy but slower the speed, the higher the value the

Callers 1

updateGuiFunction · 0.70

Calls 1

Tested by

no test coverage detected