Skip to content

Commit 4458398

Browse files
committed
fix: align AR/IGNav video timing and filter broken AEQA model
- AR/IGNav: offset world model videos by 1 frame (Frame N shows Frame N-1 videos) - AEQA: exclude FTwan22_A14B from model selector (data format incompatible)
1 parent 92c5ca4 commit 4458398

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

subpages/js/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ async function startDemo() {
88
const resp = await fetch(manifestUrl);
99
const manifest = await resp.json();
1010
const models = Object.keys(manifest.models);
11+
// Filter out FTwan22_A14B for AEQA (data format issue)
12+
if (currentScenario.taskType === "AEQA") {
13+
models = models.filter(m => m !== "FTwan22_A14B");
14+
}
1115
const modelNameMap = {
1216
"FTcosmos": "Cosmos-P2†",
1317
"FTwan21": "Wan2.1†",

subpages/js/rendering.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,13 @@ function displayFrame(i, skipVideoInit = false) {
394394
})();
395395
}
396396
else if (currentScenario.taskType !== "AEQA" && currentScenario.taskType !== "Manip") {
397+
// AR and IGNav: use previous frame's videos (offset by 1)
397398
(async () => {
398399
try {
399-
const urls = await findUpToTwoVideos(f.frameKey);
400+
// For frame N, show videos from frame N-1
401+
const videoFrameKey = currentFrameIndex > 0 ? frames[currentFrameIndex - 1].frameKey : f.frameKey;
402+
403+
const urls = await findUpToTwoVideos(videoFrameKey);
400404
setVideoSrcOrPlaceholder(document.getElementById(`pred1_${f.frameKey}`), urls[0] || null);
401405
setVideoSrcOrPlaceholder(document.getElementById(`pred2_${f.frameKey}`), urls[1] || null);
402406
} catch (e) {

0 commit comments

Comments
 (0)