# with the License. You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 roi_start_w = int(round(roi[1] * spatial_scale)) roi_start_h ...