(length, patch_size)
| 497 | |
| 498 | |
| 499 | def ensure_divide(length, patch_size): |
| 500 | return max(round(length / patch_size) * patch_size, patch_size) |
| 501 | |
| 502 | |
| 503 | def find_best_resize(original_size, scale_resolution, patch_size, allow_upscale=False): |
no outgoing calls
no test coverage detected