Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /opendatalab_labelU /labelu /internal /application /command /sample.py
| from enum import Enum | |
| from typing import Annotated, List, Union | |
| from pydantic import BaseModel, Field | |
| from labelu.internal.domain.models.sample import SampleState | |
| class ExportType(str, Enum): | |
| """ | |
| export samle result file type | |
| """ | |
| JSON = "JSON" | |
| MASK = "MASK" | |
| COCO = "COCO" | |
| YOLO = "YOLO" | |
| CSV = "CSV" | |
| XML = "XML" | |
| LABEL_ME = "LABEL_ME" | |
| TF_RECORD = "TF_RECORD" | |
| PASCAL_VOC = "PASCAL_VOC" | |
| class CreateSampleCommand(BaseModel): | |
| file_id: int = Field( | |
| gt=0, | |
| description="description: attachment file id", | |
| ) | |
| data: Union[dict, None] = Field( | |
| default=None, | |
| description="description: annotation result of sample", | |
| ) | |
| class DeleteSampleCommand(BaseModel): | |
| sample_ids: List[int] = Field( | |
| min_length=1, | |
| description="description: attachment file id", | |
| ) | |
| class PatchSampleCommand(BaseModel): | |
| data: Union[dict, None] = Field( | |
| default=None, | |
| description="description: sample data, include result", | |
| ) | |
| annotated_count: Union[int, None] = Field( | |
| default=0, description="description: annotate result count" | |
| ) | |
| state: Union[SampleState, None] = Field( | |
| default=None, | |
| description="description: sample file state, must be 'SKIPPED', 'NEW', or None", | |
| ) | |
| class ExportSampleCommand(BaseModel): | |
| sample_ids: Union[List[Annotated[int, Field(gt=0)]], None] = Field( | |
| min_length=1, | |
| description="description: sample id", | |
| ) | |
Xet Storage Details
- Size:
- 1.5 kB
- Xet hash:
- 1180f50b0618f28b8c0bafbedc9c7086179c726632811c9f911ccaa852fa517d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.