Hi,
I’ve been having a problem recently with Topaz Extract which I’m not able to resolve.
I have a dataset with 10k micrographs. I trained two different models on these data: Both use the same selected particles, but one model using only 100 micrographs from the full dataset for training (model1), and the 2nd model uses 1000 micrographs for training (model2).
When I try using Topaz Extract with model 2, the job works all the time, but when I use model 1, the job sometimes works and sometimes does not. Using model 1, I’ve tried running Topaz Extract with all micrographs, and with split subsets of the data. When using all micrographs the job fails, and when using split subsets (100 micrographs), the job sometimes works for some subsets, but for other subsets it fails. For the subsets that fail, I’ve tried filtering out bad micrographs with bad CTF parameters, but it doesn’t make a difference.
When the jobs fail, I get the following error:
[CPU: 223.5 MB]
Traceback (most recent call last):
[CPU: 223.5 MB]
File “/software/apps/topaz/0.2.5/bin/topaz”, line 8, in
[CPU: 223.5 MB]
sys.exit(main())
[CPU: 223.5 MB]
File “/software/apps/topaz/0.2.5/lib/python3.6/site-packages/topaz/main.py”, line 148, in main
[CPU: 223.5 MB]
args.func(args)
[CPU: 223.5 MB]
File “/software/apps/topaz/0.2.5/lib/python3.6/site-packages/topaz/commands/extract.py”, line 288, in main
[CPU: 223.5 MB]
for path,score,coords in nms_iterator(stream, radius, threshold, pool=pool):
[CPU: 223.5 MB]
File “/software/apps/topaz/0.2.5/lib/python3.6/site-packages/topaz/commands/extract.py”, line 79, in nms_iterator
[CPU: 223.5 MB]
for name,score,coords in pool.imap_unordered(process, scores):
[CPU: 223.5 MB]
File “/software/apps/topaz/0.2.5/lib/python3.6/multiprocessing/pool.py”, line 735, in next
[CPU: 223.5 MB]
raise value
[CPU: 223.5 MB]
ValueError: cannot reshape array of size 0 into shape (1,1023,1440)
I’m not sure if it’s relevant, but I should note that I use cryosparc 4.2.1, with both Topaz 0.2.4 and 0.2.5.
When I was using cryosparc 3.3.2, no such problem occurred.
Does anyone know what is the problem, and how can I solve it?
Thanks!
Shifra