fire-keeper / BlindWatermark

使用盲水印保护创作者的知识产权using invisible watermark to protect creator's intellectual property
GNU General Public License v3.0
1.29k stars 180 forks source link

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

Open cart88 opened 1 year ago

cart88 commented 1 year ago

ValueError: operands could not be broadcast together with shapes

cart88 commented 1 year ago

[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)