Closed ombahiwal closed 5 years ago
Index error is thrown, convert the calculated index to type int(), the expression actually returns float object. Please change it to -
target = int(y[int(i+PATCH_SIZE/2), int(j+PATCH_SIZE/2]))` outputs[int(i+PATCH_SIZE/2)][int(j+PATCH_SIZE/2/)] = prediction+1
Index error is thrown, convert the calculated index to type int(), the expression actually returns float object. Please change it to -
target = int(y[int(i+PATCH_SIZE/2), int(j+PATCH_SIZE/2]))` outputs[int(i+PATCH_SIZE/2)][int(j+PATCH_SIZE/2/)] = prediction+1