Downloads · 30 days
0
sinzlab/attention-readout-monkey-v4
attention-readout-monkey-v4 is a machine learning model from sinzlab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as openrail.
Neural Encoding model for Macaque V4. The model is a combination of a data driven core and an attention readout layer.
Downloads · 30 days
0
Access
Public
Updated Nov 28, 2023
Repo size
50.2 MB
Likes
2
Public
Click a slice to open those files.
.tar50.2 MB · 99%
From the Hugging Face model README
Neural Encoding model for Macaque V4. The model is a combination of a data driven core and an attention readout layer.
<p align="center"><img src="./assets/schematic.png" width="100%" alt="Data Driven V4 Schematic" /></p>This model is a combination of a data driven core and an attention readout layer. The data driven core is a convolutional neural network and the attention readout layer is a multihead attention layer with each head trained to predict the firing rates of a neuron in Macaque V4.
For research purposes, we recommend our nnvision Github repository (https://github.com/sinzlab/nnvision), which contains the code for the model defintions and training.
The model is intended for research purposes only.
The model can be used to predict the firing rates of neurons in Macaque V4 given an image.
The model can be used in Python with the nnvision package.
import torch
from nnvision.models.trained_models.v4_data_driven import v4_multihead_attention_ensemble_model
input_image = torch.rand(1, 100, 100)
firing_rate = v4_multihead_attention_ensemble_model(input_image, data_key="all_sessions")
The model can be used in Python with the energy-guided-diffusion package.
from egg.models import models
model = models['data_driven']['train']