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

where are input1.jpg and input2.jpg? And is there gtk3 support ? #53

Closed
jiapei100 opened this issue Oct 14, 2019 · 2 comments
Closed

where are input1.jpg and input2.jpg? And is there gtk3 support ? #53

jiapei100 opened this issue Oct 14, 2019 · 2 comments

Comments

@jiapei100
Copy link

jiapei100 commented Oct 14, 2019

longervision-GT72-6QE% python demo/demo.py --config-file configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml \
  --input ./demo/17790319373_bd19b24cfc_k.jpg \ 
  --opts MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl
[10/13 17:38:38 detectron2]: Arguments: Namespace(confidence_threshold=0.5, config_file='configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml', input=['./demo/17790319373_bd19b24cfc_k.jpg'], opts=['MODEL.WEIGHTS', 'detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl'], output=None, video_input=None, webcam=False)
WARNING [10/13 17:38:38 d2.config.compat]: Config 'configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml' has no VERSION. Assuming it to be compatible with latest v2.
[10/13 17:38:42 detectron2]: ./demo/17790319373_bd19b24cfc_k.jpg: detected 13 instances in 0.37s
Traceback (most recent call last):
  File "demo/demo.py", line 95, in <module>
    cv2.imshow("COCO detections", visualized_output.get_image()[:, :, ::-1])
cv2.error: OpenCV(4.1.1) /io/opencv/modules/highgui/src/window.cpp:627: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'
@ppwwyyxx
Copy link
Contributor

Your opencv installation cannot open a window. This is unrelated to detectron2.

If you don't know how to fix your opencv, you can use --output to let demo.py save outputs to a directory instead.

@jiapei100
Copy link
Author

@ppwwyyxx
Yeah... it's OpenCV's problem. Anyway, specifying --output is working properly. Thank you...

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

No branches or pull requests

2 participants