# HD-BET doesn't work for me

**URL:** <https://discourse.slicer.org/t/hd-bet-doesnt-work-for-me/31791>\
**Category:** Support\
**Created:** [September 19, 2023, 3:37pm UTC](https://discourse.slicer.org/t/hd-bet-doesnt-work-for-me/31791 "2023-09-19T15:37:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MZA](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mza/32/16225_2.png) [@MZA](https://discourse.slicer.org/u/MZA)\
**Post date:** [September 19, 2023, 3:37pm UTC](https://discourse.slicer.org/t/hd-bet-doesnt-work-for-me/31791/1 "2023-09-19T15:37:57Z")

</div>

Hi 3D Slicer team,

I’m having a problem with using HD-BET to extract the brain from a T1WI with contrast .nrrd file. When I select the input and output files, and click ‘Apply (Image 1),’ it seems like it’s working in the background with a rotating cursor, but after 3-4 minutes, the layout on the right only shows a single frame (Yellow arrows in Image 2). Also, when I try to save the stripped file in either .nrrd or .nii format (Image 3), nothing gets saved.

Do you have any suggestions for what I can do to fix this issue?

 ![01](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/a/2a2ea2d4223ecb47fcd42bd115b9027664058c36.jpeg)  
 ![02](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/9/e9847f93661361514198187c0f954653aa377968.jpeg)  
 ![03](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/8/c8adc1d62dadbba3e444717601cf5b91b1094991.jpeg)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 19, 2023, 7:52pm UTC](https://discourse.slicer.org/t/hd-bet-doesnt-work-for-me/31791/2 "2023-09-19T19:52:17Z")

</div>

Check to see if there were messages in the log window. Also try with the sample data to see if you can replicate the issue.

---

<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:** [September 19, 2023, 8:02pm UTC](https://discourse.slicer.org/t/hd-bet-doesnt-work-for-me/31791/3 "2023-09-19T20:02:59Z")

</div>

HD-BET [API has changed](https://github.com/MIC-DKFZ/HD-BET/commit/bfc50c1f978c3f9e63674323f4f17294b57c2321), now saving of masked input file must be requested explicitly. I’ve updated the extension accordingly. You can update the extension in the Extensions Manager tomorrow or later to get the fix.

---

<div class="post-metadata">

**Author:** ![MZA](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mza/32/16225_2.png) [@MZA](https://discourse.slicer.org/u/MZA)\
**Post date:** [September 20, 2023, 6:58pm UTC](https://discourse.slicer.org/t/hd-bet-doesnt-work-for-me/31791/4 "2023-09-20T18:58:31Z")

</div>

@pieper @lassoan  
Thank you! It works fine now after the update.
