When [--dynamic_image_size] is included, only the height and width axes can be –1 in [--input_shape].
When [--dynamic_image_size] is included, only the height and width axes can be –1 in the shape.
Try again with a valid [--input_shape] argument. Make sure that axes other than height and width are not –1.