# Model maker outputs no more than 307 models

**URL:** <https://discourse.slicer.org/t/model-maker-outputs-no-more-than-307-models/7092>\
**Category:** Support\
**Tags:** segmentation, 3d-model\
**Created:** [June 8, 2019, 11:53pm UTC](https://discourse.slicer.org/t/model-maker-outputs-no-more-than-307-models/7092 "2019-06-08T23:53:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![quakberto](https://avatars.discourse-cdn.com/v4/letter/q/9e8a1a/32.png) [@quakberto](https://discourse.slicer.org/u/quakberto)\
**Post date:** [June 8, 2019, 11:53pm UTC](https://discourse.slicer.org/t/model-maker-outputs-no-more-than-307-models/7092/1 "2019-06-08T23:53:27Z")

</div>

Hi,

I’ve started to use Slicer as it creates such beautiful 3D renderings!

I stumbled upon the following problem: I’m trying to use ‘model maker’ to create models from a label map. Label making works fine for less than 307 labels, however for some reason above that number it would simply not create new labels. And my map includes 5000 labels…

Oh, I’m using Slicer 4.10.2 on Mac.

Thanks a lot for any help!

Best,  
Marvin

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 9, 2019, 12:25pm UTC](https://discourse.slicer.org/t/model-maker-outputs-no-more-than-307-models/7092/2 "2019-06-09T12:25:33Z")

</div>

The maximum limit should only be the amount of memory you have, but you may experience slowdowns if you have thousands of labels.

What kind of images do you work with? Do you need each label to be represented by a separate model node? What would you like to achieve?

---

<div class="post-metadata">

**Author:** ![quakberto](https://avatars.discourse-cdn.com/v4/letter/q/9e8a1a/32.png) [@quakberto](https://discourse.slicer.org/u/quakberto)\
**Post date:** [June 9, 2019, 12:56pm UTC](https://discourse.slicer.org/t/model-maker-outputs-no-more-than-307-models/7092/3 "2019-06-09T12:56:07Z")

</div>

> The maximum limit should only be the amount of memory you have, but you may experience slowdowns if you have thousands of labels.

There’s clearly enough memory available and the model maker reproducibly stops after 307 labels.

> What kind of images do you work with? Do you need each label to be represented by a separate model node? What would you like to achieve?

I’m working with template images (from fluorescence microscopy) which are segmented into thousands of superpixels (small regions). New samples are registered against the template and probed at the superpixels. My aim with Slicer is to visualise the division into superpixels and show the superpixels in different colors. I could also go for a volumetric rendering, however since I’m dealing with well defined objects, meshes look much nicer.

Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 9, 2019, 1:08pm UTC](https://discourse.slicer.org/t/model-maker-outputs-no-more-than-307-models/7092/4 "2019-06-09T13:08:24Z")

</div>

To achieve your goal, you can create a single model node using “Grayscale model maker” module then assign label value to each surface point using “Probe volume with model” module, and set up coloring in Models module’s Scalars section.

We’ll look into why there seems to be a limit in Model maker. Maybe you need to choose a colormap that has more entries.

---

<div class="post-metadata">

**Author:** ![quakberto](https://avatars.discourse-cdn.com/v4/letter/q/9e8a1a/32.png) [@quakberto](https://discourse.slicer.org/u/quakberto)\
**Post date:** [June 9, 2019, 1:28pm UTC](https://discourse.slicer.org/t/model-maker-outputs-no-more-than-307-models/7092/5 "2019-06-09T13:28:02Z")

</div>

> To achieve your goal, you can create a single model node using “Grayscale model maker” module then assign label value to each surface point using “Probe volume with model” module, and set up coloring in Models module’s Scalars section.

That’s a good idea! I wouldn’t have all the surfaces surrounding all small regions coloured, but just the encompassing one is okay for now.

> We’ll look into why there seems to be a limit in Model maker. Maybe you need to choose a colormap that has more entries.

When setting the parameters of model maker there’s no colormap yet, is there? Or maybe you mean the one associated to the label map.

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 9, 2019, 5:43pm UTC](https://discourse.slicer.org/t/model-maker-outputs-no-more-than-307-models/7092/6 "2019-06-09T17:43:59Z")

</div>

> [@quakberto](#):
>
> maybe you mean the one associated to the label map

Yes, you need to associate a color node with your labelmap volume node that has an entry for each label (or enable “Generate All Models” option).
