PyTorch is an easy-to-use deep learning framework for Python. Here are instructions on getting the tutorial up and running.
- Open your command prompt
- Navigate to the folder you want to put the project in (e.g.
cd ~/Desktop
) - Pull the code from GitHub
git clone https://github.com/BonnerLab/PyTorch_Tutorial
- Navigate into the project folder
cd PyTorch_Tutorial
. - Switch to the branch used for the lab tutorial
git fetch & git checkout lab_workshop
- Read the project instructions in the README.md for the rest https://github.com/BonnerLab/PyTorch_Tutorial/tree/lab_workshop
Train fMRI encoders on the Object2Vec dataset using Python and PyTorch. See the project here https://github.com/BonnerLab/object2vec_encoder_python
Variational-Auto-Encoders (VAEs) are useful for extracting latent dimensions of data in an unsupervised way by leveraging a reconstruction task and variational objective. Beta-VAEs add an additional parameter to the training objective in order to encourage the latent dimensions to be disentangled, such that they represent individual concepts and are more interpretable. Eric has made a repository for training such Beta-VAEs on arbitrary datasets (e.g. a folder of images) and comparing the representations learned by the trained model to those encoded by fMRI voxels. See the project here https://github.com/BonnerLab/bvae_reconstruction_fmri
Eric has written a repository that can procedurally generate specifications for simple room environments in order to create large synthetic datasets. The room specifications can vary according to floor plan, surface texture, object placement, and lighting. The repository also contains code to automatically build these scenes in Blender and render images from them at specified viewpoints. Most of the code should be easy to understand and easy to extend for your specific purposes. See the project here https://github.com/BonnerLab/scene_generator
Code to visualize stimuli that would produce a target response in some computational model (e.g. encoder fit to fMRI voxels), constrained to a natural image manifold specified by a GAN. See the project here https://github.com/BonnerLab/gan_stimulus_generation