File tree Expand file tree Collapse file tree 3 files changed +19
-18
lines changed
packages/tasks/src/tasks/depth-estimation Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 4
4
* Using src/scripts/inference-codegen
5
5
*/
6
6
7
- export type DepthEstimationOutput = unknown [ ] ;
8
-
9
7
/**
10
8
* Inputs for Depth Estimation inference
11
9
*/
@@ -17,19 +15,21 @@ export interface DepthEstimationInput {
17
15
/**
18
16
* Additional inference parameters
19
17
*/
20
- parameters ?: DepthEstimationParameters ;
18
+ parameters ?: { [ key : string ] : unknown } ;
21
19
[ property : string ] : unknown ;
22
20
}
23
21
24
22
/**
25
- * Additional inference parameters
26
- *
27
- * Additional inference parameters for Depth Estimation
23
+ * Outputs of inference for the Depth Estimation task
28
24
*/
29
- export interface DepthEstimationParameters {
25
+ export interface DepthEstimationOutput {
26
+ /**
27
+ * The predicted depth as an image
28
+ */
29
+ depth ?: unknown ;
30
30
/**
31
- * When specified, limits the output to the top K most probable classes.
31
+ * The predicted depth as a tensor
32
32
*/
33
- topK ?: number ;
33
+ predictedDepth ?: unknown ;
34
34
[ property : string ] : unknown ;
35
35
}
Original file line number Diff line number Diff line change 18
18
"title" : " DepthEstimationParameters" ,
19
19
"description" : " Additional inference parameters for Depth Estimation" ,
20
20
"type" : " object" ,
21
- "properties" : {
22
- "topK" : {
23
- "type" : " integer" ,
24
- "description" : " When specified, limits the output to the top K most probable classes."
25
- }
26
- }
21
+ "properties" : {}
27
22
}
28
23
},
29
24
"required" : [" data" ]
Original file line number Diff line number Diff line change 3
3
"$schema" : " http://json-schema.org/draft-06/schema#" ,
4
4
"description" : " Outputs of inference for the Depth Estimation task" ,
5
5
"title" : " DepthEstimationOutput" ,
6
- "type" : " array" ,
7
- "items" : {
8
- "description" : " The output depth labels"
6
+
7
+ "type" : " object" ,
8
+ "properties" : {
9
+ "predicted_depth" : {
10
+ "description" : " The predicted depth as a tensor"
11
+ },
12
+ "depth" : {
13
+ "description" : " The predicted depth as an image"
14
+ }
9
15
}
10
16
}
You can’t perform that action at this time.
0 commit comments