<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.nitrc.org/themes/nitrc3.0/css/rss.xsl.php?feed=https://www.nitrc.org/export/rss20_forum.php?forum_id=9635" ?>
<?xml-stylesheet type="text/css" href="https://www.nitrc.org/themes/nitrc3.0/css/rss.css" ?>
<rss version="2.0"> <channel>
  <title>NITRC mri_reface Forum: help</title>
  <link>http://www.nitrc.org/forum/forum.php?forum_id=9635</link>
  <description>Get Public Help</description>
  <language>en-us</language>
  <copyright>Copyright 2000-2026 NITRC OSI</copyright>
  <webMaster></webMaster>
  <lastBuildDate>Fri, 01 May 2026 0:53:33 GMT</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NITRC RSS generator</generator>
  <item>
   <title>RE: Resource recommendations</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16000&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Useful info, thank you. When I have more info after running an array of jobs I'll update the thread.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;I agree there's probably an overhead to running in a singularity container.&amp;lt;/p&amp;gt;</description>
   <author>Paul Wright</author>
   <pubDate>Wed, 29 Apr 2026 15:19:45 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16000&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Resource recommendations</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16000&amp;forum_id=9635</link>
   <description>&lt;p&gt;I agree that there's not much to gain in multithreading. If you watch a process graph through a run, most of the runtime is at 1.0 or less. In-development versions will have considerable performance improvements without multithreading, though.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Here's our stats for the past 6mo of defacing jobs on our cluster:&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;11374&amp;nbsp; jobs between 20251029 and 20260429.&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MaxVMSize(GB)&lt;br&gt;Mean &amp;nbsp; &amp;nbsp;6.23&amp;nbsp;&lt;br&gt;Median &amp;nbsp;5.46&lt;br&gt;p95 &amp;nbsp; &amp;nbsp; 21.05&amp;nbsp;&lt;br&gt;p99 &amp;nbsp; &amp;nbsp; 24.81&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;However, these are running from source code (not deployed/compiled) and not containerized, so it may be different for you. We're running a variety of image types and the higher usages are typically full-dynamic PET with 40+ volumes. For typical images with 1-5 volumes, I'd say 10G seems reasonable.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;I think you really want the png snapshots for QC purposes, but they definitely increase requirements and dependencies.&amp;nbsp;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Chris&lt;/p&gt;</description>
   <author>Christopher Schwarz</author>
   <pubDate>Wed, 29 Apr 2026 15:05:04 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16000&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>Resource recommendations</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16000&amp;forum_id=9635</link>
   <description>&lt;p&gt;I am setting up an mri_reface pipeline on our SGE cluster. I've been experimenting with memory limits and multithreading. I'll share my results from my initial tests. If Chris et al. want to weigh in with any insider recommendations, I'd appreciate it, and I hope it may be useful to others.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;I am using an apptainer image created from the mri_reface docker image.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt;Memory:&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;4 GB: stopped with MATLAB runtime out of memory error&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;8 GB: completed refacing but skipped generating the PNG snapshots&lt;/p&gt;&lt;br /&gt;
