File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 9
9
" data operations"
10
10
],
11
11
"description" : " Creates images project from video project" ,
12
- "docker_image" : " supervisely/data-operations:6.73.70 " ,
13
- "min_instance_version" : " 6.8.54 " ,
12
+ "docker_image" : " supervisely/data-operations:6.73.158 " ,
13
+ "min_instance_version" : " 6.10.0 " ,
14
14
"main_script" : " src/main.py" ,
15
15
"modal_template" : " src/modal.html" ,
16
16
"modal_template_state" : {
Original file line number Diff line number Diff line change 1
- supervisely==6.73.70
1
+ supervisely==6.73.158
Original file line number Diff line number Diff line change 7
7
import functions as f
8
8
9
9
import globals as g
10
+ import workflow as w
10
11
11
12
12
13
def turn_into_images_project (api : sly .Api ):
13
14
res_project_name = f"{ g .project .name } (images)"
15
+ w .workflow_input (api , g .project .id )
14
16
dst_project = api .project .create (
15
17
g .workspace_id ,
16
18
res_project_name ,
@@ -158,7 +160,7 @@ def turn_into_images_project(api: sly.Api):
158
160
sly .logger .info (
159
161
f"video { video_info .name } converted in { time () - general_time } seconds"
160
162
)
161
-
163
+ w . workflow_output ( api , dst_project . id )
162
164
163
165
if __name__ == "__main__" :
164
166
turn_into_images_project (g .api )
Original file line number Diff line number Diff line change
1
+ # This module contains the functions that are used to configure the input and output of the workflow for the current app.
2
+
3
+ import supervisely as sly
4
+
5
+
6
+ def workflow_input (api : sly .Api , project_id : int ):
7
+ api .app .workflow .add_input_project (int (project_id ))
8
+ sly .logger .debug (f"Workflow: Input project - { project_id } " )
9
+
10
+
11
+ def workflow_output (api : sly .Api , project_id : int ):
12
+ api .app .workflow .add_output_project (project_id )
13
+ sly .logger .debug (f"Workflow: Output project - { project_id } " )
You can’t perform that action at this time.
0 commit comments