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
I am trying to scrape a part of one image and mask it in another image to check its capability of blending, , but it failed to mask the image due to memory allocation error, is there any way to pull this off for bigger size images ?? below i am attaching the error from CLI.
Please move the object to desired location to apparate.
Blending ...
Traceback (most recent call last):
File "main.py", line 82, in
poisson_blend_result = poisson_edit(source, target, target_mask, offset)
File "C:\Users\i29140\Documents\poisson-image-editing\poisson_image_editing.py", line 56, in poisson_edit
mat_A = laplacian_matrix(y_range, x_range)
File "C:\Users\i29140\Documents\poisson-image-editing\poisson_image_editing.py", line 25, in laplacian_matrix
mat_A = scipy.sparse.block_diag([mat_D] * n).tolil()
File "C:\Program Files (x86)\Python37-32\lib\site-packages\scipy\sparse\construct.py", line 677, in block_diag
return bmat(rows, format=format, dtype=dtype)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\scipy\sparse\construct.py", line 608, in bmat
data = np.empty(nnz, dtype=dtype)
MemoryError: Unable to allocate 363. MiB for an array with shape (47610792,) and data type float64
The text was updated successfully, but these errors were encountered:
Hiteshsaai
changed the title
Unable to target images of bigger size (in MB)
Unable to handle target images of bigger size (in MB)
May 18, 2020
I am trying to scrape a part of one image and mask it in another image to check its capability of blending, , but it failed to mask the image due to memory allocation error, is there any way to pull this off for bigger size images ?? below i am attaching the error from CLI.
Please move the object to desired location to apparate.
Blending ...
Traceback (most recent call last):
File "main.py", line 82, in
poisson_blend_result = poisson_edit(source, target, target_mask, offset)
File "C:\Users\i29140\Documents\poisson-image-editing\poisson_image_editing.py", line 56, in poisson_edit
mat_A = laplacian_matrix(y_range, x_range)
File "C:\Users\i29140\Documents\poisson-image-editing\poisson_image_editing.py", line 25, in laplacian_matrix
mat_A = scipy.sparse.block_diag([mat_D] * n).tolil()
File "C:\Program Files (x86)\Python37-32\lib\site-packages\scipy\sparse\construct.py", line 677, in block_diag
return bmat(rows, format=format, dtype=dtype)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\scipy\sparse\construct.py", line 608, in bmat
data = np.empty(nnz, dtype=dtype)
MemoryError: Unable to allocate 363. MiB for an array with shape (47610792,) and data type float64
The text was updated successfully, but these errors were encountered: