# Downsampling fsaverage source model for efficient computation

**URL:** <https://mne.discourse.group/t/downsampling-fsaverage-source-model-for-efficient-computation/6067>\
**Category:** Support & Discussions\
**Tags:** ﻿source-localization, eeg\
**Created:** [December 15, 2022, 11:26am UTC](https://mne.discourse.group/t/downsampling-fsaverage-source-model-for-efficient-computation/6067 "2022-12-15T11:26:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmilinkovic](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/bmilinkovic/32/2089_2.png) [@bmilinkovic](https://mne.discourse.group/u/bmilinkovic)\
**Post date:** [December 15, 2022, 11:26am UTC](https://mne.discourse.group/t/downsampling-fsaverage-source-model-for-efficient-computation/6067/1 "2022-12-15T11:26:20Z")

</div>

Hi all,

I’m wondering if there is a systematic way of downsampling the source model for fsaverage. I’m using it in source-reconstruction of EEG data with LCMV and it is using up a whole lot of memory (64Gb - on a pretty good machine).

Is it possible to downsample, or is there a file that has less sources than the fsaverage-ico-4-src.fif that I could implement?

Any help would be much appreciated.

Thanks!  
Boki

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [December 15, 2022, 2:56pm UTC](https://mne.discourse.group/t/downsampling-fsaverage-source-model-for-efficient-computation/6067/2 "2022-12-15T14:56:27Z")

</div>

This question already has the relevant info: [Laptop crashes while trying to compute/plot inverse solution. I suspect my forward model is too intricate. How to address?](https://mne.discourse.group/t/laptop-crashes-while-trying-to-compute-plot-inverse-solution-i-suspect-my-forward-model-is-too-intricate-how-to-address/6016)  
…but you say you’re using `ico-4` and it’s crashing? I suspect it’s not the forward model that is the problem. Check your script to see if you’re keeping around unneeded variables. For example, don’t load raw data for all subjects all at once; load one subj at a time, process them all the way through, then load the next subj.

If you can’t prevent the crash that way, please post the script and the full traceback and the output of `mne.sys_info()`
