You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, PIL has a maximum number of pixels of 89478485, i.e. a square image of 9500 pixels. Large high-resolution newspaper scans can be larger than that. @mittagessen increased this to accomodate up to 20,000 by 20,000 pixels in kraken, which seems reasonable and we should probably do the same.
The text was updated successfully, but these errors were encountered:
That's right. As large images are usually rectangles (not squares) and the crucial point in DOS attacks is the memory usage, limiting the total number of pixels to something lower than the x, y limits might also be acceptable.
Perhaps it is also necessary to have limits which can be configured to match the available computing resources.
I already experience such (unexpected) limits with Calamari and Kraken training (more than 64 GiB RAM for commonly used training data sets) and Dinglehopper (30 GiB RAM with two text files of about 3000 lines each).
By default, PIL has a maximum number of pixels of 89478485, i.e. a square image of 9500 pixels. Large high-resolution newspaper scans can be larger than that. @mittagessen increased this to accomodate up to 20,000 by 20,000 pixels in kraken, which seems reasonable and we should probably do the same.
The text was updated successfully, but these errors were encountered: