File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -911,6 +911,7 @@ class PipelineSaveResults:
911
911
detections : list [Detection ]
912
912
classifications : list [Classification ]
913
913
algorithms : dict [str , Algorithm ]
914
+ deployments : dict [str , Deployment ]
914
915
total_time : float
915
916
916
917
@@ -964,14 +965,15 @@ def save_results(
964
965
965
966
deployments_data = results .deployments
966
967
source_images_data = results .source_images
968
+ deployments_used : dict [str , Deployment ] = {}
967
969
968
970
if not deployments_data :
969
971
job_logger .warning (
970
972
"No deployments data found in results. "
971
973
"New source images will not be created without deployments data."
972
974
)
973
975
else :
974
- get_or_create_deployments (
976
+ deployments_used = get_or_create_deployments (
975
977
deployments_data = deployments_data ,
976
978
project_id = project_id ,
977
979
logger = job_logger ,
@@ -1099,6 +1101,7 @@ def save_results(
1099
1101
detections = detections ,
1100
1102
classifications = classifications ,
1101
1103
algorithms = algorithms_used ,
1104
+ deployments = deployments_used ,
1102
1105
total_time = total_time ,
1103
1106
)
1104
1107
You can’t perform that action at this time.
0 commit comments