Giter Site home page Giter Site logo

poseviz's People

Contributors

isarandi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

poseviz's Issues

get 3d pose rotation angle ?

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 ?

Write frames

@isarandi is there any way to write these poseviz output frames into video from one angle?

ERROR in writing video

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'?

The demo problem

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.

No module named 'cameralib'

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.

Poseviz import fails on improc import

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.

import improc

Environment:

  • Ubuntu 20.04
  • python 3.8.10
  • poseviz head (0.1.3) installed with pip (Anaconda install was unsuccessful)
  • mayavi 4.8.1 installed via pip (no compilation errors on my platform)

Any idea what could be wrong?

Thanks again

Demo launch is failed

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>>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.