NCRF: slide/mask mismatch
If I follow the instructions for testing as given in readme. I get the following error
Traceback (most recent call last):
File "wsi/bin/probs_map.py", line 163, in <module>
main()
File "wsi/bin/probs_map.py", line 159, in main
run(args)
File "wsi/bin/probs_map.py", line 115, in run
args, cfg, flip='NONE', rotate='NONE')
File "wsi/bin/probs_map.py", line 87, in make_dataloader
flip=flip, rotate=rotate),
File "/media/udion/a2c5c487-f939-4b82-a348-86b3d1bdb024/udion_home/Projects/NCRF/wsi/bin/../../wsi/data/wsi_producer.py", line 42, in __init__
self._preprocess()
File "/media/udion/a2c5c487-f939-4b82-a348-86b3d1bdb024/udion_home/Projects/NCRF/wsi/bin/../../wsi/data/wsi_producer.py", line 55, in _preprocess
.format(X_slide, X_mask, Y_slide, Y_mask))
Exception: Slide/Mask dimension does not match , X_slide / X_mask : 98304 / 1536, Y_slide / Y_mask : 103936 / 2048
what’s the issue?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 30
@yil8 @udion
I upgraded my OpenSlide binary to 3.4.1 and the slides have the same dimension as mentioned by @yil8:
@meetshah1995 my binary version:
@yil8 The slide does not keep a consistent ratio occurs in Training dataset(almost all ). Tumor026: (97280, 220672) (48640, 110592) (24576, 55296) (12288, 27648) (6144, 13824) (3072, 7168) (1536, 3584) (1024, 2048) (512, 1024) (512, 512) Here is my solution in tisuue_mask.py:
@meetshah1995 Thanks so much for spotting this potential issue! I’ll add this into README.
I’m splitting the file using tiffsplit which created one tif file for each level:
@udion I was using the data from Google drive. BTW, there seems to be a application free download link from GigaDB, and I just downloaded
test_026.tif
, which gave me the correct level_dimensions: