Skip to content

Commit

Permalink
Comment out prediction related code.
Browse files Browse the repository at this point in the history
  • Loading branch information
erksch committed Jan 10, 2020
1 parent 2081822 commit 39c1c80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ <h3>Color by</h3>
</label>
</div>
</div>
<!--
<div class="inputs-row">
<h3>Labels</h3>
<div class="switch">
Expand All @@ -106,6 +107,7 @@ <h3>Prediction</h3>
<button id="run-prediction">Run Prediction</button>
<span id="loading-prediction" style="display: none;">Loading prediction...</span>
</div>
-->
</div>
<span id="loading">Loading...</span>
<canvas id="canvas"></canvas>
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ function main() {
labelMode = labelModes[e.target.value];
}));

/*
colorModeInputs.forEach((el: HTMLInputElement) => el.addEventListener<'change'>('change', (e: any) => {
colorMode = colorModes[e.target.value];
}));
*/

laserInputs.forEach((el: HTMLInputElement) => el.addEventListener<'change'>('change', (e: any) => {
laserSwitches[el.value] = e.target.checked ? 1.0 : 0.0;
Expand All @@ -77,6 +79,7 @@ function main() {
setActiveFrame(Number(frameSelector.value));
});

/*
runPredictionButton.addEventListener('click', async () => {
loadingPrediction.style.display = "block";
runPredictionButton.style.display = "none";
Expand All @@ -87,6 +90,7 @@ function main() {
(framePointMeshes[frameIndex].geometry as BufferGeometry).setAttribute('predictedType', new THREE.InstancedBufferAttribute(new Float32Array(labels), 1));
((framePointMeshes[frameIndex].geometry as BufferGeometry).attributes.predictedType as BufferAttribute).needsUpdate = true;
});
*/

const handleFrameBoundingBoxesReceived = (index: number, mesh: THREE.Mesh) => {
frameBoundingBoxMeshes[index] = mesh;
Expand Down

0 comments on commit 39c1c80

Please sign in to comment.