I’m not familiar with the Darkflow model, but your reshape does not work for the passed shapes.
Based on the error message it looks like prediction contains 689520 values, which could be reshaped to e.g. [1, 255, 2704]. Could you check if your input size, the grid_size etc. are set to their expected values?