paip-2019 / challenge

30 stars 10 forks source link

tif save problem #39

Closed zxzhaoeric closed 5 years ago

zxzhaoeric commented 5 years ago

Dear organizer,

When I save the results as tif files, "imsave(submission_filename, img, compress=9)", there comes an error that the data is too large for standard TIFF file. I am sure that the dimension of my results is the same as the level 0 dimension. How can I solve this problem?

Thanks

hjoonjang commented 5 years ago

Hi, @zxzhaoeric I've looked at the source code (here), and I guess you can either set the image's dtype as np.uint8 explicitly beforehand or give bigtiff=True kwargs explicitly.

If you still have the same problem after trying them, please let me know. Thanks

zxzhaoeric commented 5 years ago

@hjoonjang Thanks so much. It works!