Skip to content

Commit

Permalink
Merge pull request #55 from kurusugawa-computer/fix/write-annotation-…
Browse files Browse the repository at this point in the history
…image-filename

[filesystem write_annotation_image] 出力画像のファイル名から".json"を取り除く
  • Loading branch information
yuji38kwmt authored Sep 2, 2019
2 parents 79665d4 + 53f2cfd commit 81eb8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion annofabcli/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.6.0'
__version__ = '1.7.0'
2 changes: 1 addition & 1 deletion annofabcli/common/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def write_annotation_images_from_path(annotation_path: Path, image_size: InputDa
logger.debug(f"{parser.json_file_path} の画像化をスキップします。")
continue

output_image_file = output_dir_path / f"{parser.json_file_path}.{output_image_extension}"
output_image_file = output_dir_path / f"{Path(parser.json_file_path).stem}.{output_image_extension}"
write_annotation_image(parser, image_size=image_size, label_color_dict=label_color_dict,
background_color=background_color, output_image_file=output_image_file)
logger.debug(f"画像ファイル '{str(output_image_file)}' を生成しました。")
Expand Down

0 comments on commit 81eb8a7

Please sign in to comment.