You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, we have problem from column "Collect all available patches of each class from the given image". There is an error. We use the script that have converted to version python 3 in windows.
We hope that you could give some input and information regarding this error.
The text was updated successfully, but these errors were encountered:
I faced the same error while using the project. Thanks to @ishiry for mentioning it in [Issue 2](KGPML#2)
The error occurs because of default devision in python outputs a float. At line number 6 in In[8] `curr_tar = target_mat[i + (PATCH_SIZE - 1)/2, j + (PATCH_SIZE - 1)/2]` the division by 2 operation create float output which is not accepted by `target_mat` variable because it needs integer as indexes.
I have rectified the issue by adding explicit type conversion for the float output to integer by making the line `curr_tar = target_mat[i + int((PATCH_SIZE - 1)/2), j + int((PATCH_SIZE - 1)/2)]\n`
After making the change, the code is running fine on my machine
@project Admin please review the changes and accept the PR if it is correct.
Hello, we have problem from column "Collect all available patches of each class from the given image". There is an error. We use the script that have converted to version python 3 in windows.
We hope that you could give some input and information regarding this error.
The text was updated successfully, but these errors were encountered: