foolwood / foolwood/SiamMask

run demo.py error

Open
#41 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.6k
Forks
804
PR merge metrics
No merged PRs in 30d

Description

python3 ../../tools/demo.py --resume SiamMask_DAVIS.pth --config config_davis.json
[2019-05-14 16:31:21,238-rk0-load_helper.py# 31] load pretrained model from SiamMask_DAVIS.pth
[2019-05-14 16:31:23,679-rk0-load_helper.py# 25] remove prefix 'module.'
[2019-05-14 16:31:23,680-rk0-load_helper.py# 18] used keys:356
Xlib: extension "RANDR" missing on display ":0".
Select a ROI and then press SPACE or ENTER button!
Cancel the selection process by pressing c button!
/home/sdu/.local/lib/python3.5/site-packages/torch/nn/functional.py:1890: UserWarning: nn.functional.upsample is deprecated. Use nn.functional.interpolate instead.
warnings.warn("nn.functional.upsample is deprecated. Use nn.functional.interpolate instead.")
Traceback (most recent call last):
File "../../tools/demo.py", line 54, in
state = siamese_track(state, im, mask_enable=True, refine_enable=True) # track
File "/home/sdu/SiamMask/tools/test.py", line 285, in siamese_track
_, contours, _ = cv2.findContours(target_mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
ValueError: not enough values to unpack (expected 3, got 2)

I haven't corrected the code in it, but after drawing the area and entering the "Enter" key, the above error occurred. Do you have a solution? Thank you very much.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.