(width, height, output_stride=16)
| 8 | scale_factor=0.7125 |
| 9 | |
| 10 | def valid_resolution(width, height, output_stride=16): |
| 11 | target_width = (int(width) // output_stride) * output_stride + 1 |
| 12 | target_height = (int(height) // output_stride) * output_stride + 1 |
| 13 | return target_width, target_height |
| 14 | |
| 15 | |
| 16 | def _process_input(source_img, scale_factor=1.0, output_stride=16): |