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

Fix bugs on file integration and some code errors #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ngoc199
Copy link

@ngoc199 ngoc199 commented Jun 19, 2020

I have created the "images" folder for the main file to access.
And I also change "xrange" to "range", "map" to "list(map())" to make the code run

@Ai-is-light
Copy link

@ngoc199 can you run this repo successfully?

@ngoc199
Copy link
Author

ngoc199 commented Jul 16, 2020 via email

@AlexRMU
Copy link

AlexRMU commented Nov 10, 2020

@rohitrango and @ngoc199
I didn't change anything, all the folders and files are in place, just used the code from the documentation

/content/automatic-watermark-detection/src/estimate_watermark.py:19: UserWarning: Folder does not exist.
  warnings.warn("Folder does not exist.", UserWarning)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-6-fc55cc8dc01e> in <module>()
      2 from src import *
      3 
----> 4 gx, gy, gxlist, gylist = estimate_watermark('final/fotolia_processed')
      5 
      6 est, loss = poisson_reconstruct(gx, gy)

TypeError: 'NoneType' object is not iterable

@chrsle
Copy link

chrsle commented Nov 11, 2020

I am unable to run the repo successfully I keep getting this error ValueError: operands could not be broadcast together with shapes (3456,5184,3) (2242,3992,3)

@tyron
Copy link

tyron commented Aug 24, 2021

I'm getting

Exception has occurred: ValueError
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
  File "/Users/user/repos/automatic-watermark-detection/src/estimate_watermark.py", line 44, in estimate_watermark
    Wm_x = np.median(np.array(gradx), axis=0)
  File "/Users/user/repos/automatic-watermark-detection/main.py", line 3, in <module>
    gx, gy, gxlist, gylist = estimate_watermark('Resized')

How did you manage to get past that?

@liupengcnu
Copy link

liupengcnu commented Oct 21, 2021

I have created the "images" folder for the main file to access. And I also change "xrange" to "range", "map" to "list(map())" to make the code run
@ngoc199 您好,感谢您的debug思路,按照您的思路已经可以跑通代码了,但是有一个问题,就是我怎么利用这个代码处理水印图片呢?我看代码中imshow出来的都是裁减图片,且颜色也发生了改变,不能和原图片相对应,请问我应该怎么输入一张水印图,输出一张对应的去水印图片呢?就是作者在final中展示的那种,谢谢!

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