Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: operands could not be broadcast together with shapes #39

Open
cart88 opened this issue Jul 15, 2023 · 1 comment
Open

ValueError: operands could not be broadcast together with shapes #39

cart88 opened this issue Jul 15, 2023 · 1 comment

Comments

@cart88
Copy link

cart88 commented Jul 15, 2023

ValueError: operands could not be broadcast together with shapes

@cart88
Copy link
Author

cart88 commented Jul 15, 2023

[root@master BlindWatermark]# python3 bwm.py -k 4399 2333 32 -ex -r out1.png -wm pic/wm1.png -ws 64 64 -o out_wm.png -s
Namespace(block_shape=4, dwt_deep=1, embed=False, extract=True, key=[4399.0, 2333.0, 32.0], ori_img='out1.png', output='out_wm.png', show_ncc=True, wm='pic/wm1.png', wm_shape=['64', '64'])
Traceback (most recent call last):
File "bwm.py", line 61, in
test_ncc(args.wm,args.output)
File "/root/BlindWatermark/BlindWatermark/ncc.py", line 14, in test_ncc
print(NCC(a[:,:,i],b[:,:,i]))
File "/root/BlindWatermark/BlindWatermark/ncc.py", line 6, in NCC
cross_mul_sum=((A-A.mean())*(B-B.mean())).sum()
ValueError: operands could not be broadcast together with shapes (49,223) (64,64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant