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

I use ' runner.test' and I get an error, can you tell me how to solve to solve it? #2

Open
Tian14267 opened this issue Aug 3, 2017 · 3 comments

Comments

@Tian14267
Copy link

Tian14267 commented Aug 3, 2017

I run the "runner.test" and I get the error like this ;
" cv2.namedWindow("outputs", cv2.WINDOW_NORMAL)
cv2.error: /io/opencv/modules/highgui/src/window.cpp:565: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow "
And I delete " cv2.namedWindow("outputs", cv2.WINDOW_NORMAL) " in the runner.test, then I get this;
" File "/home/tian/tensorflow/example/11/shinTB-master/main.py", line 22, in
runner.test(1000)
File "/home/tian/tensorflow/example/11/shinTB-master/shintb/runner.py", line 196, in test
self.outputdrawer.draw_outputs(test_imgs[0], output_boxes, output_confidence, wait=1)
File "/home/tian/tensorflow/example/11/shinTB-master/shintb/output_drawer.py", line 104, in draw_outputs
I = cv2.rectangle(I, rect_start, rect_end, (255, 0, 0) , 5 )
TypeError: integer argument expected, got float "

And the returned value is :
" FILTERED BOXES INFO : [([-inf, -inf, inf, inf], 0.49975014, 0)...
PICKED BOXES INFO : [([-inf, -inf, inf, inf], 0.49975014, 0)] "

can you tell me how to solve this problem?
Thank you for your help.

@saifhassan
Copy link

Hello @Tian14267
I got same error
Did you solve this issue?
@shinjayne Please help

Thanks in advance

@LuiCB
Copy link

LuiCB commented Jun 2, 2018

Hello,
I have the same error. Besides, I have overflow warnings at
shinTB/shintb/output_drawer.py:56: RuntimeWarning: overflow encountered in exp
w = original[2] * np.exp(diffs[2]) # w * exp(dw)
shinTB/shintb/output_drawer.py:57: RuntimeWarning: overflow encountered in exp
h = original[3] * np.exp(diffs[3]) # h * exp(dh)
shinTB/shintb/output_drawer.py:63: RuntimeWarning: overflow encountered in exp
np.amax(np.exp(logits) / (np.sum(np.exp(logits)) + 1e-3)),
which might lead to the TypeError.

Have anyone solved this issue?

@DarrenCheung
Copy link

I would like to know how to fix this problem?
It is infeasible if convert x,y,w,h into integer.

I would appreciate it if you could help us on this issue.

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

4 participants