Deep Picker Inference error


I’m testing the Deep Picker and could run the Deep Train without problems, but get this error when using the inputs for Deep Inference:

[CPU: 2.90 GB]   Traceback (most recent call last):
  File "/data/loewith/tafurpet/software/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.7/site-packages/PIL/", line 510, in _save
    fh = fp.fileno()
AttributeError: '_idat' object has no attribute 'fileno'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cryosparc_worker/cryosparc_compute/", line 84, in
  File "cryosparc_worker/cryosparc_compute/jobs/deep_picker/", line 535, in
  File "cryosparc_worker/cryosparc_compute/jobs/deep_picker/", line 861, in
  File "cryosparc_worker/cryosparc_compute/jobs/deep_picker/", line 866, in
  File "cryosparc_worker/cryosparc_compute/jobs/deep_picker/", line 819, in
  File "/data/loewith/tafurpet/software/cryosparc/cryosparc_worker/cryosparc_compute/", line 97, in showarray
    PIL.Image.fromarray(newa, 'RGBA' if cmap is not None else None).save(f, fmt)
  File "/data/loewith/tafurpet/software/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.7/site-packages/PIL/", line 2151, in save
    save_handler(self, fp, filename)
  File "/data/loewith/tafurpet/software/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.7/site-packages/PIL/", line 1339, in _save
    ImageFile._save(im, _idat(fp, chunk), [("zip", (0, 0) + im.size, 0, rawmode)])
  File "/data/loewith/tafurpet/software/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.7/site-packages/PIL/", line 518, in _save
    e.setimage(, b)
SystemError: tile cannot extend outside image

Any help would be greatly appreciated!


I get the exact same error when trying the deep picker out on micrographs collected on a krios in superres mode. Training works fine but the inference job fails.

Me too! Fine during training, but same error during inference. Does anyone have any idea what causes this?

I’m getting the same behavior. Has a solution to this been found yet?

1 Like