Spaces:
Runtime error
Runtime error
limit image size
Browse files112 unmodified lines113114115112 unmodified linesmodel = init_segmentor(config_file, checkpoint_file).cuda()112 unmodified lines113114115116117118119120121122123124125126127128112 unmodified linesmodel = init_segmentor(config_file, checkpoint_file).cuda()diff --git a/annotator/util.py b/annotator/util.pyindex 7cde937..10a6d58 100644--- a/annotator/util.py+++ b/annotator/util.py@@ -25,7 +25,7 @@ def resize_image(input_image, resolution):H, W, C = input_image.shapeH = float(H)W = float(W)- k = float(resolution) / min(H, W)+ k = float(resolution) / max(H, W)H *= kW *= kH = int(np.round(H / 64.0)) * 64
patch+13