LogicGoInfotechSpaces commited on
Commit
9d4d4d8
·
verified ·
1 Parent(s): a0bbe96

Update utils/dataops.py

Browse files
Files changed (1) hide show
  1. utils/dataops.py +5 -5
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
- 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)
 
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)