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 in visualization #4

Open
jithin8mathew opened this issue Aug 6, 2020 · 0 comments
Open

Error in visualization #4

jithin8mathew opened this issue Aug 6, 2020 · 0 comments

Comments

@jithin8mathew
Copy link

jithin8mathew commented Aug 6, 2020


IndexError Traceback (most recent call last)
in
12 p_numpy = p.detach().cpu().numpy()[0]
13
---> 14 dc.visualize(xo[:,:,:3],p_numpy,65)

~/DeepColoring-master/deepcoloring/utils.py in visualize(x_np, y_np, min_point, draw_text, cmap)
289 cmap = matplotlib.colors.LinearSegmentedColormap.from_list('xxx', [color_map[color_index], color_map[color_index2]])
290 ax[index / 3, index % 3].imshow(y_np[index, :, :], vmin=0, vmax=1, cmap=cmap)
--> 291
292 return f1, f2
293

IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

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