Skip to content

Commit

Permalink
Merge pull request #25 from pylabel-project/dev
Browse files Browse the repository at this point in the history
To deploy version v0.1.31
  • Loading branch information
alexheat authored Feb 11, 2022
2 parents 9402b15 + 6433501 commit d18d52a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pylabel/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,15 @@ def ImportCoco(path, path_to_images=None, name=None):

categories = pd.json_normalize(annotations_json["categories"])
categories.columns = "cat_" + categories.columns

# Converting this to string resolves issue #23
categories.cat_id = categories.cat_id.astype(str)

df = annotations

# Converting this to string resolves issue #23
df.ann_category_id = df.ann_category_id.astype(str)

df[
["ann_bbox_xmin", "ann_bbox_ymin", "ann_bbox_width", "ann_bbox_height"]
] = pd.DataFrame(df.ann_bbox.tolist(), index=df.index)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
setup(
name="pylabel",
packages=["pylabel"],
version="0.1.30",
version="0.1.31",
description="Transform, analyze, and visualize computer vision annotations.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit d18d52a

Please sign in to comment.