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

Is there a python3 version someone implemented? #135

Open
OOF-dura opened this issue Apr 25, 2020 · 5 comments
Open

Is there a python3 version someone implemented? #135

OOF-dura opened this issue Apr 25, 2020 · 5 comments

Comments

@OOF-dura
Copy link

Thanks for your great work!
I just want to know is there a python3 version someone implemented?

Thanks in advance!

@akanazawa
Copy link
Owner

I would also love to know! I know there are couple of efforts @russoale
If you are working on this please respond here or email me and I can add the link to your repo in the README!

Thanks,

A

@russoale
Copy link

russoale commented Jul 2, 2020

Sorry for the late response. Indeed you can find a python3 version but implemented with tensorflow 2 https://github.com/russoale/hmr2.0

@jszgz
Copy link

jszgz commented Sep 5, 2020

Hello, do you know how to use mpi_inf_3dhp_to_tfrecords.py to convert mpi_inf_3dhp dataset? I failed because the code use jpg as input but the dataset I downloaded is consisting of videos. Do I need to use ffmpeg and write code to convert avi to jpg?

@russoale
Copy link

russoale commented Sep 7, 2020

Hi @jszgz,

i just ffmpeg via bach script.

#!/bin/bash

for sub in S*; do
        for seq in $sub/*; do
                for vid_in in $seq/*.avi; do
                        vid_name=$(basename $vid_in);
                        printf "start converting video %s\n" $vid_name
                        vid_out="$sub/imageFrames/${vid_name%.*}";
                        printf "in: %s out: %s\n" $vid_in $vid_out;
                        mkdir -p "$vid_out";
                        ffmpeg -hide_banner -loglevel error -stats -i "$vid_in" -qscale:v 1 "$vid_out/frame_%06d.jpg";
                done
        done
done

@jszgz
Copy link

jszgz commented Sep 7, 2020

Hi @russoale , I think what the code expect is like :
join(datset_root, 'S%d' % sub_id ,'Seq%d' % seq_id, 'imageFrames', 'video_%d' % cam_id, 'frame_%06d.jpg')
It is different from your output path structure, and your code use same output name, different videos will rewrite previous jpgs?
I don't know what does cam_id means in the author's code, cam_ids = [0, 1, 2, 4, 5, 6, 7, 8], but I found video_0.avi video_1.avi video_2.avi video_3.avi ·······video_13.avi,there are 14 videos.
What's more, my dataset deirectory structure is different from yours:
--datset_root
----S1
------Seq1
--------ChairMasks
-------------- video_0.avi
-------------- video_1.avi
-------------- video_.avi
-------------- video_13.avi
--------FGmasks
-------------- video_0.avi
-------------- video_1.avi
-------------- video_
.avi
-------------- video_13.avi
--------imageSequence
-------------- video_0.avi
-------------- video_1.avi
-------------- video_.avi
-------------- video_13.avi
--------annot.mat
--------camera.calibration
------Seq2
--------same as Seq1
----S2
----S

And do you know how to recompute human3.6m dataset since the precoomputed link is not available now?

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

4 participants