# Vertex number mismatch between source space and annotation

**URL:** <https://mne.discourse.group/t/vertex-number-mismatch-between-source-space-and-annotation/3778>\
**Category:** Support & Discussions\
**Tags:** ﻿source-localization, preprocessing\
**Created:** [October 5, 2021, 5:22pm UTC](https://mne.discourse.group/t/vertex-number-mismatch-between-source-space-and-annotation/3778 "2021-10-05T17:22:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fesieben](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/fesieben/32/787_2.png) [@fesieben](https://mne.discourse.group/u/fesieben)\
**Post date:** [October 5, 2021, 5:22pm UTC](https://mne.discourse.group/t/vertex-number-mismatch-between-source-space-and-annotation/3778/1 "2021-10-05T17:22:15Z")

</div>

When using mne.read\_labels\_from\_annot(), I got the following error:

RuntimeError: Number of surface vertices (128723) for subject xxxx does not match the expected number of vertices (129064) for annotation file …\lh.parc2018yeo17\_200.annot

, with 128723 being the number of vertices in the source space, which was created with mne.setup\_source\_space(). I have created parcellations of this type (Schaefer 2018) for dozens of subjects and never encountered this issue before.

- MNE-Python version: 0.20.5
- operating system: Windows Server 2019

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [October 6, 2021, 9:14am UTC](https://mne.discourse.group/t/vertex-number-mismatch-between-source-space-and-annotation/3778/2 "2021-10-06T09:14:00Z")

</div>

Hello @fesieben,

could you try updating to a more recent version of MNE-Python (0.23.x) and try again?

Best,  
Richard

---

<div class="post-metadata">

**Author:** ![fesieben](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/fesieben/32/787_2.png) [@fesieben](https://mne.discourse.group/u/fesieben)\
**Post date:** [October 6, 2021, 10:37am UTC](https://mne.discourse.group/t/vertex-number-mismatch-between-source-space-and-annotation/3778/3 "2021-10-06T10:37:13Z")

</div>

Hi Richard,

I tried under MNE 23.4 and it had the same result.

Decided now to rerun the entire Freesurfer processing and parcellation creation anew for this subject and see if that changes anything, although I can’t really fathom what could have gone wrong the previous time to cause this specific error.

Best,  
Felix