&lt;p class=&quot;p1&quot; style=&quot;padding-left: 40px;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;Generating renders for QC use&lt;br&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;deNoseWrap failed. Skipping deNoseWrap.&lt;br&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;#&lt;br&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;# There is insufficient memory for the Java Runtime Environment to continue.&lt;br&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;# Native memory allocation (malloc) failed to allocate 24 bytes for AllocateHeap&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p class=&quot;p1&quot;&gt;&lt;span class=&quot;s1&quot;&gt;12 GB: ran with no memory errors or warnings&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p class=&quot;p1&quot;&gt;&lt;strong&gt;&lt;span class=&quot;s1&quot;&gt;CPU&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p class=&quot;p1&quot;&gt;&lt;span class=&quot;s1&quot;&gt;Single threaded:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p class=&quot;p1&quot; style=&quot;padding-left: 40px;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;OMP: Warning #96: Cannot form a team with 4 threads, using 1 instead.&lt;br&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p class=&quot;p1&quot;&gt;&lt;span class=&quot;s1&quot;&gt;Using 4 threads (SGE submit script option `-pe smp 4`)&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p class=&quot;p1&quot; style=&quot;padding-left: 40px;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;OMP: Warning #96: Cannot form a team with 20 threads, using 4 instead.&lt;br&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p class=&quot;p1&quot;&gt;&lt;span class=&quot;s1&quot;&gt;I note the docs say there's not much gain to multithreading so I may ignore these warnings. I have not tested run time for different numbers of threads yet.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p class=&quot;p1&quot;&gt;&amp;nbsp;&lt;/p&gt;</description>
   <author>Paul Wright</author>
   <pubDate>Wed, 29 Apr 2026 14:52:49 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16000&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Suffix &amp;quot;_T1w&amp;quot; not recognized</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=15996&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;I added the BIDS suffixes in the last release after another request on this board. Actually what happened here is that you have two recognized strings (&amp;quot;T1w&amp;quot; and &amp;quot;MPRAGE&amp;quot;) in the same filename, and I didn't code it to understand that some strings are aliases of the same type, i.e. not in conflict with each other. I tried to help people by adding more strings, and it bit me by not accounting for some inputs having &amp;amp;gt;1 string (even though MPRAGE and _T1w together would be a pretty common name from dcm2niix). I agree that recognizing BIDS names is a worthy goal, but BIDS suffixes aren't detailed enough to handle everything (e.g. PET types you listed). Maybe the best answer is to prioritize BIDS suffixes when they exist and fall back to the rest when they don't. I think that would work, but I'll test some examples and think on it. That seems easier than building an &amp;quot;aliases&amp;quot; logic. Either way, thanks for reporting this. It's new to me, and I agree it's a bug.&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;That said, if you're planning this at large scale, I'd suggest your wrapper-scripts make use of the -imType option rather than rely on the guessing. The taxonomy of image types and common names in the wild is just too complicated to rely on it entirely. PET tracers have multiple names. Sometimes MR sequences have different vendor names too. Most of the time we assume &amp;quot;FLAIR&amp;quot; means T2-FLAIR, but &amp;quot;T1 FLAIR&amp;quot; exist and should be de-faced like a T1. It's complex. I will try to improve things because your example is definitely a common case that should work, but it'll never be perfect.&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Chris&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;</description>
   <author>Christopher Schwarz</author>
   <pubDate>Mon, 27 Apr 2026 16:23:28 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=15996&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Visualising changed voxels</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=15997&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;Originally posted by Christopher Schwarz:&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Hi Paul,&amp;lt;br&amp;gt;We have plans to add a more full featured QC interface in a future release. The program is not really &amp;quot;mask&amp;quot;-based because there's some &amp;quot;as-needed&amp;quot; logic applied in the regions, but what we recommend is simply displaying abs(original.nii-deFaced.nii)&amp;amp;gt;0 overlaid on the original in your favorite nii viewer (fsleyes for us), for inspection of &amp;quot;were brain voxels modified&amp;quot;. You can use fslmaths or similar for that operation quite easily. This should always be in addition to also viewing the produced .png files for the &amp;quot;was the whole face replaced&amp;quot; question.&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Best regards,&amp;lt;br&amp;gt;Chris Schwarz&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Thank you Chris. I had already done pretty much that for my test run, so glad we're thinking the same. I'll let you know what we learn testing mri_reface at scale and developing our QC approach.&amp;lt;/p&amp;gt;</description>
   <author>Paul Wright</author>
   <pubDate>Mon, 27 Apr 2026 14:39:34 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=15997&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Visualising changed voxels</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=15997&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Hi Paul,&amp;lt;br&amp;gt;We have plans to add a more full featured QC interface in a future release. The program is not really &amp;quot;mask&amp;quot;-based because there's some &amp;quot;as-needed&amp;quot; logic applied in the regions, but what we recommend is simply displaying abs(original.nii-deFaced.nii)&amp;amp;gt;0 overlaid on the original in your favorite nii viewer (fsleyes for us), for inspection of &amp;quot;were brain voxels modified&amp;quot;. You can use fslmaths or similar for that operation quite easily. This should always be in addition to also viewing the produced .png files for the &amp;quot;was the whole face replaced&amp;quot; question.&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Best regards,&amp;lt;br&amp;gt;Chris Schwarz&amp;lt;/p&amp;gt;</description>
   <author>Christopher Schwarz</author>
   <pubDate>Thu, 23 Apr 2026 21:17:02 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=15997&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>Visualising changed voxels</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=15997&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Is it possible to get mri_reface to save the masks it applied to the input image? This would make it easier in QC to identify cases where alignment failed and brain voxels were included.&amp;lt;/p&amp;gt;</description>
   <author>Paul Wright</author>
   <pubDate>Mon, 20 Apr 2026 15:27:50 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=15997&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>Suffix &amp;quot;_T1w&amp;quot; not recognized</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=15996&amp;forum_id=9635</link>
   <description>&lt;p&gt;I'm using BIDS naming, but the suffix &quot;_T1w&quot; was not recognized by mri_reface, so I had to specify &quot;-imType&quot; to run it. Error text:&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&quot;Unable to determine image type from filename for sub-paul_run-5_acq-MPRAGE_T1w. Use an input filename that contains one of: _T1, _T2, _T1w, _T2w,&lt;br&gt;_T2star, _T2starw, _FLAIR, _PD, _PDW, _FDG, _PIB, _AV45, _FBP, _FMT, _FBB, _TAU, _AV1451, _CT, or specify with -imType\n&quot;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;I note the help text lists different allowed strings:&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&quot;-imType &amp;lt;T1|T2|PD|T2ST|FLAIR|FDG|PIB|FBP|TAU|CT|AUTO&amp;gt;&quot;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Please add BIDS suffixes to the code in the next update, and make the help text and error text match. These include:&lt;/p&gt;&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
