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

about preprocessing #121

Open
ucasiggcas opened this issue Dec 2, 2019 · 7 comments
Open

about preprocessing #121

ucasiggcas opened this issue Dec 2, 2019 · 7 comments

Comments

@ucasiggcas
Copy link

hi,Dear,
glad to see the project,
but a little confused,
when I run
bash ./list/convert_video_to_images.sh .../UCF101 5
error

./list/convert_video_to_images.sh: line 2: $'\r': command not found
./list/convert_video_to_images.sh: line 17: $'\r': command not found
./list/convert_video_to_images.sh: line 19: syntax error near unexpected token `$'do\r''
'/list/convert_video_to_images.sh: line 19: `do

then how to solve the problem?

if I use my own dataset,only include 2 classes,
one is dancing ,one is not,
how to process the video ?
thx

@ucasiggcas
Copy link
Author

ucasiggcas commented Dec 2, 2019

能否解释下,这个代码的作用。我无法执行,可否用py脚本来实现

for folder in $1/*
do
    for file in "$folder"/*.avi
    do
        if [[ ! -d "${file[@]%.avi}" ]]; then
            mkdir -p "${file[@]%.avi}"
        fi
        ffmpeg -i "$file" -vf fps=$2 "${file[@]%.avi}"/%05d.jpg
        rm "$file"
    done
done

另外请教下 crop_mean.npy是啥子东西啊?多谢

@ucasiggcas
Copy link
Author

请教下 train.list中的东西是什么?

/media/6TB/UCF-101/ApplyEyeMakeup/v_ApplyEyeMakeup_g08_c01 0
/media/6TB/UCF-101/ApplyEyeMakeup/v_ApplyEyeMakeup_g08_c02 0

v_ApplyEyeMakeup_g08_c01这个是什么格式啊?文件jpg?或者是文件夹??
多谢

@qizhiliu0639
Copy link

请教下 train.list中的东西是什么?

/media/6TB/UCF-101/ApplyEyeMakeup/v_ApplyEyeMakeup_g08_c01 0
/media/6TB/UCF-101/ApplyEyeMakeup/v_ApplyEyeMakeup_g08_c02 0

v_ApplyEyeMakeup_g08_c01这个是什么格式啊?文件jpg?或者是文件夹??
train.list 中的東西是你訓練的文件的地址,後面的數字是標籤,因爲用的是UCF101數據集所以後面數字應該是101這個樣子

@qizhiliu0639
Copy link

能否解释下,这个代码的作用。我无法执行,可否用py脚本来实现

for folder in $1/*
do
    for file in "$folder"/*.avi
    do
        if [[ ! -d "${file[@]%.avi}" ]]; then
            mkdir -p "${file[@]%.avi}"
        fi
        ffmpeg -i "$file" -vf fps=$2 "${file[@]%.avi}"/%05d.jpg
        rm "$file"
    done
done

另外请教下 crop_mean.npy是啥子东西啊?多谢

那個.npy文件不用管。這個代碼是sh文件是LINUX系統的腳本文件,需要在LINUX系統上運行,功能是把影像文件轉換成圖片用的

@ucasiggcas
Copy link
Author

emm,我就是在Ubuntu上无法执行。。。@@

@qizhiliu0639
Copy link

emm,我就是在Ubuntu上无法执行。。。@@
這個文件是要在終端中運行的 sh xxx.sh 如果報錯的話你就根據報的錯改唄。我記得這個文件上面是有解釋的。

@rrxi
Copy link

rrxi commented May 8, 2020

hi,Dear,
glad to see the project,
but a little confused,
when I run
bash ./list/convert_video_to_images.sh .../UCF101 5
error

./list/convert_video_to_images.sh: line 2: $'\r': command not found
./list/convert_video_to_images.sh: line 17: $'\r': command not found
./list/convert_video_to_images.sh: line 19: syntax error near unexpected token `$'do\r''
'/list/convert_video_to_images.sh: line 19: `do

then how to solve the problem?

if I use my own dataset,only include 2 classes,
one is dancing ,one is not,
how to process the video ?
thx

bash ./list/convert_video_to_images.sh .../UCF101 5 这条命令的.../UCF101你是否换成自己的目录?

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

3 participants