TankZhouFirst / clinical-grade-computational-pathology-using-weakly-supervised-deep-learning-on-whole-slide-images

首个临床级别的 AI 系统可用源码
65 stars 16 forks source link

openslide.lowlevel.OpenSlideError: OpenJPEG error: Error decoding tile. #8

Open whyandbecause opened 2 years ago

whyandbecause commented 2 years ago

您好,我在使用MIL_train文件的时候出现如下错误,想请教下是什么问题?谢谢 File "/home/santiago/program/others/anaconda2/envs/guanjuwei/lib/python3.7/site-packages/openslide/deepzoom.py", line 173, in get_tile tile = self._osr.read_region(*args) File "/home/santiago/program/others/anaconda2/envs/guanjuwei/lib/python3.7/site-packages/openslide/init.py", line 237, in read_region self._osr, location[0], location[1], level, size[0], size[1] File "/home/santiago/program/others/anaconda2/envs/guanjuwei/lib/python3.7/site-packages/openslide/lowlevel.py", line 311, in read_region _read_region(slide, buf, x, y, level, w, h) File "/home/santiago/program/others/anaconda2/envs/guanjuwei/lib/python3.7/site-packages/openslide/lowlevel.py", line 225, in _check_error raise OpenSlideError(err) openslide.lowlevel.OpenSlideError: OpenJPEG error: Error decoding tile. Component 1 contains only 131072 blocks while component 0 has 262144 blocks

whyandbecause commented 2 years ago

img = self.slides[slideIDX].read_region(coord,self.level,(self.size,self.size)).convert('RGB')报错在这一行