&lt;li&gt;T1w&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;T2w&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;T2star&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;T2starw&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;PDw&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;p&gt;The suffixes below are listed in the error message, but not in the help text, neither in the BIDS glossary. I don't have an opinion about recognizing these, but please remove them from the error message if you decide not to recognize them.&lt;/p&gt;&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
&lt;li&gt;AV45&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;FMT&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;FBB&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;AV1451&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;</description>
   <author>Paul Wright</author>
   <pubDate>Mon, 20 Apr 2026 15:25:34 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=15996&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: /tmp/ directory issues on local</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=15580&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Dear Chris,&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;I just wanted to provide an update. I tried to do everything on WSL2 (mounting my drive, loading Docker, running the .sh) and, combined with the above findings in this thread, I was able to get mri_reface to run.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Thank you so much for your help!&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Best,&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Anthony Kang&amp;lt;/p&amp;gt;</description>
   <author>Anthony Kang</author>
   <pubDate>Thu, 06 Nov 2025 18:54:05 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=15580&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: /tmp/ directory issues on local</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=15580&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Dear Chris,&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Thank you so much for getting back to me so fast!&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The part where I put the&amp;amp;nbsp;&amp;lt;strong&amp;gt;&amp;quot;C:/.../&amp;quot;&amp;amp;nbsp;&amp;lt;/strong&amp;gt;is where I omitted my username, which only contains lowercase and uppercase letters.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Currently, how I tried to set this up is that I downloaded mri_reface 0.3.5 and Docker on my Windows machine. Since I couldn't figure out how to run the .sh file on Windows, I opened a git GUI window, ran the docker load command in the git window, and tried to run the .sh file from there, which then led to the error that I had in the post.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;I wasn't sure if I could run mri_reface on my Windows PC because it is all that I currently have access to, so I just gave it a try. What kind of set up would be the easiest/would you recommend?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;I greatly appreciate your time and consideration. My apologies as I am very new to this and that I am trying things that should not be done.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Best,&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Anthony&amp;lt;/p&amp;gt;</description>
   <author>Anthony Kang</author>
   <pubDate>Fri, 31 Oct 2025 13:59:53 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=15580&amp;forum_id=9635</guid>
  </item>
 </channel>
</rss>
