Spaces:
Sleeping
Sleeping
Fix motor_decoder torch.no_grad and continuous autonomous stream
Browse files- web/index.html +0 -2
web/index.html
CHANGED
|
@@ -775,7 +775,6 @@
|
|
| 775 |
const elAmmo = document.getElementById("hudAmmo");
|
| 776 |
const elKills = document.getElementById("hudKills");
|
| 777 |
const elScore = document.getElementById("hudScore");
|
| 778 |
-
const elFps = document.getElementById("fpsVal");
|
| 779 |
const elBarLeft = document.getElementById("barLeft");
|
| 780 |
const elPctLeft = document.getElementById("pctLeft");
|
| 781 |
const elBarRight = document.getElementById("barRight");
|
|
@@ -851,7 +850,6 @@
|
|
| 851 |
if (elAmmo) elAmmo.innerText = data.ammo || 0;
|
| 852 |
if (elKills) elKills.innerText = data.kills || 0;
|
| 853 |
if (elScore) elScore.innerText = (data.total_reward || 0).toFixed(1);
|
| 854 |
-
if (elFps) elFps.innerText = data.instant_fps || "0.0";
|
| 855 |
|
| 856 |
if (data.action_probs) {
|
| 857 |
const pLeft = Math.round(((data.action_probs.TURN_LEFT !== undefined ? data.action_probs.TURN_LEFT : data.action_probs.MOVE_LEFT) || 0) * 100);
|
|
|
|
| 775 |
const elAmmo = document.getElementById("hudAmmo");
|
| 776 |
const elKills = document.getElementById("hudKills");
|
| 777 |
const elScore = document.getElementById("hudScore");
|
|
|
|
| 778 |
const elBarLeft = document.getElementById("barLeft");
|
| 779 |
const elPctLeft = document.getElementById("pctLeft");
|
| 780 |
const elBarRight = document.getElementById("barRight");
|
|
|
|
| 850 |
if (elAmmo) elAmmo.innerText = data.ammo || 0;
|
| 851 |
if (elKills) elKills.innerText = data.kills || 0;
|
| 852 |
if (elScore) elScore.innerText = (data.total_reward || 0).toFixed(1);
|
|
|
|
| 853 |
|
| 854 |
if (data.action_probs) {
|
| 855 |
const pLeft = Math.round(((data.action_probs.TURN_LEFT !== undefined ? data.action_probs.TURN_LEFT : data.action_probs.MOVE_LEFT) || 0) * 100);
|