Repository navigation
Replies: 2 comments
|
Hello Mister, according to #1566 it seems that MMPose expects the input image in RGB. |
|
In MMPose 1.x, pass the BGR image straight from OpenCV. Do not convert it. Issue #1566 is about MMPose 0.x, whose pipeline loaded RGB. That changed in 1.0. How it works in 1.x:
The official demo does the same. frame = cv2.imread("img.jpg") # BGR
results = inference_topdown(pose_model, frame, bboxes) # no conversion
vis_img = mmcv.bgr2rgb(frame) # only for the Visualizer, which expects RGBIf you convert to RGB yourself, To check: run |
Uh oh!
There was an error while loading. Please reload this page.
I want to use MMPose top-down inference (fn. mmpose.apis.inference_topdown), using an ndarray image loaded via OpenCV (so in BGR channel order) as input image. I am using the 'RTMPose-m' model for human skeleton estimation.
My question now is - do I have to convert the input image from BGR to RGB before handing it over to the MMPose inference routine ?
Is there are general guideline for MMPose - e.g. input images for inference have to be always in RGB format ?
All reactions