mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Removed annoyance
Took out the print statement 'no image data blocks found' as it happens frequently as embeddings rarely have image data.
This commit is contained in:
@@ -113,7 +113,6 @@ def extract_image_data_embed(image):
|
||||
outarr = crop_black(np.array(image.convert('RGB').getdata()).reshape(image.size[1], image.size[0], d).astype(np.uint8)) & 0x0F
|
||||
black_cols = np.where(np.sum(outarr, axis=(0, 2)) == 0)
|
||||
if black_cols[0].shape[0] < 2:
|
||||
print('No Image data blocks found.')
|
||||
return None
|
||||
|
||||
data_block_lower = outarr[:, :black_cols[0].min(), :].astype(np.uint8)
|
||||
|
||||
Reference in New Issue
Block a user