Skip to content

Commit

Permalink
Fix for black==22.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Oct 24, 2022
1 parent c0454ca commit 1a2cadb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
shell: bash -l {0}
if: matrix.os != 'windows-latest'
run: |
pip install black==22.3.0
pip install black==22.8.0
black --line-length 79 --check --diff labelme/
- name: Test with pytest
Expand Down
14 changes: 12 additions & 2 deletions examples/instance_segmentation/labelme2coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ def main():
contributor=None,
date_created=now.strftime("%Y-%m-%d %H:%M:%S.%f"),
),
licenses=[dict(url=None, id=0, name=None,)],
licenses=[
dict(
url=None,
id=0,
name=None,
)
],
images=[
# license, url, file_name, height, width, date_captured, id
],
Expand All @@ -76,7 +82,11 @@ def main():
continue
class_name_to_id[class_name] = class_id
data["categories"].append(
dict(supercategory=None, id=class_id, name=class_name,)
dict(
supercategory=None,
id=class_id,
name=class_name,
)
)

out_ann_file = osp.join(args.output_dir, "annotations.json")
Expand Down

0 comments on commit 1a2cadb

Please sign in to comment.