Skip to content

Commit d705af4

Browse files
committed
demo code review update 2
1 parent b24713b commit d705af4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

demo/inference-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WORKERS: 24
1111
PRINT_FREQ: 100
1212

1313
DATASET:
14-
COLOR_RGB: FALSE
14+
COLOR_RGB: true
1515
DATASET: 'coco'
1616
DATA_FORMAT: jpg
1717
FLIP: true

demo/inference.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ def main():
261261
# pose estimation
262262
box = pred_boxes[0] # assume there is only 1 person
263263
center, scale = box_to_center_scale(box, cfg.MODEL.IMAGE_SIZE[0], cfg.MODEL.IMAGE_SIZE[1])
264-
pose_preds = get_pose_estimation_prediction(pose_model, image_bgr, center, scale)
264+
image_pose = image.copy() if cfg.DATASET.COLOR_RGB else image_bgr.copy()
265+
pose_preds = get_pose_estimation_prediction(pose_model, image_pose, center, scale)
265266

266267
new_csv_row = []
267268
for _, mat in enumerate(pose_preds[0]):

0 commit comments

Comments
 (0)