You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Can anyone let me know where I can add the confidence threshold in this code?
`from mmdet.apis import init_detector, inference_detector
import mmcv
config_file = 'configs/base/FasterRCNN_SGD.py'
checkpoint_file = 'work_dirs//FasterRCNN_SGD/epoch_12.pth'
model = init_detector(config_file, checkpoint_file, device='cuda:0')
img = './mmdetection/test/J18.jpg'
result = inference_detector(model, img)
model.show_result(img, result)
model.show_result(img, result, out_file='result.jpg')
`
Beta Was this translation helpful? Give feedback.
All reactions