Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compressed_segmentation error #490

Open
xiuliren opened this issue Jul 14, 2021 · 2 comments
Open

compressed_segmentation error #490

xiuliren opened this issue Jul 14, 2021 · 2 comments
Labels
investigate This issue requires additional research.

Comments

@xiuliren
Copy link
Member

do you have any idea why does it happen?
It seems to work well with raw compression.

  File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
  File "/mnt/home/jwu/anaconda3/envs/reneu/lib/python3.7/site-packages/gevent/_compat.py", line 47, in reraise
    raise value.with_traceback(tb)
  File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  File "/mnt/home/jwu/anaconda3/envs/reneu/lib/python3.7/site-packages/cloudvolume/scheduler.py", line 60, in realupdatefn
    res = fn()
  File "/mnt/home/jwu/anaconda3/envs/reneu/lib/python3.7/site-packages/cloudvolume/datasource/precomputed/image/tx.py", line 332, in process
    do_upload(imgchunk, cloudpath)
  File "/mnt/home/jwu/anaconda3/envs/reneu/lib/python3.7/site-packages/cloudvolume/datasource/precomputed/image/tx.py", line 270, in do_upload
    encoded = chunks.encode(imgchunk, meta.encoding(mip), meta.compressed_segmentation_block_size(mip))
  File "/mnt/home/jwu/anaconda3/envs/reneu/lib/python3.7/site-packages/cloudvolume/chunks.py", line 52, in encode
    return encode_compressed_segmentation(img_chunk, block_size=block_size)
  File "/mnt/home/jwu/anaconda3/envs/reneu/lib/python3.7/site-packages/cloudvolume/chunks.py", line 139, in encode_compressed_segmentation
    return encode_compressed_segmentation_c_ext(subvol, block_size)
  File "/mnt/home/jwu/anaconda3/envs/reneu/lib/python3.7/site-packages/cloudvolume/chunks.py", line 158, in encode_compressed_segmentation_c_ext
    return cseg.compress(subvol, block_size=block_size, order=order)
  File "src/compressed_segmentation.pyx", line 71, in compressed_segmentation.compress
TypeError: 'NoneType' object is unsliceable
@william-silversmith
Copy link
Contributor

Hi Jingpeng! It looks like it corresponds to this line: https://github.com/seung-lab/compressedseg/blob/master/src/compressed_segmentation.pyx#L71

This makes me think that it's that there's no block size set. Make sure you set compressed_segmentation_block_size: [8,8,8] in the scale in the info file.

@william-silversmith
Copy link
Contributor

I doubt this was the source of your issue, but I fixed a similar issue for sharded formats here: b4e24d7

@william-silversmith william-silversmith added the investigate This issue requires additional research. label Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate This issue requires additional research.
Projects
None yet
Development

No branches or pull requests

2 participants