Closed biochem-fan closed 3 years ago
Sure, happy to include this. Can you submit it as a pull request?
OK, I made a pull request.
I tested this on two commands:
python -m topaz.main preprocess -s 8
python -m topaz.main denoise --patch-size 1024
P.S.
I think the default value for --patch-size
should be changed to something reasonable for typical GPUs (768 or 1024).
Thanks, pull request merged.
I think the default value for --patch-size should be changed to something reasonable for typical GPUs (768 or 1024).
Seems reasonable. I changed it to 1024.
The upcoming RELION 4.0 will introduce MRC mode 12 (half precision float, i.e., float16) to save disk space.
Although RELION's Topaz wrapper converts float16 into float32 before calling Topaz, it would be nice if Topaz itself supports it in case people use it outside RELION.
A sample image is in ftp://ftp.mrc-lmb.cam.ac.uk/pub/tnakane/20170629_00024_frameImage_float16.mrc.
The following patch fixes
topaz preprocess
. Other sub-commands (denoise, particle_stack) probably need more changes but I don't have time to work on them at the moment.