CLAM
CLAM copied to clipboard
Run your own dataset
Hello, it seems like you're encountering an error while trying to convert your dataset from NIfTI format (nii.gz) to TIFF format (tif). The error message you provided indicates a problem with the code or data you are working with. Here's a translation of the error message and an explanation of the issue: progress: 0.00, 0/1 processing PD_175.tiff Traceback (most recent call last): File "/home/chenwj/anaconda3/envs/clam/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 1432, in squeeze squeeze = a.squeeze AttributeError: 'NoneType' object has no attribute 'squeeze'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "create_patches_fp.py", line 309, in
Hi, did you solve this problem? I meet the same one :(
I experienced this issue too. For me this happened, because I tried to use binary masks as a proxy and use those to get opencv contours. This didn't work, as the binary rgb images were converted to hsv color space internally, resulting in only zeros in the saturation channel. The saturation channel is used to compute contours on, resulting in no contours. Since there was no contour/hierarchy, hierarchy = np.squeeze(hierarchy, axis=(0,))[:, 2:]
failed.