Train from scratch ( default label colors) #1283
-
I started a train from scratch session. I'm using the segmentation model. when I start the training it assigns label colors. Is there a way to set the colors for a model so that if I share the model the label colors will be the same. i.e. I have a label called 'ivc' and I want it a certain shade of blue when I train but also when I share this model with others. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
As long as the number and order of classes of your model are the same, 3D Slicer can load and assign same color, or adjust. For example, the labels are defined here in this Radiology app, and classes are fixed: |
Beta Was this translation helpful? Give feedback.
-
Super thank, thats what I was looking for I made the mistake of coming up with my own label names. I'll rerun with "standard" names in the labelcolors.py |
Beta Was this translation helpful? Give feedback.
As long as the number and order of classes of your model are the same, 3D Slicer can load and assign same color, or adjust.
For example, the labels are defined here in this Radiology app, and classes are fixed:
MONAILabel/sample-apps/radiology/lib/configs/segmentation.py
Line 37 in 8ae1013