Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#15547 from AUTOMATIC1111/numpy-Depre…
Browse files Browse the repository at this point in the history
…cationWarning-product---prod

numpy DeprecationWarning product -> prod
  • Loading branch information
AUTOMATIC1111 authored Apr 21, 2024
2 parents a44ed23 + 63fd38a commit d74fc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/textual_inversion/image_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def lcg(m=2**32, a=1664525, c=1013904223, seed=0):

def xor_block(block):
g = lcg()
randblock = np.array([next(g) for _ in range(np.product(block.shape))]).astype(np.uint8).reshape(block.shape)
randblock = np.array([next(g) for _ in range(np.prod(block.shape))]).astype(np.uint8).reshape(block.shape)
return np.bitwise_xor(block.astype(np.uint8), randblock & 0x0F)


Expand Down

0 comments on commit d74fc56

Please sign in to comment.