Skip to content

demo,demo_rfcn use cpu version of nms when in cpu_mode#87

Open
samlich wants to merge 1 commit intoYuwenXiong:masterfrom
samlich:master
Open

demo,demo_rfcn use cpu version of nms when in cpu_mode#87
samlich wants to merge 1 commit intoYuwenXiong:masterfrom
samlich:master

Conversation

@samlich
Copy link

@samlich samlich commented Oct 15, 2017

nms_wrapper.py uses CPU mode when cfg.USE_GPU_NMS isn't set or it's passed force_cpu as True.

When --cpu was provided, demo.py and demo_rfcn.py did not set cfg.USE_GPU_NMS, which defaulted to True. So, NMS always operated in GPU mode. This caused sometimes the console to spew 'unknown error', and the bounding boxes on each object to not be combined; in other setups the program did not run at all.

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

Successfully merging this pull request may close these issues.

1 participant