# Issue : dwibiascorrect ants crashing terminal (moved from General Discussion to Development)

**URL:** <https://community.mrtrix.org/t/issue-dwibiascorrect-ants-crashing-terminal-moved-from-general-discussion-to-development/8383>\
**Category:** Development\
**Tags:** error, preprocessing\
**Created:** [June 3, 2025, 10:47am UTC](https://community.mrtrix.org/t/issue-dwibiascorrect-ants-crashing-terminal-moved-from-general-discussion-to-development/8383 "2025-06-03T10:47:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![A.Rossez](https://community.mrtrix.org/user_avatar/community.mrtrix.org/a.rossez/32/5080_2.png) [@A.Rossez](https://community.mrtrix.org/u/A.Rossez)\
**Post date:** [June 3, 2025, 10:47am UTC](https://community.mrtrix.org/t/issue-dwibiascorrect-ants-crashing-terminal-moved-from-general-discussion-to-development/8383/1 "2025-06-03T10:47:44Z")

</div>

Hi Everyone ! 👋 😀

I already managed to tweak my code to bypass this issue (by coding an in-house use of N4BiasFieldCorrection) that I posted a while ago in General Discussion but since it looks like a major issue of dwibiascorrect ants to me (killing terminal/spyder) I thought I should make a reference to this issue in Development section too instead of General Discussion :  
[https://community.mrtrix.org/t/issue-dwibiascorrect-ants-crashing-terminal/8301](https://community.mrtrix.org/t/issue-dwibiascorrect-ants-crashing-terminal/8301)

Regarding my in-house trick : I used a combination of mrinfo, dwiextract(of b=0), mrmath (avg of b=0), mrcalc(dividing image by N4map), mrcat, mrconvert (from mif to nii and vice versa) and of course N4BiasFieldCorrection from ANTs… to apply, in a similar fashion than what I could see from the error logs of dwibiascorrect, the N4 unbiasing.

Best Regards,  
Arno ROSSEZ.
