Noise2Map unhandle expection

27 views
Skip to first unread message

yoko “yokomaz” maz

unread,
Sep 4, 2025, 11:15:19 PMSep 4
to Warp
Hi community,
I'm trying to use Noise2Map to denoise my tomograms, I followed the tutorial to use command:

WarpTools ts_reconstruct --settings warp_tiltseries.settings --angpix 3.92 --halfamp_tilts

to generate even and odd tomograms, and I used the following command:

Noise2Map --observation1 warp_tiltseries/reconstruction/even --observation2 warp_tiltseries/reconstruction/odd --observation_combined warp_tiltseries/reconstruction --dont_flatten_spectrum --dont_augment --iterations 10000

to perform denoise, then I got this error:

Loading mask... done.
Preparing data:
Set pixel size to 3.92 based on map header.
Preparing 01122021_BrnoKrios_arctis_lam1_pos5_3.92Apx... Unhandled exception. Accord.DimensionMismatchException: Value does not fall within the expected range.
   at Warp.Image.Add(Image summands, UInt32 elements, UInt32 batch) in /work/jpma/chenxr/soft/warp_build/WarpLib/Image.cs:line 3205
   at Warp.Image.Add(Image summands) in /work/jpma/chenxr/soft/warp_build/WarpLib/Image.cs:line 3234
   at Noise2Map.Noise2Map.Main(String[] args) in /work/jpma/chenxr/soft/warp_build/Noise2Map/Noise2Map.cs:line 298
Aborted

I checked my tomograms, .mrc files, with imod header, It shows:

RO image file on unit   1 : ./even/01122021_BrnoKrios_arctis_lam1_pos5_3.92Apx.mrc     Size=   16777217 K

 Number of columns, rows, sections .....    2048    2048    1024
 Map mode ..............................    2   (32-bit real)              
 Start cols, rows, sects, grid x,y,z ...    0     0     0    2048   2048   1024
 Pixel spacing (Angstroms)..............   3.920      3.920      3.920    
 Cell angles ...........................   90.000   90.000   90.000
 Fast, medium, slow axes ...............    X    Y    Z
 Origin on x,y,z .......................    0.000       0.000       0.000    
 Minimum density ....................... -0.57512E-01
 Maximum density .......................  0.98546E-01

 Mean density ..........................   0.0000    
 tilt angles (original,current) ........   0.0   0.0   0.0   0.0   0.0   0.0
 Space group,# extra bytes,idtype,lens .        0        0        0        0

     0 Titles :

It shows that density is within -1 to 1, and I also checked with python file mrcfile, the max is 0.12836295, and min is -0.09485604. I dont understand why the value from imod and mrcfile are different, but it seems they are all between -1 and 1. Can someone help me out? Thanks!


Reply all
Reply to author
Forward
0 new messages