Skip to content

Commit 40b63e7

Browse files
rizavelioglufacebook-github-bot
authored andcommitted
[fix] Typo in LMDBConversion (#699)
Summary: Fix typo when extracting image features from .mdb file to .npy files. **Fix:** In **Line#95** image height is set to be the image width, which is wrong: https://github.com/facebookresearch/mmf/blob/518a5a675586e4dc1b415a52a8a80c75edfc2960/tools/scripts/features/lmdb_conversion.py#L95-L96 Pull Request resolved: #699 Reviewed By: apsdehal Differential Revision: D25219613 Pulled By: vedanuj fbshipit-source-id: 3735ae890fcbba27cbd206086d582224866b051e
1 parent a221f06 commit 40b63e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/scripts/features/lmdb_conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def extract(self):
9292
tmp_dict["image_id"] = img_id
9393
tmp_dict["bbox"] = item["bbox"]
9494
tmp_dict["num_boxes"] = item["num_boxes"]
95-
tmp_dict["image_height"] = item["image_width"]
95+
tmp_dict["image_height"] = item["image_height"]
9696
tmp_dict["image_width"] = item["image_width"]
9797
tmp_dict["objects"] = item["objects"]
9898
tmp_dict["cls_prob"] = item["cls_prob"]

0 commit comments

Comments
 (0)