Skip to content

Commit

Permalink
Merge pull request #105 from opendatalab/alpha
Browse files Browse the repository at this point in the history
Alpha
  • Loading branch information
gary-Shen authored Apr 23, 2024
2 parents c6a2ab4 + 2cb8869 commit 05f0e08
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
alpha_assets_url: https://github.com/opendatalab/labelU-Kit/releases/download/v5.0.0-alpha.14/frontend.zip
alpha_version: v5.0.0-alpha.14
release_assets_url: https://github.com/opendatalab/labelU-Kit/releases/download/v5.1.0/frontend.zip
release_version: v5.1.0
alpha_assets_url: https://github.com/opendatalab/labelU-Kit/releases/download/v5.1.0-alpha.14/frontend.zip
alpha_version: v5.1.0-alpha.14
release_assets_url: https://github.com/opendatalab/labelU-Kit/releases/download/v5.2.1/frontend.zip
release_version: v5.2.1
2 changes: 1 addition & 1 deletion labelu/internal/adapter/routers/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def list_by(
pageNo: Union[int, None] = Query(default=None, ge=0),
pageSize: Union[int, None] = 100,
sort: Union[str, None] = Query(
default=None, regex="(annotated_count|state):(desc|asc)"
default=None, regex="(annotated_count|state|inner_id|updated_at):(desc|asc)"
),
authorization: HTTPAuthorizationCredentials = Security(security),
db: Session = Depends(db.get_db),
Expand Down
17 changes: 7 additions & 10 deletions labelu/internal/common/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,13 @@ def convert_to_coco(
polygon_area = _polygonArea(x_coordinates, y_coordinates)
elif tool.get("toolName") == "rectTool":
# rect
if (
tool_result.get("x")
and tool_result.get("y")
and tool_result.get("width")
and tool_result.get("height")
):
bbox.append(tool_result.get("x"))
bbox.append(tool_result.get("y"))
bbox.append(tool_result.get("width"))
bbox.append(tool_result.get("height"))
x = tool_result.get("x")
y = tool_result.get("y")
width = tool_result.get("width")
height = tool_result.get("height")

if x is not None and y is not None and width is not None and height is not None:
bbox.extend([x, y, width, height])
polygon_area = tool_result.get("width", 0) * tool_result.get(
"height", 0
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "labelu"
version = '1.0.4'
version = '1.0.5-alpha.9'
description = ""
license = "Apache-2.0"
authors = ["pengjinhu <[email protected]>"]
Expand Down

0 comments on commit 05f0e08

Please sign in to comment.