Skip to content

Commit

Permalink
Modify voc.py (#413)
Browse files Browse the repository at this point in the history
Remove the "forced lower case" when reading VOC class names.
  • Loading branch information
hhngdcz committed Aug 8, 2021
1 parent 902b372 commit 73ea206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolox/data/datasets/voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __call__(self, target):
difficult = int(obj.find("difficult").text) == 1
if not self.keep_difficult and difficult:
continue
name = obj.find("name").text.lower().strip()
name = obj.find("name").text.strip()
bbox = obj.find("bndbox")

pts = ["xmin", "ymin", "xmax", "ymax"]
Expand Down

0 comments on commit 73ea206

Please sign in to comment.