fly-brain
FlyWire whole-brain LIF implementation based on Shiu et al., with multiple simulation backends and benchmarking tools. This repository supplies the neural model; it is not a complete embodied demo package.
Neurons are simulated — leaky integrate-and-fire or better — with documented, tuned parameters.
Dispute this rating →The evidence
No evidence, no level.The PyTorch backend states the LIF constants explicitly, matching Brian2's default_params from the Shiu model.
https://github.com/eonsystemspbc/fly-brain/blob/a3db62f9436074e485c0278290c2164ed6150808/code/run_pytorch.py#L36-L47Membrane voltage is integrated each timestep toward rest with the membrane time factor, then thresholded and reset - a documented LIF update.
https://github.com/eonsystemspbc/fly-brain/blob/a3db62f9436074e485c0278290c2164ed6150808/code/run_pytorch.py#L117-L132Connectome weights are stored on the model and only ever used as the right-hand side of a sparse matmul on the spike vector; nothing writes to them.
https://github.com/eonsystemspbc/fly-brain/blob/a3db62f9436074e485c0278290c2164ed6150808/code/run_pytorch.py#L240-L260The repository's own 'ground truth' comparison is backend-vs-Brian2 numerical agreement, and the 91% accuracy figure is attributed to the Shiu et al. paper rather than measured here.
https://github.com/eonsystemspbc/fly-brain/blob/a3db62f9436074e485c0278290c2164ed6150808/README.md#L112-L125
A faithful re-implementation of the Shiu et al. whole-brain LIF model across five simulation backends (Brian2 CPU/CUDA, PyTorch, NEST GPU, GeNN, Brian2GeNN), with the same documented constants: 20 ms membrane, 5 ms alpha synapse, -52 mV rest/reset, -45 mV threshold, 2.2 ms refractory, 1.8 ms delay, w_syn 0.275. Membrane voltage is integrated explicitly each timestep, so L1. Not L2: the connectome weight matrix is loaded from the FlyWire connectivity table, cached as a sparse tensor and used read-only in the recurrent matmul; a repo-wide search over every Python file at this commit finds no `torch.optim`, no optimizer, no `loss.backward()`, no learning rate, no STDP and no dopamine. The PyTorch backend does define an ATan surrogate-gradient autograd function, which reads like training infrastructure, but nothing in this repository ever constructs an optimizer or takes a gradient step - it is a benchmarking and cross-backend-parity harness. No validation mark either: the 'ground truth comparison' in this repo compares backends against Brian2 CPU, i.e. a numerical-agreement check between simulators, not a comparison against measurements from real flies; the 91% accuracy figure quoted in the README is Shiu et al.'s result, not something reproduced here.
Record
Nearby
All projects →Research code for the Shiu et al. connectome-based leaky integrate-and-fire model, including activation/silencing experiments, notebooks, and FlyWire data configuration.
Anatomically detailed MuJoCo fruit-fly body, walking and flight environments, and reinforcement-learning examples. A body and control platform.
Ratings on thelearningfly.com are proposals, not verdicts. Every one of them is arguable in public.