"the following error while writing file:"
"\n\n %s" % ffmpeg_error))
pipe_out.stdin.close()
pipe_in.stdout.close()
pipe_out.terminate()
pipe_in.terminate()
del pipe_in
del pipe_out
After Change
read_input = False
_preds = sess.run(preds, feed_dict={img_placeholder: X})
for i in range(0, batch_shape[0]):
img = np.clip(_preds[i], 0, 255).astype(np.uint8)
try:
pipe_out.stdin.write(img)