GithubHelp home page GithubHelp logo

wrong output about glamr HOT 26 CLOSED

nvlabs avatar nvlabs commented on August 30, 2024
wrong output

from glamr.

Comments (26)

haofanwang avatar haofanwang commented on August 30, 2024 1

It works! Thanks for your patient help! @Khrylx

from glamr.

arakis92 avatar arakis92 commented on August 30, 2024 1

Hello, currently I'm having the same issue shared by @JonathanLehner , rendering of glamr is totally black. I've tried with mesa upgrading and pyvista upgrading.

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

The mesh visualization you are using seems different from what the demo uses.

Do the examples in readme work?

python global_recon/run_demo.py --cfg glamr_dynamic \
                                --video_path assets/dynamic/running.mp4 \
                                --out_dir out/glamr_dynamic/running \
                                --save_video

from glamr.

JonathanLehner avatar JonathanLehner commented on August 30, 2024

no, the output is from the example in the readme. It also does not work for the running scene. The output looks similar. Is there a specific python version? I used 3.8. Or are there additional installation requirements for the visualisation to work correctly? HybrIK works without problems.

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

could you try these commands and try rendering again?

# mesa
sudo apt update
sudo wget https://github.com/mmatl/travis_debs/raw/master/xenial/mesa_18.3.3-0.deb
sudo dpkg -i ./mesa_18.3.3-0.deb || true
sudo apt install -f

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

If this doesn't solve it, it might due to problems with the visualization package pyvista.
Could you try its example here: https://docs.pyvista.org/examples/02-plot/gif.html?highlight=off_screen?

from glamr.

JonathanLehner avatar JonathanLehner commented on August 30, 2024

Hi Yeyuan, thanks for your fast reply! I tried mesa but it did not help. I used pyvista 3.3 since not fixed in requirements, but also no difference.

The strange thing is that the demo in HybrIK works and in GLAMR the HybrIK output already is shifted. Could it be that there were breaking changes in the official HybrIK repo? It was updated recently

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

That's strange. Could you try my fork of HybrIK https://github.com/Khrylx/HybrIK?

from glamr.

haofanwang avatar haofanwang commented on August 30, 2024

I have met the same problem. The HybrIK result is already bad, and GLAMR works worse.

Here is the image saved in ./out/glamr_dynamic/running/pose_est/res_images/000089.jpg

000089

This is my result
截屏2022-08-08 20 59 52

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

@haofanwang Could you try my fork of HybrIK? https://github.com/Khrylx/HybrIK

from glamr.

haofanwang avatar haofanwang commented on August 30, 2024

Hi, @Khrylx

It seems not to be the problem of update in HybrIK, but ./pose_est/hybrik_demo/demo.py.

If I comment out line 169-171, the visualization works fine. These lines are not existed in HybrIK. I'm not sure whether it is necessary in your method.

new_princpt = np.array([image.shape[1], image.shape[0]]) * 0.5

Besides, the following line should be bbox_3d_shape=(2.2, 2.2, 2.2), which should be a typo.

bbox_3d_shape=(2.2, 2,2, 2.2),

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

These lines are needed to move the camera coordinate from the bounding box center to the image center. I will also look into it.

from glamr.

haofanwang avatar haofanwang commented on August 30, 2024

Indeed, the modification above still does not work. Below is my current result for reference. Removing line 169-171 makes HybrIK right, but not the GLAMR.

截屏2022-08-08 21 52 06

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

@haofanwang if you don't make the change, does the demo work for basketball.mp4?

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

I have pushed a fix. At least on my end, both running.mp4 and basketball.mp4 work well. @haofanwang, also make sure for running you are using the dynamic config, which could be the reason for your wrong output.

python global_recon/run_demo.py --cfg glamr_dynamic \
                                --video_path assets/dynamic/running.mp4 \
                                --out_dir out/glamr_dynamic/running \
                                --save_video

from glamr.

haofanwang avatar haofanwang commented on August 30, 2024

Still stuck. The GLAMR fits at the first frame, but shifts later.

截屏2022-08-09 00 26 45

basketball.mp4 also doesn't work well. At the first frame, it looks fine, but all following frames keep same as the first one.
截屏2022-08-09 00 33 23

I will also check is there anything I have missed.

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

so you mean the GLAMR's (green) pose remains the same for all the frames? It would be also helpful if you can append your log.txt

from glamr.

haofanwang avatar haofanwang commented on August 30, 2024

For static video, yes.

I have uploaded the visualization results and logs to Google Drive.

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

The 2d keypoints look correct, so this is probably just a visualization issue. Could you try pyvista==0.31.3?

pip install pyvista==0.31.3

from glamr.

Khrylx avatar Khrylx commented on August 30, 2024

@JonathanLehner could you please try the above fix and let me know whether I can close this issue? thanks!

from glamr.

JonathanLehner avatar JonathanLehner commented on August 30, 2024

yes, sorry for delay. My PC has some issues right now..

from glamr.

lucasjinreal avatar lucasjinreal commented on August 30, 2024

I think pyvista only works on a specific version, this is sucks, since pyvista is just a visualization lib. Can we just please move render to pytorch3d?

from glamr.

iulsko avatar iulsko commented on August 30, 2024

can attest to the same issue - totally blank GLAMR output!
have tried all the mentioned solutions

from glamr.

JonathanLehner avatar JonathanLehner commented on August 30, 2024

I also found I needed to install torchmetrics-0.6.0 for it to run

from glamr.

JonathanLehner avatar JonathanLehner commented on August 30, 2024

and downgrade to scipy==1.1.0

from glamr.

JonathanLehner avatar JonathanLehner commented on August 30, 2024

I had to upgrade pip to install it

from glamr.

Related Issues (20)

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.