Skip to content

FAQs

General Questions

What is openretina?

openretina is an open-source Python package for building, training, and analyzing neural network models of the retina. It provides tools to predict how retinal neurons respond to visual stimuli using deep learning approaches.

Who should use openretina?

openretina is designed for: - Computational neuroscientists studying retinal function - Vision researchers interested in modeling neural responses - Machine learning researchers working on biologically-inspired vision models - Neuroscience students learning about neural modeling

What license is openretina released under?

openretina is released under an open-source license that allows free use, modification, and distribution. See the LICENSE file for details.

Technical Questions

What are the system requirements?

openretina requires: - Python 3.8 or higher - PyTorch 2.0 or higher - CUDA-compatible GPU (recommended for training, but not required for inference)

How do I install openretina?

# Simple installation
pip install openretina

# For development
git clone git@github.com:open-retina/open-retina.git
cd open-retina
pip install -e .

See the Installation Guide for more details.

How large are the pre-trained models?

Pre-trained models range in size from ~10MB to ~100MB, depending on the complexity and input/output dimensions.

Can I train models without a GPU?

Yes, but training will be significantly slower. For small models or simple experiments, CPU training is possible. For larger models, a CUDA-compatible GPU is strongly recommended.

Models and Data

What types of retina models does openretina support?

openretina supports: - Core-readout architectures (CNN-based) - Linear-nonlinear cascade models - Sparse autoencoder models

What datasets are included?

openretina provides loaders for several published datasets: - Höfling et al., 2024 (mouse retina calcium imaging) - Karamanlis et al., 2024 - Maheswaranathan et al., 2023

Can I use my own data with openretina?

Yes! openretina provides base classes for creating custom data loaders. Your data should follow certain formatting conventions (stimuli and responses), but the package is designed to be flexible.

How do I create a custom model?

You can create custom models by combining different core and readout modules, or by implementing your own PyTorch modules that follow the openretina interfaces. See the Training Tutorial for examples.

Performance and Troubleshooting

Why is my model training slow?

Model training speed depends on several factors: - GPU availability and speed - Model complexity - Dataset size - Batch size

Try reducing model complexity, using a smaller batch size, or ensuring you're using GPU acceleration if available.

How do I evaluate model performance?

openretina provides tools for computing standard metrics like correlation coefficient between model predictions and actual neural responses. You can also use the in-silico experiments to analyze model behavior.

I'm getting an "out of memory" error. What should I do?

Try: 1. Reducing batch size 2. Reducing model complexity 3. Downsampling your input data 4. Using gradient accumulation 5. Moving to a GPU with more memory

Where can I get help if I'm having problems?

Contributing

How can I contribute to openretina?

We welcome contributions! You can: - Report bugs - Suggest features - Add missing documentation - Implement new models or datasets - Improve performance

See the Contributing Guide for more details.

How do I cite openretina?

TODO refer to citations page, put only a short version here.

If you use openretina in your research, please cite both the openretina paper and any specific model papers: TODO: check and extend

@article{openretina2025,
  title={`openretina`: An open-source toolkit for modeling retinal responses to visual stimuli},
  author={...},
  journal={bioRxiv},
  year={2025},
  doi={10.1101/2025.03.07.642012}
}

For models like the Höfling et al. model, also cite the original paper:

@article{hoefling2024chromatic,
  title={A chromatic feature detector in the retina signals visual context changes},
  author={Höfling, Larissa and others},
  journal={eLife},
  volume={13},
  pages={e86860},
  year={2024},
  doi={10.7554/eLife.86860}
}