Size error in helper funtion

Size error in helper funtion  

  By: shauryamadukuri on March 24, 2024, 10:50 a.m.

Hello all, the algorithm gives an erorr as below : PIL.Image.DecompressionBombError: Image size (5210645355 pixels) exceeds limit of 178956970 pixels, could be decompression bomb DOS attack.

this is completely to with helper.py, should i need to change the helper.py accordingly

Thank you

Re: Size error in helper funtion  

  By: yeganeh.madadi on March 26, 2024, 6:13 p.m.

Dear shauryamadukuri,

We have prepared helper.py and interference.py for your convenience and they are just a based code. But you as an algorithm developer should change both of them based on your approach or write new ones.

Thanks!

Re: Size error in helper funtion  

  By: shauryamadukuri on March 26, 2024, 6:44 p.m.

So can i write the helper function such that it only takes .png files as input or/ only .tiff files/ only .mda ?

Will in the backend of testing of the submission, the only png inputs are giving if my code is taking only png and change according for other if i take other inputs?

Thank you

 Last edited by: shauryamadukuri on March 26, 2024, 6:47 p.m., edited 2 times in total.

Re: Size error in helper funtion  

  By: yeganeh.madadi on March 26, 2024, 8:01 p.m.

Hi shauryamadukuri,

As you see in the training dataset, the format of images is .jpg not .png (it is the same format for the test dataset). If you would like to stack images you can use the .tiff format (as we used in the helper.py).

I hope it helps!

Thank you!