jackyjsy / CVPR21Chal-SLR

This repo contains the official code of our work SAM-SLR which won the CVPR 2021 Challenge on Large Scale Signer Independent Isolated Sign Language Recognition.
Creative Commons Zero v1.0 Universal
205 stars 51 forks source link

gen_flow.py #25

Open Amitharitan25 opened 2 years ago

Amitharitan25 commented 2 years ago

Hi there :) I am trying to replicate your results and am currently on the data prepare steps. In the Generate flow data from rgb and depth videos section you mention that I must run the docker image. Is there a way for me to do it without that image? (I am running in an environment which is really strict about loading foreign images). Thanks in advance, Amit

DavidMosoarca commented 2 years ago

I recommend you to use this repo to extract the optical flow: https://github.com/open-mmlab/denseflow But make sure to run the denseflow command with these flags: denseflow -a=tvl1 -b=20 -s=1 -st=jpg -nw=512 -nh=512 -o= This code is able to make the extraction on a single video at the time. Although in the documentation it appears to be able to extract the flows of all the videos from a directory, that didn't work for me. Instead I made it extract the flow on each video at a time. Make sure to do a for loop on the directory in which you have the data stored and call the denswflow command for each one of them.