Fix depth condition bug when only depth condition is configured.
PiperOrigin-RevId: 567080598
This commit is contained in:
parent
41a012721f
commit
223641a73c
|
@ -683,7 +683,8 @@ public final class ImageGenerator extends BaseVisionTaskApi {
|
||||||
.setEdgeConditionTypeOptions(edgeConditionOptions().get().convertToProto())
|
.setEdgeConditionTypeOptions(edgeConditionOptions().get().convertToProto())
|
||||||
.build())
|
.build())
|
||||||
.build());
|
.build());
|
||||||
if (depthConditionOptions().isPresent()) {
|
}
|
||||||
|
if (depthConditionOptions().isPresent()) {
|
||||||
taskOptionsBuilder.addControlPluginGraphsOptions(
|
taskOptionsBuilder.addControlPluginGraphsOptions(
|
||||||
ControlPluginGraphOptionsProto.ControlPluginGraphOptions.newBuilder()
|
ControlPluginGraphOptionsProto.ControlPluginGraphOptions.newBuilder()
|
||||||
.setBaseOptions(
|
.setBaseOptions(
|
||||||
|
@ -695,7 +696,6 @@ public final class ImageGenerator extends BaseVisionTaskApi {
|
||||||
depthConditionOptions().get().convertToProto())
|
depthConditionOptions().get().convertToProto())
|
||||||
.build())
|
.build())
|
||||||
.build());
|
.build());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return Any.newBuilder()
|
return Any.newBuilder()
|
||||||
.setTypeUrl(
|
.setTypeUrl(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user