Spaces:
Running
on
T4
Running
on
T4
Update utils/dataops.py
Browse files- utils/dataops.py +4 -4
utils/dataops.py
CHANGED
|
@@ -153,11 +153,11 @@ def auto_split_upscale(
|
|
| 153 |
|
| 154 |
# --- Step 3: Stitch the results back together ---
|
| 155 |
# Reassemble the upscaled quadrants into a single image.
|
| 156 |
-
out_h = input_h * scale
|
| 157 |
-
out_w = input_w * scale
|
| 158 |
# # Corrected code: Ensure out_h and out_w are integers for NumPy
|
| 159 |
-
|
| 160 |
-
|
| 161 |
|
| 162 |
# Create an empty output image
|
| 163 |
output_img = np.zeros((out_h, out_w, input_c), np.uint8)
|
|
|
|
| 153 |
|
| 154 |
# --- Step 3: Stitch the results back together ---
|
| 155 |
# Reassemble the upscaled quadrants into a single image.
|
| 156 |
+
# out_h = input_h * scale
|
| 157 |
+
# out_w = input_w * scale
|
| 158 |
# # Corrected code: Ensure out_h and out_w are integers for NumPy
|
| 159 |
+
out_h = int(input_h * scale)
|
| 160 |
+
out_w = int(input_w * scale)
|
| 161 |
|
| 162 |
# Create an empty output image
|
| 163 |
output_img = np.zeros((out_h, out_w, input_c), np.uint8)
|