# unable to install MONAI Label plugin from Slicer Extension Manager

**URL:** <https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996>\
**Category:** Support\
**Created:** [October 4, 2021, 6:19pm UTC](https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996 "2021-10-04T18:19:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![poonam1](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@poonam1](https://discourse.slicer.org/u/poonam1)\
**Post date:** [October 4, 2021, 6:19pm UTC](https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996/1 "2021-10-04T18:19:53Z")

</div>

Operating system: Windows 10  
Slicer version: 4.11.20210226 r29738 / 7a593c8  
Expected behavior: to install plugin **View** → **Extension Manager** → **Active Learning** → **MONAI Label**  
Actual behavior: but In extension manager Active learning module is not found.

---

<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:** [October 4, 2021, 6:21pm UTC](https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996/2 "2021-10-04T18:21:19Z")

</div>

As it is described in the [MONAILabel installation instructions](https://github.com/Project-MONAI/MONAILabel#3d-slicer), you must use the latest Slicer Preview Release. MONAILabel is not available for Slicer-4.11.20210226.

---

<div class="post-metadata">

**Author:** ![poonam1](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@poonam1](https://discourse.slicer.org/u/poonam1)\
**Post date:** [October 4, 2021, 8:38pm UTC](https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996/3 "2021-10-04T20:38:38Z")

</div>

Thank you Andras for your reply!  
Now, when I am trying to annotate then getting following error  
‘RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is\_available() is False. If you are running on a CPU-only machine, please use torch.load with map\_location=torch.device(‘cpu’) to map your storages to the CPU.’

So, Could you please tell me how I can set this value in my cpu based system.  
Thanks in advance!

---

<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:** [October 5, 2021, 12:32pm UTC](https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996/4 "2021-10-05T12:32:24Z")

</div>

@diazandr3s could you help with this question?

---

<div class="post-metadata">

**Author:** ![diazandr3s](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/diazandr3s/32/9973_2.png) [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)\
**Post date:** [October 5, 2021, 7:50pm UTC](https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996/5 "2021-10-05T19:50:08Z")

</div>

Thanks, @lassoan for ping me 🙂  
@poonam1 thanks for your interest in MONAI Label.  
We’ve developed MONAI Label to work on a computer with a GPU. Even a small one. They are important because the training/inference will be very slow otherwise.

---

<div class="post-metadata">

**Author:** ![poonam1](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@poonam1](https://discourse.slicer.org/u/poonam1)\
**Post date:** [October 6, 2021, 2:18pm UTC](https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996/6 "2021-10-06T14:18:55Z")

</div>

Hi @diazandr3s thank you for response!  
I get that it is for GPU based system, but I am willing to try on my CPU based system once and then I will transfer that to GPU one.  
So please if you can help me setting up on my system, then it would be really grateful.  
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:** [October 6, 2021, 2:48pm UTC](https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996/7 "2021-10-06T14:48:20Z")

</div>

Some inference tasks work perfectly well on a CPU. For example ultrasound segmentation - the images are quite small and just 2D. Does MONAILabel enforces the presence of a GPU or a model/sample app imposes this limitation?

---

<div class="post-metadata">

**Author:** ![diazandr3s](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/diazandr3s/32/9973_2.png) [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)\
**Post date:** [October 6, 2021, 4:06pm UTC](https://discourse.slicer.org/t/unable-to-install-monai-label-plugin-from-slicer-extension-manager/19996/8 "2021-10-06T16:06:06Z")

</div>

The type of device used for inference and training is a variable configuration that is set by default to GPU. Depending on which MONAI Label App (i.e. DeepEdit, DeepGrow or segmentation), you should change that … for instance, if you want to train any App, you should change this to CPU ([MONAILabel/basic\_train.py at main · Project-MONAI/MONAILabel · GitHub](https://github.com/Project-MONAI/MONAILabel/blob/main/monailabel/tasks/train/basic_train.py#L255))  
If you want to do inference in the “segmentation” App, you should change this line: [MONAILabel/infer.py at ca9ffe553889f0ea9d99e0133c359851a5ea2003 · Project-MONAI/MONAILabel · GitHub](https://github.com/Project-MONAI/MONAILabel/blob/ca9ffe553889f0ea9d99e0133c359851a5ea2003/monailabel/interfaces/tasks/infer.py#L220)

If using a pre-trained model in the segmentation App, don’t forget to also change this line ([MONAILabel/infer.py at ca9ffe553889f0ea9d99e0133c359851a5ea2003 · Project-MONAI/MONAILabel · GitHub](https://github.com/Project-MONAI/MONAILabel/blob/ca9ffe553889f0ea9d99e0133c359851a5ea2003/monailabel/interfaces/tasks/infer.py#L316)) so the model is loaded to work on the CPU.
