A synchronized observatory for connectome-constrained fly navigation.
ConnectomeFlight is a browser-based observatory for pure visual fly navigation, visuo-olfactory fly navigation and pure visual Crazyflie navigation. Each task offers three selectable replays. The page keeps both cameras, the raw eye and antennal inputs, the trajectory, the model's internal activity and its actions on the same frame.
Everything is a frozen replay. The browser does not run the policy, call a server, or train anything.
-
Crazyflie navigation. A third task alongside visual and visuo-olfactory navigation, with success, collision and timeout replays. Open
?task=CF&scene=1. Recorded camera crops, trajectory, physical-unit commands and qualifying-stop time share the video timeline. The model panel reconstructs continuous frozen FlyVis + MLP activity from saved camera inputs and shows sampled real connections. Both cameras are rendered directly from the same MuJoCo state. Crops show the RGB-channel mean grayscale actually fed to FlyVis, with 721-receptor BoxEye maps below and full T4a–T5d maps in the lower sensor panel. Formal test results were 168/192 successes; the three illustrative replays do not re-estimate that rate. -
Three tasks, three replays each. Compare fly obstacle layouts and odor-source locations, or inspect Crazyflie success, collision and timeout cases.
-
Synchronized views. Follow camera, top-down camera, eyes, T4/T5 activity, odor field, trajectory and action readouts share one timeline.
-
Real model activity. Frozen FlyVis networks and policy units are sampled on their true hexagonal coordinates; hover for values and drag to rotate.
-
Built for inspection. Frame stepping, speed control, looping, deep links to a scene and frame, model-graph zoom, and keyboard navigation.
-
Responsive. Desktop, tablet and mobile layouts, with 44 px primary touch targets.
| Task | Scene | Geometry | Frames |
|---|---|---|---|
| D3 · visual | 01 | Upper spherical goal, five tree obstacles | 197 |
| D3 · visual | 02 | Central spherical goal, four tree obstacles | 194 |
| D3 · visual | 03 | Lower spherical goal, five tree obstacles | 213 |
| D4 · visuo-olfactory | 01 | Lower odor source | 417 |
| D4 · visuo-olfactory | 02 | Upper odor source, mirrored tree layout | 420 |
| D4 · visuo-olfactory | 03 | Central odor source, different tree layout | 399 |
| Crazyflie · visual | 01 | Successful stop at QR target | 273 |
| Crazyflie · visual | 02 | Obstacle collision | 106 |
| Crazyflie · visual | 03 | Timeout before sustained stop | 474 |
Use ?task=D4&scene=2 to open a scene directly, and &frame=220 to start at a frame.
| Task | Display model | Trainable parameters | Sensory path | Readout |
|---|---|---|---|---|
| D3 | ConnectomeFlight-V | 115 | 32 × 32 binocular RGB | T4/T5 → 144 → fixed 104 compression → 50 ms EMA → actions |
| D4 | ConnectomeFlight-VO | 2454 | 64 × 64 binocular RGB + two antennal odor channels | Vis115 visual base + 32-d odor RNN + residual head |
Both models are exported from the ConnectomeFlight research repository. This repository contains only presentation data: the web interface, rendered frames, quantized appearance textures, display geometry and rounded replay readouts. Model weights, biases and precise intermediate arrays are not part of this repository.
No build step and no dependencies beyond Python 3:
python3 serve.py
# → http://127.0.0.1:8091/The server supports HTTP range requests so the MP4s seek correctly.
dist/ the site: HTML, CSS, JS, nine replays and display JSON
assets/preview.jpg repository preview image
LICENSES/ retained third-party notices
serve.py local preview server
.github/workflows/ deployment and presentation-boundary checks
Each scene ships with H.264 videos in smooth and HD quality (two cameras side by side), lossless RGBA segments loaded on demand for the interactive model graph, and one display JSON with the rounded trajectory, actions, markers and layout. The deployment workflow validates the file boundary, JSON schema, frame counts and PNG bounds before publishing.
The default smooth videos are about 0.3–0.52 MB; the original HD videos remain available in the quality selector. Activity colors are split into 8-frame segments, with only the current segment required at startup and at most three decoded segments retained. The original atlases remain available as reference assets. Cameras, sensors and activity views remain on the same frame while a segment buffers.
Startup errors show a reload action. Essential scene requests have a total deadline and bounded retries; optional odor backgrounds cannot block playback. The deployment runs six-scene browser checks covering eye-pixel correspondence, segment boundaries, seeking, request failures and cancellation.
To run browser regressions locally (development dependencies only):
python -m pip install playwright==1.63.0 Pillow==12.3.0
python -m playwright install chromium
python tests/check_loading.py- Play/pause with the transport or Space; step with ← / →.
- Switch task and scene with the top controls; arrow keys and Home / End move through scenes.
- Drag the model graph to rotate it; use the expand button for a full view.
- Share a scene or a specific frame from 分享场景.
- Click any camera to enlarge it; Esc closes dialogs.
This is a presentation repository. It intentionally excludes checkpoints, learned parameters, normalization statistics, training code, experiment logs and precise hidden-state arrays. Appearance textures are quantized for display; they are not a numerical record of the model. The private research archive keeps the full numerical evidence.
Visual model and connectome: FlyVis (Lappalainen et al., Nature 634, 1132–1140, 2024). Body and low-level controller: FlyBody (Vaxenburg et al., Nature 643, 1312–1320, 2025). Interface references: fly-brain and Neural Canvas.
Activity images show continuous model responses, not biological spikes or a complete anatomical brain. Selected successful replays do not establish aggregate performance or independent generalization. See ATTRIBUTION.md for details and retained notices.
The website code and presentation media in this repository are released under the MIT License. Upstream FlyVis, FlyBody and third-party components retain their original licenses; see LICENSES/ and ATTRIBUTION.md.
ConnectomeFlight 是数字果蝇视觉与视嗅导航研究的展示站点。纯视觉与视嗅两个任务各提供三个可选回放,双镜头、双眼/触角输入、飞行轨迹与模型活动同帧同步。页面只播放冻结回放,不运行策略推理。本仓库仅包含网页、渲染画面、量化显示贴图与取整后的回放数据,不包含模型权重或训练代码。
