Fix bug missing SHOW_RESULT in image generator

PiperOrigin-RevId: 566810243
This commit is contained in:
MediaPipe Team 2023-09-19 18:34:55 -07:00 committed by Copybara-Service
parent 867d5dc5a7
commit 41a012721f

View File

@ -429,6 +429,7 @@ public final class ImageGenerator extends BaseVisionTaskApi {
inputPackets.put(STEPS_STREAM_NAME, runner.getPacketCreator().createInt32(steps)); inputPackets.put(STEPS_STREAM_NAME, runner.getPacketCreator().createInt32(steps));
inputPackets.put(ITERATION_STREAM_NAME, runner.getPacketCreator().createInt32(i)); inputPackets.put(ITERATION_STREAM_NAME, runner.getPacketCreator().createInt32(i));
inputPackets.put(RAND_SEED_STREAM_NAME, runner.getPacketCreator().createInt32(seed)); inputPackets.put(RAND_SEED_STREAM_NAME, runner.getPacketCreator().createInt32(seed));
inputPackets.put(SHOW_RESULT_STREAM_NAME, runner.getPacketCreator().createBool(false));
result = (ImageGeneratorResult) runner.process(inputPackets, timestamp++); result = (ImageGeneratorResult) runner.process(inputPackets, timestamp++);
} }
if (useConditionImage) { if (useConditionImage) {