Skip to content

Commit

Permalink
Force get_max_region_size to int because python is now defective
Browse files Browse the repository at this point in the history
 Somehow it decided it should be float when I'm clearly using ints.
  • Loading branch information
Yuri6037 committed Jan 10, 2022
1 parent c06ea9c commit 936a914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NewCode/utility.py
Expand Up @@ -228,7 +228,7 @@ def get_max_region_size(w, h):
val /= 2
if val < 8:
print("WARNING: The maximum region size is less than 8, this may lower the accuracy of this network.")
return val
return int(val) # We now have a bug in python somehow python turns our result into a float!


def image_decomposition(img, region_size):
Expand Down

0 comments on commit 936a914

Please sign in to comment.