dataverse-sdk 2.5.2__tar.gz → 2.5.4__tar.gz
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.
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/PKG-INFO +28 -29
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/README.md +27 -28
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/client.py +1 -1
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/constants.py +3 -3
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/schemas/client.py +14 -7
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk.egg-info/PKG-INFO +28 -29
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/setup.py +1 -1
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/__init__.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/apis/__init__.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/apis/backend.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/apis/third_party.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/connections.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/exceptions/__init__.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/exceptions/client.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/export/__init__.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/export/base.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/export/coco.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/export/constant.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/export/exporter.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/export/utils.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/export/visionai.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/export/vqa.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/export/yolo.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/schemas/__init__.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/schemas/api.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/schemas/common.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/schemas/format.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/utils/__init__.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk/utils/utils.py +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk.egg-info/SOURCES.txt +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk.egg-info/dependency_links.txt +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk.egg-info/requires.txt +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/dataverse_sdk.egg-info/top_level.txt +0 -0
- {dataverse_sdk-2.5.2 → dataverse_sdk-2.5.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dataverse-sdk
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.4
|
|
4
4
|
Summary: Dataverse SDK For Python
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: LinkerVision
|
|
@@ -35,7 +35,7 @@ Use Dataverse-SDK for Python to help you to interact with the Dataverse platform
|
|
|
35
35
|
- List models for your selected project-id
|
|
36
36
|
- Get and download your model
|
|
37
37
|
|
|
38
|
-
[Package (PyPi)](https://pypi.org/project/dataverse-sdk/) | [Source code](https://github.com/
|
|
38
|
+
[Package (PyPi)](https://pypi.org/project/dataverse-sdk/) | [Source code](https://github.com/linkervision/dataverse-sdk)
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
## Getting started
|
|
@@ -69,7 +69,7 @@ client2 = DataverseClient(
|
|
|
69
69
|
assert client2 is get_connection(client2.alias)
|
|
70
70
|
|
|
71
71
|
client3 = DataverseClient(
|
|
72
|
-
host=DataverseHost.PRODUCTION.value, email="XXX", password="", service_id="xxxx-xxxx-xx-xxx", access_token="xxx"
|
|
72
|
+
host=DataverseHost.PRODUCTION.value, email="XXX", password="", service_id="xxxx-xxxx-xx-xxx", access_token="xxx", alias="client3", force = False
|
|
73
73
|
)
|
|
74
74
|
assert client3 is get_connection(client3.alias)
|
|
75
75
|
```
|
|
@@ -78,7 +78,7 @@ assert client3 is get_connection(client3.alias)
|
|
|
78
78
|
|
|
79
79
|
| Argument name | Type/Options | Default | Description |
|
|
80
80
|
| :--- | :--- | :--- | :--- |
|
|
81
|
-
| host | str | *-- | the host url of the dataverse site
|
|
81
|
+
| host | str | *-- | the host url of the dataverse site |
|
|
82
82
|
| email | str | *-- | the email account of your dataverse workspace |
|
|
83
83
|
| password | str | *-- | the password of your dataverse workspace |
|
|
84
84
|
| service_id | str | *-- | The service id of the dataverse you want to connect |
|
|
@@ -129,7 +129,7 @@ The `list_projects` method will list all projects of the given sites.
|
|
|
129
129
|
```Python
|
|
130
130
|
projects = client.list_projects(current_user = True,
|
|
131
131
|
exclude_sensor_type=SensorType.LIDAR,
|
|
132
|
-
image_type=
|
|
132
|
+
image_type=OntologyImageType._2D_BOUNDING_BOX)
|
|
133
133
|
|
|
134
134
|
```
|
|
135
135
|
|
|
@@ -139,7 +139,7 @@ projects = client.list_projects(current_user = True,
|
|
|
139
139
|
| :--- | :--- | :--- | :--- |
|
|
140
140
|
| current_user | bool | True | only show the projects of current user |
|
|
141
141
|
| exclude_sensor_type | SensorType.CAMERA <br> SensorType.LIDAR| None | exclude the projects with the given sensor type |
|
|
142
|
-
| image_type | OntologyImageType._2D_BOUNDING_BOX <br> OntologyImageType.SEMANTIC_SEGMENTATION <br> OntologyImageType.CLASSIFICATION <br> OntologyImageType.POINT<br> OntologyImageType.POLYGON <br> OntologyImageType.POLYLINE | None | only include the projects with the given image type |
|
|
142
|
+
| image_type | OntologyImageType._2D_BOUNDING_BOX <br> OntologyImageType.SEMANTIC_SEGMENTATION <br> OntologyImageType.INSTANCE_SEGMENTATION <br> OntologyImageType.CLASSIFICATION <br> OntologyImageType.POINT<br> OntologyImageType.POLYGON <br> OntologyImageType.POLYLINE <br> OntologyImageType.VQA | None | only include the projects with the given image type |
|
|
143
143
|
|
|
144
144
|
<br>
|
|
145
145
|
|
|
@@ -167,7 +167,7 @@ ontology = Ontology(
|
|
|
167
167
|
],
|
|
168
168
|
)
|
|
169
169
|
```
|
|
170
|
-
For project with camera sensor, there would be only one image_type for one project. You could choose from `[OntologyImageType._2D_BOUNDING_BOX, OntologyImageType.SEMANTIC_SEGMENTATION, OntologyImageType.CLASSIFICATION, OntologyImageType.POINT, OntologyImageType.POLYGON, OntologyImageType.POLYLINE]`.
|
|
170
|
+
For project with camera sensor, there would be only one image_type for one project. You could choose from `[OntologyImageType._2D_BOUNDING_BOX, OntologyImageType.SEMANTIC_SEGMENTATION, OntologyImageType.INSTANCE_SEGMENTATION, OntologyImageType.CLASSIFICATION, OntologyImageType.POINT, OntologyImageType.POLYGON, OntologyImageType.POLYLINE, OntologyImageType.VQA]`.
|
|
171
171
|
|
|
172
172
|
For project with lidar sensor, your should assign `pcd_type = OntologyPcdType.CUBOID` for the ontology.
|
|
173
173
|
|
|
@@ -213,7 +213,7 @@ project = client.create_project(name="Sample project", ontology=ontology, sensor
|
|
|
213
213
|
|
|
214
214
|
### Get Project
|
|
215
215
|
|
|
216
|
-
The `
|
|
216
|
+
The `get_project` method retrieves the project from the connected site. The `project_id` parameter is the unique integer ID of the project, not its "name" property.
|
|
217
217
|
|
|
218
218
|
```Python
|
|
219
219
|
project = client.get_project(project_id= 1, client_alias=client.alias) # if client_alias is not provided, we'll get it from client
|
|
@@ -364,7 +364,6 @@ dataset = project.create_dataset(**dataset_data)
|
|
|
364
364
|
| storage_url | str | *-- | your cloud storage url |
|
|
365
365
|
| container_name | str | None | azure container name |
|
|
366
366
|
| data_folder | str | *-- | the relative data folder from the storage_url and container |
|
|
367
|
-
| sensors | list[Sensor] | *-- | the list of Sensor of your dataset (one or more from project specified sensors) |
|
|
368
367
|
| type | DatasetType.ANNOTATED_DATA <br> DatasetType.RAW_DATA | *-- | your dataset type (annotated or raw data)|
|
|
369
368
|
| annotation_format | AnnotationFormat.VISION_AI <br> AnnotationFormat.KITTI <br> AnnotationFormat.COCO <br> AnnotationFormat.YOLO <br> AnnotationFormat.IMAGE <br> AnnotationFormat.BDDP <br> AnnotationFormat.VIDEO <br> AnnotationFormat.VLM <br>| *-- | the format of your annotation data |
|
|
370
369
|
| annotations | list[str] | None | list of names for your annotation data folders, such as ["groundtruth"] |
|
|
@@ -391,7 +390,6 @@ dataset_data2 = {
|
|
|
391
390
|
"storage_url": "",
|
|
392
391
|
"container_name": "",
|
|
393
392
|
"data_folder": "/YOUR/TARGET/LOCAL/FOLDER",
|
|
394
|
-
"sensors": project.sensors,
|
|
395
393
|
"type": DatasetType.ANNOTATED_DATA, # or DatasetType.RAW_DATA for images
|
|
396
394
|
"annotation_format": AnnotationFormat.VISION_AI,
|
|
397
395
|
"annotations": ["groundtruth"], # remove it when type is DatasetType.RAW_DATA
|
|
@@ -405,7 +403,7 @@ dataset2 = project.create_dataset(**dataset_data2)
|
|
|
405
403
|
|
|
406
404
|
Your could also use the script for importing dataset from local
|
|
407
405
|
```
|
|
408
|
-
python tools/import_dataset_from_local.py -host
|
|
406
|
+
python tools/import_dataset_from_local.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -project {project-id} --folder {/YOUR/TARGET/LOCAL/FOLDER} -name {dataset-name} -type {raw_data OR annotated_data} -anno {image OR vision_ai} --sequential
|
|
409
407
|
```
|
|
410
408
|
<br>
|
|
411
409
|
|
|
@@ -537,13 +535,13 @@ The `create_vqa_project` method will create project on the connected site with t
|
|
|
537
535
|
# 1) Create question class with question and answer type pair
|
|
538
536
|
question_answer = [ QuestionClass(class_name="question1", rank=1, question="Is any person found in the picture?",
|
|
539
537
|
answer_type="boolean"),
|
|
540
|
-
QuestionClass(class_name="question2", rank=2, question="What is the blob color of traffic light?", answer_type="option",answer_options=["red","
|
|
538
|
+
QuestionClass(class_name="question2", rank=2, question="What is the blob color of traffic light?", answer_type="option",answer_options=["red","yellow","green"])
|
|
541
539
|
]
|
|
542
540
|
```
|
|
543
541
|
|
|
544
542
|
```Python
|
|
545
543
|
# 2) Create your VQA project as below
|
|
546
|
-
project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", ontology_name="vqa-ontology" question_answer=question_answer)
|
|
544
|
+
project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", ontology_name="vqa-ontology", question_answer=question_answer)
|
|
547
545
|
```
|
|
548
546
|
|
|
549
547
|
* Input arguments for creating project:
|
|
@@ -553,7 +551,7 @@ project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", o
|
|
|
553
551
|
| name | str | *-- | name of your project |
|
|
554
552
|
| sensor_name | str | *-- | the camera sensor name |
|
|
555
553
|
| ontology_name | str | *-- | the ontology name |
|
|
556
|
-
| question_answer| list[QuestionClass] | *-- | your question/answer_type |
|
|
554
|
+
| question_answer| list[QuestionClass] | *-- | your question/answer_type. `QuestionClass.answer_type` valid values: `boolean`, `option`, `number`, `text` |
|
|
557
555
|
| description | str | None | your project description |
|
|
558
556
|
|
|
559
557
|
`*--`: required argument without default
|
|
@@ -572,15 +570,16 @@ project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", o
|
|
|
572
570
|
create_questions = [QuestionClass(class_name="question3", rank=3, question="Age?",answer_type="number")]
|
|
573
571
|
update_questions = [{"rank": 2, "question": "What is the blob color of traffic light?(the closet one)", "options":["black"] }]
|
|
574
572
|
|
|
575
|
-
#
|
|
576
|
-
client.edit_vqa_ontology(project_id=24,
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
project
|
|
582
|
-
|
|
583
|
-
|
|
573
|
+
# Through client
|
|
574
|
+
client.edit_vqa_ontology(project_id=24, ontology_name="ontology-new-name",
|
|
575
|
+
create=create_questions,
|
|
576
|
+
update=update_questions,
|
|
577
|
+
client_alias=client.alias)
|
|
578
|
+
|
|
579
|
+
# Through project object
|
|
580
|
+
project.edit_vqa_ontology(ontology_name="ontology-new-name",
|
|
581
|
+
create=create_questions,
|
|
582
|
+
update=update_questions)
|
|
584
583
|
```
|
|
585
584
|
|
|
586
585
|
### Get Question List
|
|
@@ -598,28 +597,28 @@ output = client.get_question_list(project_id=107, output_file_path="./question.j
|
|
|
598
597
|
|
|
599
598
|
### Import Your Local Dataset
|
|
600
599
|
```
|
|
601
|
-
python tools/import_dataset_from_local.py -host
|
|
600
|
+
python tools/import_dataset_from_local.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -project {project-id} --folder {/YOUR/TARGET/LOCAL/FOLDER} -name {dataset-name} -type {raw_data OR annotated_data} -anno {image OR vision_ai} --sequential
|
|
602
601
|
```
|
|
603
602
|
|
|
604
603
|
### Import VQA Local Dataset
|
|
605
604
|
```
|
|
606
|
-
python tools/import_vqa_dataset.py -host
|
|
605
|
+
python tools/import_vqa_dataset.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -project {project-id} --folder {/YOUR/TARGET/LOCAL/FOLDER} -type {raw_data OR annotated_data}
|
|
607
606
|
|
|
608
607
|
```
|
|
609
608
|
|
|
610
609
|
### Export Dataslice and download files
|
|
611
610
|
```
|
|
612
|
-
python tools/export_dataslice.py -host
|
|
611
|
+
python tools/export_dataslice.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -dataslice {dataslice_id} -f {/YOUR/TARGET/LOCAL/file.zip}
|
|
613
612
|
```
|
|
614
613
|
|
|
615
614
|
### Export Large Dataslice and download files
|
|
616
615
|
```
|
|
617
|
-
python tools/export_dataslice_large.py -host
|
|
616
|
+
python tools/export_dataslice_large.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -dataslice {dataslice_id} --anno {export-model-name / groundtruth} --target_folder {folder path} --export-format {coco, visionai, yolo, vlm ...etc}
|
|
618
617
|
```
|
|
619
618
|
|
|
620
619
|
### Upload videos to create session tasks
|
|
621
620
|
```
|
|
622
|
-
python tools/upload_videos_create_session.py -host
|
|
621
|
+
python tools/upload_videos_create_session.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -f {/YOUR/VIDEOS/LOCAL/FOLDER} -n {session-name}
|
|
623
622
|
```
|
|
624
623
|
|
|
625
624
|
- Advanced arguments for video curation (sequential data):
|
|
@@ -633,4 +632,4 @@ python tools/upload_videos_create_session.py -host https://visionai.linkervision
|
|
|
633
632
|
|
|
634
633
|
## Links to language repos
|
|
635
634
|
|
|
636
|
-
[Python Readme](https://github.com/
|
|
635
|
+
[Python Readme](https://github.com/linkervision/dataverse-sdk/blob/master/python/README.md)
|
|
@@ -8,7 +8,7 @@ Use Dataverse-SDK for Python to help you to interact with the Dataverse platform
|
|
|
8
8
|
- List models for your selected project-id
|
|
9
9
|
- Get and download your model
|
|
10
10
|
|
|
11
|
-
[Package (PyPi)](https://pypi.org/project/dataverse-sdk/) | [Source code](https://github.com/
|
|
11
|
+
[Package (PyPi)](https://pypi.org/project/dataverse-sdk/) | [Source code](https://github.com/linkervision/dataverse-sdk)
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
## Getting started
|
|
@@ -42,7 +42,7 @@ client2 = DataverseClient(
|
|
|
42
42
|
assert client2 is get_connection(client2.alias)
|
|
43
43
|
|
|
44
44
|
client3 = DataverseClient(
|
|
45
|
-
host=DataverseHost.PRODUCTION.value, email="XXX", password="", service_id="xxxx-xxxx-xx-xxx", access_token="xxx"
|
|
45
|
+
host=DataverseHost.PRODUCTION.value, email="XXX", password="", service_id="xxxx-xxxx-xx-xxx", access_token="xxx", alias="client3", force = False
|
|
46
46
|
)
|
|
47
47
|
assert client3 is get_connection(client3.alias)
|
|
48
48
|
```
|
|
@@ -51,7 +51,7 @@ assert client3 is get_connection(client3.alias)
|
|
|
51
51
|
|
|
52
52
|
| Argument name | Type/Options | Default | Description |
|
|
53
53
|
| :--- | :--- | :--- | :--- |
|
|
54
|
-
| host | str | *-- | the host url of the dataverse site
|
|
54
|
+
| host | str | *-- | the host url of the dataverse site |
|
|
55
55
|
| email | str | *-- | the email account of your dataverse workspace |
|
|
56
56
|
| password | str | *-- | the password of your dataverse workspace |
|
|
57
57
|
| service_id | str | *-- | The service id of the dataverse you want to connect |
|
|
@@ -102,7 +102,7 @@ The `list_projects` method will list all projects of the given sites.
|
|
|
102
102
|
```Python
|
|
103
103
|
projects = client.list_projects(current_user = True,
|
|
104
104
|
exclude_sensor_type=SensorType.LIDAR,
|
|
105
|
-
image_type=
|
|
105
|
+
image_type=OntologyImageType._2D_BOUNDING_BOX)
|
|
106
106
|
|
|
107
107
|
```
|
|
108
108
|
|
|
@@ -112,7 +112,7 @@ projects = client.list_projects(current_user = True,
|
|
|
112
112
|
| :--- | :--- | :--- | :--- |
|
|
113
113
|
| current_user | bool | True | only show the projects of current user |
|
|
114
114
|
| exclude_sensor_type | SensorType.CAMERA <br> SensorType.LIDAR| None | exclude the projects with the given sensor type |
|
|
115
|
-
| image_type | OntologyImageType._2D_BOUNDING_BOX <br> OntologyImageType.SEMANTIC_SEGMENTATION <br> OntologyImageType.CLASSIFICATION <br> OntologyImageType.POINT<br> OntologyImageType.POLYGON <br> OntologyImageType.POLYLINE | None | only include the projects with the given image type |
|
|
115
|
+
| image_type | OntologyImageType._2D_BOUNDING_BOX <br> OntologyImageType.SEMANTIC_SEGMENTATION <br> OntologyImageType.INSTANCE_SEGMENTATION <br> OntologyImageType.CLASSIFICATION <br> OntologyImageType.POINT<br> OntologyImageType.POLYGON <br> OntologyImageType.POLYLINE <br> OntologyImageType.VQA | None | only include the projects with the given image type |
|
|
116
116
|
|
|
117
117
|
<br>
|
|
118
118
|
|
|
@@ -140,7 +140,7 @@ ontology = Ontology(
|
|
|
140
140
|
],
|
|
141
141
|
)
|
|
142
142
|
```
|
|
143
|
-
For project with camera sensor, there would be only one image_type for one project. You could choose from `[OntologyImageType._2D_BOUNDING_BOX, OntologyImageType.SEMANTIC_SEGMENTATION, OntologyImageType.CLASSIFICATION, OntologyImageType.POINT, OntologyImageType.POLYGON, OntologyImageType.POLYLINE]`.
|
|
143
|
+
For project with camera sensor, there would be only one image_type for one project. You could choose from `[OntologyImageType._2D_BOUNDING_BOX, OntologyImageType.SEMANTIC_SEGMENTATION, OntologyImageType.INSTANCE_SEGMENTATION, OntologyImageType.CLASSIFICATION, OntologyImageType.POINT, OntologyImageType.POLYGON, OntologyImageType.POLYLINE, OntologyImageType.VQA]`.
|
|
144
144
|
|
|
145
145
|
For project with lidar sensor, your should assign `pcd_type = OntologyPcdType.CUBOID` for the ontology.
|
|
146
146
|
|
|
@@ -186,7 +186,7 @@ project = client.create_project(name="Sample project", ontology=ontology, sensor
|
|
|
186
186
|
|
|
187
187
|
### Get Project
|
|
188
188
|
|
|
189
|
-
The `
|
|
189
|
+
The `get_project` method retrieves the project from the connected site. The `project_id` parameter is the unique integer ID of the project, not its "name" property.
|
|
190
190
|
|
|
191
191
|
```Python
|
|
192
192
|
project = client.get_project(project_id= 1, client_alias=client.alias) # if client_alias is not provided, we'll get it from client
|
|
@@ -337,7 +337,6 @@ dataset = project.create_dataset(**dataset_data)
|
|
|
337
337
|
| storage_url | str | *-- | your cloud storage url |
|
|
338
338
|
| container_name | str | None | azure container name |
|
|
339
339
|
| data_folder | str | *-- | the relative data folder from the storage_url and container |
|
|
340
|
-
| sensors | list[Sensor] | *-- | the list of Sensor of your dataset (one or more from project specified sensors) |
|
|
341
340
|
| type | DatasetType.ANNOTATED_DATA <br> DatasetType.RAW_DATA | *-- | your dataset type (annotated or raw data)|
|
|
342
341
|
| annotation_format | AnnotationFormat.VISION_AI <br> AnnotationFormat.KITTI <br> AnnotationFormat.COCO <br> AnnotationFormat.YOLO <br> AnnotationFormat.IMAGE <br> AnnotationFormat.BDDP <br> AnnotationFormat.VIDEO <br> AnnotationFormat.VLM <br>| *-- | the format of your annotation data |
|
|
343
342
|
| annotations | list[str] | None | list of names for your annotation data folders, such as ["groundtruth"] |
|
|
@@ -364,7 +363,6 @@ dataset_data2 = {
|
|
|
364
363
|
"storage_url": "",
|
|
365
364
|
"container_name": "",
|
|
366
365
|
"data_folder": "/YOUR/TARGET/LOCAL/FOLDER",
|
|
367
|
-
"sensors": project.sensors,
|
|
368
366
|
"type": DatasetType.ANNOTATED_DATA, # or DatasetType.RAW_DATA for images
|
|
369
367
|
"annotation_format": AnnotationFormat.VISION_AI,
|
|
370
368
|
"annotations": ["groundtruth"], # remove it when type is DatasetType.RAW_DATA
|
|
@@ -378,7 +376,7 @@ dataset2 = project.create_dataset(**dataset_data2)
|
|
|
378
376
|
|
|
379
377
|
Your could also use the script for importing dataset from local
|
|
380
378
|
```
|
|
381
|
-
python tools/import_dataset_from_local.py -host
|
|
379
|
+
python tools/import_dataset_from_local.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -project {project-id} --folder {/YOUR/TARGET/LOCAL/FOLDER} -name {dataset-name} -type {raw_data OR annotated_data} -anno {image OR vision_ai} --sequential
|
|
382
380
|
```
|
|
383
381
|
<br>
|
|
384
382
|
|
|
@@ -510,13 +508,13 @@ The `create_vqa_project` method will create project on the connected site with t
|
|
|
510
508
|
# 1) Create question class with question and answer type pair
|
|
511
509
|
question_answer = [ QuestionClass(class_name="question1", rank=1, question="Is any person found in the picture?",
|
|
512
510
|
answer_type="boolean"),
|
|
513
|
-
QuestionClass(class_name="question2", rank=2, question="What is the blob color of traffic light?", answer_type="option",answer_options=["red","
|
|
511
|
+
QuestionClass(class_name="question2", rank=2, question="What is the blob color of traffic light?", answer_type="option",answer_options=["red","yellow","green"])
|
|
514
512
|
]
|
|
515
513
|
```
|
|
516
514
|
|
|
517
515
|
```Python
|
|
518
516
|
# 2) Create your VQA project as below
|
|
519
|
-
project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", ontology_name="vqa-ontology" question_answer=question_answer)
|
|
517
|
+
project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", ontology_name="vqa-ontology", question_answer=question_answer)
|
|
520
518
|
```
|
|
521
519
|
|
|
522
520
|
* Input arguments for creating project:
|
|
@@ -526,7 +524,7 @@ project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", o
|
|
|
526
524
|
| name | str | *-- | name of your project |
|
|
527
525
|
| sensor_name | str | *-- | the camera sensor name |
|
|
528
526
|
| ontology_name | str | *-- | the ontology name |
|
|
529
|
-
| question_answer| list[QuestionClass] | *-- | your question/answer_type |
|
|
527
|
+
| question_answer| list[QuestionClass] | *-- | your question/answer_type. `QuestionClass.answer_type` valid values: `boolean`, `option`, `number`, `text` |
|
|
530
528
|
| description | str | None | your project description |
|
|
531
529
|
|
|
532
530
|
`*--`: required argument without default
|
|
@@ -545,15 +543,16 @@ project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", o
|
|
|
545
543
|
create_questions = [QuestionClass(class_name="question3", rank=3, question="Age?",answer_type="number")]
|
|
546
544
|
update_questions = [{"rank": 2, "question": "What is the blob color of traffic light?(the closet one)", "options":["black"] }]
|
|
547
545
|
|
|
548
|
-
#
|
|
549
|
-
client.edit_vqa_ontology(project_id=24,
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
project
|
|
555
|
-
|
|
556
|
-
|
|
546
|
+
# Through client
|
|
547
|
+
client.edit_vqa_ontology(project_id=24, ontology_name="ontology-new-name",
|
|
548
|
+
create=create_questions,
|
|
549
|
+
update=update_questions,
|
|
550
|
+
client_alias=client.alias)
|
|
551
|
+
|
|
552
|
+
# Through project object
|
|
553
|
+
project.edit_vqa_ontology(ontology_name="ontology-new-name",
|
|
554
|
+
create=create_questions,
|
|
555
|
+
update=update_questions)
|
|
557
556
|
```
|
|
558
557
|
|
|
559
558
|
### Get Question List
|
|
@@ -571,28 +570,28 @@ output = client.get_question_list(project_id=107, output_file_path="./question.j
|
|
|
571
570
|
|
|
572
571
|
### Import Your Local Dataset
|
|
573
572
|
```
|
|
574
|
-
python tools/import_dataset_from_local.py -host
|
|
573
|
+
python tools/import_dataset_from_local.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -project {project-id} --folder {/YOUR/TARGET/LOCAL/FOLDER} -name {dataset-name} -type {raw_data OR annotated_data} -anno {image OR vision_ai} --sequential
|
|
575
574
|
```
|
|
576
575
|
|
|
577
576
|
### Import VQA Local Dataset
|
|
578
577
|
```
|
|
579
|
-
python tools/import_vqa_dataset.py -host
|
|
578
|
+
python tools/import_vqa_dataset.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -project {project-id} --folder {/YOUR/TARGET/LOCAL/FOLDER} -type {raw_data OR annotated_data}
|
|
580
579
|
|
|
581
580
|
```
|
|
582
581
|
|
|
583
582
|
### Export Dataslice and download files
|
|
584
583
|
```
|
|
585
|
-
python tools/export_dataslice.py -host
|
|
584
|
+
python tools/export_dataslice.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -dataslice {dataslice_id} -f {/YOUR/TARGET/LOCAL/file.zip}
|
|
586
585
|
```
|
|
587
586
|
|
|
588
587
|
### Export Large Dataslice and download files
|
|
589
588
|
```
|
|
590
|
-
python tools/export_dataslice_large.py -host
|
|
589
|
+
python tools/export_dataslice_large.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -dataslice {dataslice_id} --anno {export-model-name / groundtruth} --target_folder {folder path} --export-format {coco, visionai, yolo, vlm ...etc}
|
|
591
590
|
```
|
|
592
591
|
|
|
593
592
|
### Upload videos to create session tasks
|
|
594
593
|
```
|
|
595
|
-
python tools/upload_videos_create_session.py -host
|
|
594
|
+
python tools/upload_videos_create_session.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -f {/YOUR/VIDEOS/LOCAL/FOLDER} -n {session-name}
|
|
596
595
|
```
|
|
597
596
|
|
|
598
597
|
- Advanced arguments for video curation (sequential data):
|
|
@@ -606,4 +605,4 @@ python tools/upload_videos_create_session.py -host https://visionai.linkervision
|
|
|
606
605
|
|
|
607
606
|
## Links to language repos
|
|
608
607
|
|
|
609
|
-
[Python Readme](https://github.com/
|
|
608
|
+
[Python Readme](https://github.com/linkervision/dataverse-sdk/blob/master/python/README.md)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from enum import Enum, EnumMeta
|
|
2
|
-
from typing import Any
|
|
2
|
+
from typing import Any
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class BaseEnumMeta(EnumMeta):
|
|
6
|
-
_value_set:
|
|
6
|
+
_value_set: set[Any] | None = None
|
|
7
7
|
|
|
8
8
|
def __contains__(cls, item):
|
|
9
9
|
if cls._value_set is None:
|
|
@@ -16,5 +16,5 @@ class DataverseHost(str, Enum, metaclass=BaseEnumMeta):
|
|
|
16
16
|
DEV2 = "https://dev2.visionai.linkervision.com/dataverse/curation"
|
|
17
17
|
DEV3 = "https://dev3.visionai.linkervision.com/dataverse/curation"
|
|
18
18
|
STAGING = "https://staging.visionai.linkervision.com/dataverse/curation"
|
|
19
|
-
PRODUCTION = "https://visionai.linkervision.
|
|
19
|
+
PRODUCTION = "https://visionai.linkervision.com/dataverse/curation"
|
|
20
20
|
LOCAL = "http://localhost:8000"
|
|
@@ -315,14 +315,21 @@ class Project(BaseModel):
|
|
|
315
315
|
) -> None:
|
|
316
316
|
from dataverse_sdk.utils.utils import validate_before_create_dataset
|
|
317
317
|
|
|
318
|
+
if self.sensors is None:
|
|
319
|
+
from ..client import DataverseClient
|
|
320
|
+
|
|
321
|
+
project = DataverseClient.get_client_project(
|
|
322
|
+
project_id=self.id, client_alias=self.client_alias
|
|
323
|
+
)
|
|
324
|
+
self.sensors = project.sensors or []
|
|
325
|
+
|
|
318
326
|
sensor_counts = SensorCounts(camera=0, lidar=0)
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
sensor_counts.lidar += 1
|
|
327
|
+
for sensor in self.sensors:
|
|
328
|
+
sensor_type: SensorType = getattr(sensor, "type", "")
|
|
329
|
+
if sensor_type == SensorType.CAMERA:
|
|
330
|
+
sensor_counts.camera += 1
|
|
331
|
+
elif sensor_type == SensorType.LIDAR:
|
|
332
|
+
sensor_counts.lidar += 1
|
|
326
333
|
|
|
327
334
|
image_type = None
|
|
328
335
|
pcd_type = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dataverse-sdk
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.4
|
|
4
4
|
Summary: Dataverse SDK For Python
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: LinkerVision
|
|
@@ -35,7 +35,7 @@ Use Dataverse-SDK for Python to help you to interact with the Dataverse platform
|
|
|
35
35
|
- List models for your selected project-id
|
|
36
36
|
- Get and download your model
|
|
37
37
|
|
|
38
|
-
[Package (PyPi)](https://pypi.org/project/dataverse-sdk/) | [Source code](https://github.com/
|
|
38
|
+
[Package (PyPi)](https://pypi.org/project/dataverse-sdk/) | [Source code](https://github.com/linkervision/dataverse-sdk)
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
## Getting started
|
|
@@ -69,7 +69,7 @@ client2 = DataverseClient(
|
|
|
69
69
|
assert client2 is get_connection(client2.alias)
|
|
70
70
|
|
|
71
71
|
client3 = DataverseClient(
|
|
72
|
-
host=DataverseHost.PRODUCTION.value, email="XXX", password="", service_id="xxxx-xxxx-xx-xxx", access_token="xxx"
|
|
72
|
+
host=DataverseHost.PRODUCTION.value, email="XXX", password="", service_id="xxxx-xxxx-xx-xxx", access_token="xxx", alias="client3", force = False
|
|
73
73
|
)
|
|
74
74
|
assert client3 is get_connection(client3.alias)
|
|
75
75
|
```
|
|
@@ -78,7 +78,7 @@ assert client3 is get_connection(client3.alias)
|
|
|
78
78
|
|
|
79
79
|
| Argument name | Type/Options | Default | Description |
|
|
80
80
|
| :--- | :--- | :--- | :--- |
|
|
81
|
-
| host | str | *-- | the host url of the dataverse site
|
|
81
|
+
| host | str | *-- | the host url of the dataverse site |
|
|
82
82
|
| email | str | *-- | the email account of your dataverse workspace |
|
|
83
83
|
| password | str | *-- | the password of your dataverse workspace |
|
|
84
84
|
| service_id | str | *-- | The service id of the dataverse you want to connect |
|
|
@@ -129,7 +129,7 @@ The `list_projects` method will list all projects of the given sites.
|
|
|
129
129
|
```Python
|
|
130
130
|
projects = client.list_projects(current_user = True,
|
|
131
131
|
exclude_sensor_type=SensorType.LIDAR,
|
|
132
|
-
image_type=
|
|
132
|
+
image_type=OntologyImageType._2D_BOUNDING_BOX)
|
|
133
133
|
|
|
134
134
|
```
|
|
135
135
|
|
|
@@ -139,7 +139,7 @@ projects = client.list_projects(current_user = True,
|
|
|
139
139
|
| :--- | :--- | :--- | :--- |
|
|
140
140
|
| current_user | bool | True | only show the projects of current user |
|
|
141
141
|
| exclude_sensor_type | SensorType.CAMERA <br> SensorType.LIDAR| None | exclude the projects with the given sensor type |
|
|
142
|
-
| image_type | OntologyImageType._2D_BOUNDING_BOX <br> OntologyImageType.SEMANTIC_SEGMENTATION <br> OntologyImageType.CLASSIFICATION <br> OntologyImageType.POINT<br> OntologyImageType.POLYGON <br> OntologyImageType.POLYLINE | None | only include the projects with the given image type |
|
|
142
|
+
| image_type | OntologyImageType._2D_BOUNDING_BOX <br> OntologyImageType.SEMANTIC_SEGMENTATION <br> OntologyImageType.INSTANCE_SEGMENTATION <br> OntologyImageType.CLASSIFICATION <br> OntologyImageType.POINT<br> OntologyImageType.POLYGON <br> OntologyImageType.POLYLINE <br> OntologyImageType.VQA | None | only include the projects with the given image type |
|
|
143
143
|
|
|
144
144
|
<br>
|
|
145
145
|
|
|
@@ -167,7 +167,7 @@ ontology = Ontology(
|
|
|
167
167
|
],
|
|
168
168
|
)
|
|
169
169
|
```
|
|
170
|
-
For project with camera sensor, there would be only one image_type for one project. You could choose from `[OntologyImageType._2D_BOUNDING_BOX, OntologyImageType.SEMANTIC_SEGMENTATION, OntologyImageType.CLASSIFICATION, OntologyImageType.POINT, OntologyImageType.POLYGON, OntologyImageType.POLYLINE]`.
|
|
170
|
+
For project with camera sensor, there would be only one image_type for one project. You could choose from `[OntologyImageType._2D_BOUNDING_BOX, OntologyImageType.SEMANTIC_SEGMENTATION, OntologyImageType.INSTANCE_SEGMENTATION, OntologyImageType.CLASSIFICATION, OntologyImageType.POINT, OntologyImageType.POLYGON, OntologyImageType.POLYLINE, OntologyImageType.VQA]`.
|
|
171
171
|
|
|
172
172
|
For project with lidar sensor, your should assign `pcd_type = OntologyPcdType.CUBOID` for the ontology.
|
|
173
173
|
|
|
@@ -213,7 +213,7 @@ project = client.create_project(name="Sample project", ontology=ontology, sensor
|
|
|
213
213
|
|
|
214
214
|
### Get Project
|
|
215
215
|
|
|
216
|
-
The `
|
|
216
|
+
The `get_project` method retrieves the project from the connected site. The `project_id` parameter is the unique integer ID of the project, not its "name" property.
|
|
217
217
|
|
|
218
218
|
```Python
|
|
219
219
|
project = client.get_project(project_id= 1, client_alias=client.alias) # if client_alias is not provided, we'll get it from client
|
|
@@ -364,7 +364,6 @@ dataset = project.create_dataset(**dataset_data)
|
|
|
364
364
|
| storage_url | str | *-- | your cloud storage url |
|
|
365
365
|
| container_name | str | None | azure container name |
|
|
366
366
|
| data_folder | str | *-- | the relative data folder from the storage_url and container |
|
|
367
|
-
| sensors | list[Sensor] | *-- | the list of Sensor of your dataset (one or more from project specified sensors) |
|
|
368
367
|
| type | DatasetType.ANNOTATED_DATA <br> DatasetType.RAW_DATA | *-- | your dataset type (annotated or raw data)|
|
|
369
368
|
| annotation_format | AnnotationFormat.VISION_AI <br> AnnotationFormat.KITTI <br> AnnotationFormat.COCO <br> AnnotationFormat.YOLO <br> AnnotationFormat.IMAGE <br> AnnotationFormat.BDDP <br> AnnotationFormat.VIDEO <br> AnnotationFormat.VLM <br>| *-- | the format of your annotation data |
|
|
370
369
|
| annotations | list[str] | None | list of names for your annotation data folders, such as ["groundtruth"] |
|
|
@@ -391,7 +390,6 @@ dataset_data2 = {
|
|
|
391
390
|
"storage_url": "",
|
|
392
391
|
"container_name": "",
|
|
393
392
|
"data_folder": "/YOUR/TARGET/LOCAL/FOLDER",
|
|
394
|
-
"sensors": project.sensors,
|
|
395
393
|
"type": DatasetType.ANNOTATED_DATA, # or DatasetType.RAW_DATA for images
|
|
396
394
|
"annotation_format": AnnotationFormat.VISION_AI,
|
|
397
395
|
"annotations": ["groundtruth"], # remove it when type is DatasetType.RAW_DATA
|
|
@@ -405,7 +403,7 @@ dataset2 = project.create_dataset(**dataset_data2)
|
|
|
405
403
|
|
|
406
404
|
Your could also use the script for importing dataset from local
|
|
407
405
|
```
|
|
408
|
-
python tools/import_dataset_from_local.py -host
|
|
406
|
+
python tools/import_dataset_from_local.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -project {project-id} --folder {/YOUR/TARGET/LOCAL/FOLDER} -name {dataset-name} -type {raw_data OR annotated_data} -anno {image OR vision_ai} --sequential
|
|
409
407
|
```
|
|
410
408
|
<br>
|
|
411
409
|
|
|
@@ -537,13 +535,13 @@ The `create_vqa_project` method will create project on the connected site with t
|
|
|
537
535
|
# 1) Create question class with question and answer type pair
|
|
538
536
|
question_answer = [ QuestionClass(class_name="question1", rank=1, question="Is any person found in the picture?",
|
|
539
537
|
answer_type="boolean"),
|
|
540
|
-
QuestionClass(class_name="question2", rank=2, question="What is the blob color of traffic light?", answer_type="option",answer_options=["red","
|
|
538
|
+
QuestionClass(class_name="question2", rank=2, question="What is the blob color of traffic light?", answer_type="option",answer_options=["red","yellow","green"])
|
|
541
539
|
]
|
|
542
540
|
```
|
|
543
541
|
|
|
544
542
|
```Python
|
|
545
543
|
# 2) Create your VQA project as below
|
|
546
|
-
project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", ontology_name="vqa-ontology" question_answer=question_answer)
|
|
544
|
+
project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", ontology_name="vqa-ontology", question_answer=question_answer)
|
|
547
545
|
```
|
|
548
546
|
|
|
549
547
|
* Input arguments for creating project:
|
|
@@ -553,7 +551,7 @@ project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", o
|
|
|
553
551
|
| name | str | *-- | name of your project |
|
|
554
552
|
| sensor_name | str | *-- | the camera sensor name |
|
|
555
553
|
| ontology_name | str | *-- | the ontology name |
|
|
556
|
-
| question_answer| list[QuestionClass] | *-- | your question/answer_type |
|
|
554
|
+
| question_answer| list[QuestionClass] | *-- | your question/answer_type. `QuestionClass.answer_type` valid values: `boolean`, `option`, `number`, `text` |
|
|
557
555
|
| description | str | None | your project description |
|
|
558
556
|
|
|
559
557
|
`*--`: required argument without default
|
|
@@ -572,15 +570,16 @@ project = client.create_vqa_project(name="vqa-project", sensor_name="camera1", o
|
|
|
572
570
|
create_questions = [QuestionClass(class_name="question3", rank=3, question="Age?",answer_type="number")]
|
|
573
571
|
update_questions = [{"rank": 2, "question": "What is the blob color of traffic light?(the closet one)", "options":["black"] }]
|
|
574
572
|
|
|
575
|
-
#
|
|
576
|
-
client.edit_vqa_ontology(project_id=24,
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
project
|
|
582
|
-
|
|
583
|
-
|
|
573
|
+
# Through client
|
|
574
|
+
client.edit_vqa_ontology(project_id=24, ontology_name="ontology-new-name",
|
|
575
|
+
create=create_questions,
|
|
576
|
+
update=update_questions,
|
|
577
|
+
client_alias=client.alias)
|
|
578
|
+
|
|
579
|
+
# Through project object
|
|
580
|
+
project.edit_vqa_ontology(ontology_name="ontology-new-name",
|
|
581
|
+
create=create_questions,
|
|
582
|
+
update=update_questions)
|
|
584
583
|
```
|
|
585
584
|
|
|
586
585
|
### Get Question List
|
|
@@ -598,28 +597,28 @@ output = client.get_question_list(project_id=107, output_file_path="./question.j
|
|
|
598
597
|
|
|
599
598
|
### Import Your Local Dataset
|
|
600
599
|
```
|
|
601
|
-
python tools/import_dataset_from_local.py -host
|
|
600
|
+
python tools/import_dataset_from_local.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -project {project-id} --folder {/YOUR/TARGET/LOCAL/FOLDER} -name {dataset-name} -type {raw_data OR annotated_data} -anno {image OR vision_ai} --sequential
|
|
602
601
|
```
|
|
603
602
|
|
|
604
603
|
### Import VQA Local Dataset
|
|
605
604
|
```
|
|
606
|
-
python tools/import_vqa_dataset.py -host
|
|
605
|
+
python tools/import_vqa_dataset.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -project {project-id} --folder {/YOUR/TARGET/LOCAL/FOLDER} -type {raw_data OR annotated_data}
|
|
607
606
|
|
|
608
607
|
```
|
|
609
608
|
|
|
610
609
|
### Export Dataslice and download files
|
|
611
610
|
```
|
|
612
|
-
python tools/export_dataslice.py -host
|
|
611
|
+
python tools/export_dataslice.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -dataslice {dataslice_id} -f {/YOUR/TARGET/LOCAL/file.zip}
|
|
613
612
|
```
|
|
614
613
|
|
|
615
614
|
### Export Large Dataslice and download files
|
|
616
615
|
```
|
|
617
|
-
python tools/export_dataslice_large.py -host
|
|
616
|
+
python tools/export_dataslice_large.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -dataslice {dataslice_id} --anno {export-model-name / groundtruth} --target_folder {folder path} --export-format {coco, visionai, yolo, vlm ...etc}
|
|
618
617
|
```
|
|
619
618
|
|
|
620
619
|
### Upload videos to create session tasks
|
|
621
620
|
```
|
|
622
|
-
python tools/upload_videos_create_session.py -host
|
|
621
|
+
python tools/upload_videos_create_session.py -host {YOUR_HOST} -e {your-account-email} -p {PASSWORD} -s {service-id} -f {/YOUR/VIDEOS/LOCAL/FOLDER} -n {session-name}
|
|
623
622
|
```
|
|
624
623
|
|
|
625
624
|
- Advanced arguments for video curation (sequential data):
|
|
@@ -633,4 +632,4 @@ python tools/upload_videos_create_session.py -host https://visionai.linkervision
|
|
|
633
632
|
|
|
634
633
|
## Links to language repos
|
|
635
634
|
|
|
636
|
-
[Python Readme](https://github.com/
|
|
635
|
+
[Python Readme](https://github.com/linkervision/dataverse-sdk/blob/master/python/README.md)
|
|
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
|
|
2
2
|
|
|
3
3
|
AUTHOR = "LinkerVision"
|
|
4
4
|
PACKAGE_NAME = "dataverse-sdk"
|
|
5
|
-
PACKAGE_VERSION = "2.5.
|
|
5
|
+
PACKAGE_VERSION = "2.5.4"
|
|
6
6
|
DESC = "Dataverse SDK For Python"
|
|
7
7
|
with open("README.md", encoding="utf-8") as fh:
|
|
8
8
|
long_description = fh.read()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|