MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / createStatsPanel

Function createStatsPanel

gpu-pipeline/ui-util.js:54–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54function createStatsPanel() {
55 stats = new Stats();
56 stats.customFpsPanel = stats.addPanel(new Stats.Panel('FPS', '#0ff', '#002'));
57 stats.showPanel(stats.domElement.children.length - 1);
58
59 statusEl.appendChild(stats.domElement);
60
61 const statsPanes = statusEl.querySelectorAll('canvas');
62
63 for (let i = 0; i < statsPanes.length; ++i) {
64 statsPanes[i].style.width = '140px';
65 statsPanes[i].style.height = '80px';
66 }
67}
68
69async function createModel() {
70 const segmenterConfig = {

Callers 1

setupPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected