We want to create an extension for our recent SegmentAnyBone (fine-tuned version of SAM) model as an alternative to generic SAM since it can offer a better segmentation performance than SAM when it comes to bones. However, our model’s license is CC BY-NC 4.0.
In this sense, can we release an extension for SegmentAnyBone on 3D Slicer’s Extension Index with CC BY-NC 4.0 license? If we cannot, can we create a public repository on GitHub so that people can install our new extension manually (by cloning the repository and introducing it to 3D Slicer) on 3D Slicer?
Thanks in advance for your support!
Yes, you may provide an extension that has non-commercial restrictions, but please make it explicit in the readme so that it’s clear what this implies for users (not everyone will instantly recognize the license abbreviation). You can refer to the TotalSegmentator extension and the way Slicer’s ScreenCapture module handle installation of code with different licenses.
In any case it’s best not to bundle the model weights with the extension, and instead install them on first-use. It would also be nice if your extension could support other SAM-derived models so others might add models in the future using the same infrastructure. In that sense it would be nice if you could integrate SAM-related extensions for generality and maximal reuse (as discussed in this thread, also with you, I believe?).
@pieper Yes, we have discussed SegmentWithSAM extension before. I can try to set up an infrastructure which allows users to add a different SAM based model. On the other hand, I am not sure I integrate SegmentWithSAM extension to the extension I am going to develop soon since their licenses are different. SegmentWithSAM has Apache 2.0, and the new extension will have CC BY-NC 4.0 license.
Like in TotalSegmentator, it’s possible to mix models with different licenses while sharing the same Slicer integration code. As discussed, the ideal situation is to share the common elements so that it’s less confusing for users to try different models and approaches.
@pieper Instead of serving different models with different licenses, can we change the existing license (Apache 2.0) of our SegmentWithSAM extension repository to CC BY-NC 4.0? We are afraid that people might not be able to realize that we have different licenses for different models. In this way, we can have one license (CC BY-NC 4.0) for both of generic SAM and our SegmentAnyBone model within one extension.
@zafryldz Is there a specific reason why you all have moved from Apache 2.0 to CC BY-NC 4.0?
Since 3D Slicer supports commercialized 3D Slicer Custom Applications, then the change to the new license would prevent integration of your work into a commercial solution. That commercial solution may be using funds to pay for user support for the feature especially if you all as the original developers are no longer supporting/maintaining the code sometime in the future.
Keeping distributing the module with permissive license would make sense, as we currently do not have a mechanism to give strong warningsl to the user that the extension has restrictive license.
At runtime when the user chooses a model that comes with a restrictive license, you can display a popup to make the user confirm that he is aware of the limitations. This is already how TotalSegmentator works (it even asks for a registration key that non-commercial users can request for free).
However, in the long term, you may be better off financially if you make your models available without restrictions. Modules that are distributed with restrictive license are largely ignored by companies (except extremely rare cases when nothing similar exists with permissive license that has comparable performance and the task is not important enough for the company to solve it with internal development). In contrast, if you use a permissive license then companies can build your segmentation model into their products and if it turns out to work well then when they need improvements, customizations, and long-term maintenance then most likely they will pay you to do it. This is why SAM, MedSAM, most MONAI and nn-unet models are distributed with permissive license.