intellif-aihub 0.1.17__py3-none-any.whl → 0.1.19__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of intellif-aihub might be problematic. Click here for more details.
- aihub/__init__.py +1 -1
- aihub/models/labelfree.py +20 -0
- aihub/models/task_center.py +4 -1
- aihub/services/task_center.py +2 -0
- {intellif_aihub-0.1.17.dist-info → intellif_aihub-0.1.19.dist-info}/METADATA +1 -1
- {intellif_aihub-0.1.17.dist-info → intellif_aihub-0.1.19.dist-info}/RECORD +9 -9
- {intellif_aihub-0.1.17.dist-info → intellif_aihub-0.1.19.dist-info}/WHEEL +0 -0
- {intellif_aihub-0.1.17.dist-info → intellif_aihub-0.1.19.dist-info}/licenses/LICENSE +0 -0
- {intellif_aihub-0.1.17.dist-info → intellif_aihub-0.1.19.dist-info}/top_level.txt +0 -0
aihub/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.19"
|
aihub/models/labelfree.py
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
from enum import Enum
|
|
3
4
|
from typing import Optional
|
|
4
5
|
|
|
5
6
|
from pydantic import BaseModel, Field
|
|
6
7
|
|
|
7
8
|
|
|
9
|
+
class LabelProjectStatus(Enum):
|
|
10
|
+
"""标注状态"""
|
|
11
|
+
|
|
12
|
+
Pending = "pending"
|
|
13
|
+
"""未开始"""
|
|
14
|
+
Loading = "loading"
|
|
15
|
+
"""数据读取中"""
|
|
16
|
+
Error = "failed"
|
|
17
|
+
"""数据读取异常"""
|
|
18
|
+
In_Progress = "ready"
|
|
19
|
+
"""进行中"""
|
|
20
|
+
Finished = "finished"
|
|
21
|
+
"""标注完成"""
|
|
22
|
+
|
|
23
|
+
|
|
8
24
|
class Stats(BaseModel):
|
|
9
25
|
"""标注统计信息"""
|
|
26
|
+
|
|
10
27
|
total_annotations: int = Field(alias="total_annotations", description="总数据量")
|
|
11
28
|
labeled_annotations: int = Field(alias="labeled_annotations", description="已标注数据量")
|
|
12
29
|
total_labels: int = Field(alias="total_labels", description="总标签量")
|
|
@@ -19,9 +36,12 @@ class Stats(BaseModel):
|
|
|
19
36
|
|
|
20
37
|
class GetGlobalStatsResponse(BaseModel):
|
|
21
38
|
"""标注统计概况"""
|
|
39
|
+
|
|
22
40
|
global_stats: Stats = Field(alias="global_stats")
|
|
23
41
|
valid_ten_percent: bool = Field(alias="valid_ten_percent", description="是否完成验收10%")
|
|
24
42
|
valid_fifty_percent: bool = Field(alias="valid_fifty_percent", description="是否完成验收50%")
|
|
25
43
|
valid_hundred_percent: bool = Field(alias="valid_hundred_percent", description="是否完成验收100%")
|
|
26
44
|
data_exported_count: int = Field(alias="data_exported_count", description="已导出数据次数")
|
|
27
45
|
exported_dataset_name: str = Field(alias="exported_dataset_name", description="最新数据集名称")
|
|
46
|
+
status: LabelProjectStatus = Field(description="状态")
|
|
47
|
+
model_config = {"use_enum_values": True}
|
aihub/models/task_center.py
CHANGED
|
@@ -135,8 +135,11 @@ class LabelValidateStage(Enum):
|
|
|
135
135
|
"""任务验收阶段"""
|
|
136
136
|
|
|
137
137
|
TEN_PERCENT = "标注阶段(10%)"
|
|
138
|
+
"""10%阶段"""
|
|
138
139
|
FIFTY_PERCENT = "标注阶段(50%)"
|
|
139
|
-
|
|
140
|
+
"""50%阶段"""
|
|
141
|
+
LABEL_FINISHED = "标注阶段(100%)"
|
|
142
|
+
"""标注完成"""
|
|
140
143
|
|
|
141
144
|
|
|
142
145
|
class LabelValidateReq(BaseModel):
|
aihub/services/task_center.py
CHANGED
|
@@ -13,6 +13,7 @@ from __future__ import annotations
|
|
|
13
13
|
import datetime
|
|
14
14
|
|
|
15
15
|
import httpx
|
|
16
|
+
from loguru import logger
|
|
16
17
|
|
|
17
18
|
from .tag_resource_management import TagResourceManagementService
|
|
18
19
|
from .user_system import UserSystemService
|
|
@@ -200,6 +201,7 @@ task_priority="low", estimated_delivery_at= "2025-08-01")
|
|
|
200
201
|
stage=stage,
|
|
201
202
|
)
|
|
202
203
|
self.task_center.validate_label_project(task_id=task_id, payload=req)
|
|
204
|
+
logger.info(f"标注项目: {label_project_name} 完成了: {stage}, 验收结果: {passed}")
|
|
203
205
|
|
|
204
206
|
|
|
205
207
|
class _TaskCenter:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
aihub/__init__.py,sha256=
|
|
1
|
+
aihub/__init__.py,sha256=cAJAbAh288a9AL-3yxwFzEM1L26izSJ6wma5aiml_9Y,23
|
|
2
2
|
aihub/client.py,sha256=Fu3jlEy21T4nJDV5EXTDujy1_B3Pf6CSTyPwkj3PPuE,5574
|
|
3
3
|
aihub/exceptions.py,sha256=l2cMAvipTqQOio3o11fXsCCSCevbuK4PTsxofkobFjk,500
|
|
4
4
|
aihub/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -8,12 +8,12 @@ aihub/models/data_warehouse.py,sha256=zXvWwg7ySoFJMdqQ_1UMTNEKDMhu1hDHlWdBAXdizB
|
|
|
8
8
|
aihub/models/dataset_management.py,sha256=4DuQ0zM7jv73SJiqvieHLtn2Y-T6FIFV9r7bgzyCtDo,10790
|
|
9
9
|
aihub/models/document_center.py,sha256=od9bzx6krAS6ktIA-ChxeqGcch0v2wsS1flY2vuHXBc,1340
|
|
10
10
|
aihub/models/eval.py,sha256=4Gon4Sg4dOkyCx3KH2mO5ip3AhrBwrPC0UZA447HeoQ,910
|
|
11
|
-
aihub/models/labelfree.py,sha256=
|
|
11
|
+
aihub/models/labelfree.py,sha256=YUnUv0tjYSFAFzYtmbnLOha8rnDe32sb50HkPOclAzU,2016
|
|
12
12
|
aihub/models/model_center.py,sha256=DNMchrN0pYDcTMHApWNNVMrARF_i9Ng5xlAwHX5isYw,5935
|
|
13
13
|
aihub/models/model_training_platform.py,sha256=2zir5i-XvuxKKVYr4wuNYUC7nwMzetdtCRoysZ1W_Tc,11725
|
|
14
14
|
aihub/models/quota_schedule_management.py,sha256=LdXwKkpJd0jUFSHtTHUlFLlH-NUSmgywWtxwFg57CNk,12368
|
|
15
15
|
aihub/models/tag_resource_management.py,sha256=-FgiKyDIG7bZagzVRf-8rXWuqH9GyciDadxz5W2f3I8,2195
|
|
16
|
-
aihub/models/task_center.py,sha256=
|
|
16
|
+
aihub/models/task_center.py,sha256=rGCvrkDjHLLBQ46DtDA7UAJ4eBQ0jwxpQmSB1z3UHmw,6135
|
|
17
17
|
aihub/models/user_system.py,sha256=58f4w5g_SHUhX4vvJK6RXChCr6IDjX4i957suWYaxg8,12249
|
|
18
18
|
aihub/models/workflow_center.py,sha256=4xtI1WZ38ceXJ8gwDBj-QNjOiRlLO_8kGiQybdudJPY,20121
|
|
19
19
|
aihub/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -28,7 +28,7 @@ aihub/services/model_training_platform.py,sha256=38o6HJnyi3htFzpX7qj6UhzdqTchcXL
|
|
|
28
28
|
aihub/services/quota_schedule_management.py,sha256=UYOMwjXxJTgkpN6Rv5GzlcejtpZfu23PXlSKr0WihTY,9586
|
|
29
29
|
aihub/services/reporter.py,sha256=ot93SmhxgwDJOzlHSCwlxDOuSydTWUEUQ-Ctp97wJBQ,669
|
|
30
30
|
aihub/services/tag_resource_management.py,sha256=Bm_inSIzZbTc-e4LU9kvwtsPpM_yLwm8xzdrALjb6uY,2666
|
|
31
|
-
aihub/services/task_center.py,sha256=
|
|
31
|
+
aihub/services/task_center.py,sha256=ljy4lhyqVe2lnytp1h72mliqXUbSvEELT9KmxxPKdKc,8003
|
|
32
32
|
aihub/services/user_system.py,sha256=IqWL4bnsKyyzuGT5l6adnw0qNXlH9PSo1-C_pFyOSzA,18868
|
|
33
33
|
aihub/services/workflow_center.py,sha256=caKxOlba0J1s1RUK6RUm1ndJSwAcZXEakRanu3sGKPU,17468
|
|
34
34
|
aihub/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -36,8 +36,8 @@ aihub/utils/di.py,sha256=vFUzno5WbRKu6-pj8Hnz9IqT7xb9UDZQ4qpOFH1YAtM,11812
|
|
|
36
36
|
aihub/utils/download.py,sha256=ZZVbcC-PnN3PumV7ZiJ_-srkt4HPPovu2F6Faa2RrPE,1830
|
|
37
37
|
aihub/utils/http.py,sha256=AmfHHNjptuuSFx2T1twWCnerR_hLN_gd0lUs8z36ERA,547
|
|
38
38
|
aihub/utils/s3.py,sha256=ISIBP-XdBPkURpXnN56ZnIWokOOg2SRUh_qvxJk-G1Q,2187
|
|
39
|
-
intellif_aihub-0.1.
|
|
40
|
-
intellif_aihub-0.1.
|
|
41
|
-
intellif_aihub-0.1.
|
|
42
|
-
intellif_aihub-0.1.
|
|
43
|
-
intellif_aihub-0.1.
|
|
39
|
+
intellif_aihub-0.1.19.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
40
|
+
intellif_aihub-0.1.19.dist-info/METADATA,sha256=UOW5k_V7vETeUP9e1Jqb9_Bgzdr2Tfqdkto-BH3XhyQ,2949
|
|
41
|
+
intellif_aihub-0.1.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
42
|
+
intellif_aihub-0.1.19.dist-info/top_level.txt,sha256=vIvTtSIN73xv46BpYM-ctVGnyOiUQ9EWP_6ngvdIlvw,6
|
|
43
|
+
intellif_aihub-0.1.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|