Skip to content

Commit

Permalink
update colab notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
huzeyann committed Feb 7, 2024
1 parent 6896ae5 commit 8f16e48
Show file tree
Hide file tree
Showing 3 changed files with 233 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Brain Decodes Deep Nets <br><sub> PyTorch Implementation</sub>


### [📄Paper](https://arxiv.org/abs/2312.01280) | [🌐Website](https://huzeyann.github.io/brain-decodes-deep-nets)
### [📄Paper](https://arxiv.org/abs/2312.01280) | [🌐Website](https://huzeyann.github.io/brain-decodes-deep-nets) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://drive.google.com/file/d/158tm5AvCc346SDM1WqxanRjqcJFh5k5X/view?usp=sharing]

We visualize pre-trained vision models by mapping them onto the brain, thus exposing their hidden inside. Visualization is a by-product of brain encoding model: predict brain fMRI measurements in response to images.

Expand Down
6 changes: 3 additions & 3 deletions brainnet/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def make_space_plot(mu, path):
)

dir_path = os.path.dirname(path)
os.makedirs(dir_path, exist_ok=True)
# os.makedirs(dir_path, exist_ok=True)

plt.close()

Expand Down Expand Up @@ -324,7 +324,7 @@ def rgb_from_values(values, vmax=1):
)
COLORFUL_PLOT = False
dir_path = os.path.dirname(path)
os.makedirs(dir_path, exist_ok=True)
# os.makedirs(dir_path, exist_ok=True)

plt.close()

Expand Down Expand Up @@ -365,7 +365,7 @@ def make_1d_plot(
)
dir_path = os.path.dirname(path)
# plt.show()
os.makedirs(dir_path, exist_ok=True)
# os.makedirs(dir_path, exist_ok=True)
plt.close()

center_crop(path, overlay=overlay)
Expand Down
229 changes: 229 additions & 0 deletions inference.ipynb

Large diffs are not rendered by default.

0 comments on commit 8f16e48

Please sign in to comment.