Fixed UTF-8 bug in convert_coco (#18412)
This commit is contained in:
parent
cf9ab17426
commit
2aac80d980
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ def convert_coco(
|
|||
# since LVIS val set contains images from COCO 2017 train in addition to the COCO 2017 val split.
|
||||
(fn / "train2017").mkdir(parents=True, exist_ok=True)
|
||||
(fn / "val2017").mkdir(parents=True, exist_ok=True)
|
||||
with open(json_file) as f:
|
||||
with open(json_file, encoding="utf-8") as f:
|
||||
data = json.load(f)
|
||||
|
||||
# Create image dict
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue