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

example.py shows error when mobilenet heatmap.npy and paf.npy is loaded #7

Open
suginesh9746 opened this issue Feb 26, 2020 · 0 comments

Comments

@suginesh9746
Copy link

when i try example.py with heatmap and paf generated by mobilenet architecture , the following error was thrown

IndexError Traceback (most recent call last)
in
22 #print(coordinates)
23
---> 24 connections = get_connections(cfg, coordinates, paf)
25 #print(connections)
26 skeletons = estimate(cfg, connections)

in get_connections(config, coords, paf, threshold, mid_num, minimum_mid_num)
28
29 # select dx and dy PAFs for this connection type
---> 30 paf_dx = paf[:, :, conn.paf_dx_idx]
31 #print(conn.paf_dx_idx)
32 paf_dy = paf[:, :, conn.paf_dy_idx]

IndexError: index 28 is out of bounds for axis 2 with size 28

example.zip
iam attaching a zip file having example.ipynb which is my code and also it contains heatmap.npy and paf.npy

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