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

3d prediction plot #64

Open
chunniunai220ml opened this issue Oct 27, 2022 · 0 comments
Open

3d prediction plot #64

chunniunai220ml opened this issue Oct 27, 2022 · 0 comments

Comments

@chunniunai220ml
Copy link

chunniunai220ml commented Oct 27, 2022

hi, thank for ur brilliant repo!

when i draw 3d prediction image refer ur render_animation() function, like this
def render3d(pose):
fig = plt.figure()
ax_in = fig.add_subplot(111, projection='3d')
ax_in.view_init(elev=15., azim=70)
ax_in.get_xaxis().set_visible(False)
ax_in.get_yaxis().set_visible(False)
ax_in.set_axis_off()
ax_3d = []
lines_3d = []
ax_3d.append(ax_in)
lines_3d.append([])
parents=[-1, 0, 1, 2, 0, 4, 5, 0, 7, 8, 9, 8, 11, 12, 8, 14, 15]
index = [i for i in np.arange(17)]
for j, j_parent in zip(index, parents):
if j_parent == -1:
continue
for n, ax in enumerate(ax_3d):

        lines_3d[n].append(ax.plot([pose[j, 0], pose[j_parent, 0]],
                            [pose[j, 1], pose[j_parent, 1]],
                            [pose[j, 2], pose[j_parent, 2]],  c='g', linewidth=2))
# ax_in.view_init(elev=15., azim=70)
plt.show()
plt.imshow(fig)
plt.savefig('oric3d.jpg')
plt.close()

but the result is not like ur visualization results.
image

image

why i do not do normalize_screen_coordinates function, the prediction is not well, like above picture?

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