isarandi / poseviz Goto Github PK
View Code? Open in Web Editor NEW3D Human Pose Visualizer for Python
License: MIT License
3D Human Pose Visualizer for Python
License: MIT License
i notice you use mayavi, can we get the 3d pose rotation angle with parent-children by this project or other module ?
i try to shoe the result 3d pose in UE, can you give me some advices ?
maybe it needs to change to smpl pose ?
I cant download pkg by conda
@isarandi is there any way to write these poseviz output frames into video from one angle?
My pose3d is normalized into [-1, 1], in this case, how to visualize it properly
Hi! Thanks for the excellent job.
I read closed issue and knew that I can save the output of poseviz as video by "new_sequence_output()".
So I Wrote the source code in demo_video_batched.py located at the metrabs folder.
`def main():
model = tf.saved_model.load(download_model('metrabs_eff2l_y4_360'))
skeleton = 'smpl+head_30'
joint_names = model.per_skeleton_joint_names[skeleton].numpy().astype(str)
joint_edges = model.per_skeleton_joint_edges[skeleton].numpy()
viz = poseviz.PoseViz(joint_names, joint_edges)
frame_batches = tf.data.Dataset.from_generator(
frames_from_video, tf.uint8, [None, None, 3]).batch(32).prefetch(1)
for frame_batch in frame_batches:
pred = model.detect_poses_batched(frame_batch, skeleton=skeleton, default_fov_degrees=55)
camera = cameralib.Camera.from_fov(55, frame_batch.shape[1:3])
for frame, boxes, poses3d in zip(
frame_batch.numpy(), pred['boxes'].numpy(), pred['poses3d'].numpy()):
viz.update(frame, boxes, poses3d, camera)
viz.new_sequence_output('../experiments/exp0/input',fps=100)
viz.close()`
But Error like below is keep occuring.
ValueError: ImageIO does not generally support reading folders. Limited support may be available via specific plugins. Specify the plugin explicitly using the
pluginkwarg, e.g.
plugin='DICOM'``
Is it possible to save the ouput as video by the 'new_sequence_output'?
Hello, I tried to run the demo.py, but the output is as follows:
The X11 connection broke: No error (code 0)
XIO: fatal IO error 22 (Invalid argument) on X server "localhost:10.0"
after 400 requests (400 known processed) with 0 events remaining.
And I found it happened after this line:
viz = poseviz.PoseViz(joint_names, joint_edges)
How to solve it?
My operating system is Ubuntu 18.04.5 LTS.
I installed poseviz with:
pip install git+https://github.com/isarandi/poseviz.git
and get "No module named cameralib" at the import statement.
In the README.md, a camera is created by camera = poseviz.Camera(...)
That doesn't work neither.
Hello there,
First of all, thanks for the nice work, this looks really impressive and sort of unique!
On my setup, demo.py fails at import poseviz
because improc
cannot be imported as the package is not found. Tried to look everywhere for what improc could be and could not find anything on public repositories.
Line 12 in c3d0666
Environment:
Any idea what could be wrong?
Thanks again
I have an error when I execute python demo.py
File "/home/ivan/miniconda3/envs/metrabs/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/ivan/miniconda3/envs/metrabs/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ivan/Desktop/poseviz/poseviz/poseviz.py", line 311, in _main_visualize
viz.run_loop()
File "/home/ivan/Desktop/poseviz/poseviz/poseviz.py", line 155, in run_loop
_ = mlab.animate(delay=delay, ui=False)(self.animate)(fig)
File "/home/ivan/miniconda3/envs/metrabs/lib/python3.8/site-packages/mayavi/tools/animator.py", line 248, in _wrapper
return decorator(Wrapper(function).decorator_call, function)
File "/home/ivan/.local/lib/python3.8/site-packages/decorator.py", line 262, in decorator
return decorate(_func, caller)
File "/home/ivan/.local/lib/python3.8/site-packages/decorator.py", line 250, in decorate
fun = FunctionMaker.create(
File "/home/ivan/.local/lib/python3.8/site-packages/decorator.py", line 213, in create
self = cls(func, name, signature, defaults, doc, module)
File "/home/ivan/.local/lib/python3.8/site-packages/decorator.py", line 143, in __init__
raise TypeError('You are decorating a non function: %s' % func)
TypeError: You are decorating a non function: <bound method PoseVizMayaviSide.animate of <poseviz.poseviz.PoseVizMayaviSide object at 0x7fcd9eb0f0a0>>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.