Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error, not uniform img size #24

Open
ankhafizov opened this issue Nov 15, 2021 · 0 comments
Open

Error, not uniform img size #24

ankhafizov opened this issue Nov 15, 2021 · 0 comments

Comments

@ankhafizov
Copy link

act_map_resized_list = [cv2.resize(act_map_array[0,:,:,k], input_shape[:2], interpolation=cv2.INTER_LINEAR) for k in range(act_map_array.shape[3])]

cv.resize does not work as expected in this line. Please, rewrite this line as:

act_map_resized_list = [np.transpose(cv2.resize(act_map_array[0,:,:,k], input_shape[:2], interpolation=cv2.INTER_LINEAR)) for k in range(act_map_array.shape[3])]

otherwise error appears for rectangle image shape in line: below

masked_input[0,:,:,k] *= act_map_normalized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant