Open ucasiggcas opened 4 years ago
能否解释下,这个代码的作用。我无法执行,可否用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是啥子东西啊?多谢
请教下 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中的东西是什么?
/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這個樣子
能否解释下,这个代码的作用。我无法执行,可否用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系統上運行,功能是把影像文件轉換成圖片用的
emm,我就是在Ubuntu上无法执行。。。@@
emm,我就是在Ubuntu上无法执行。。。@@ 這個文件是要在終端中運行的 sh xxx.sh 如果報錯的話你就根據報的錯改唄。我記得這個文件上面是有解釋的。
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你是否换成自己的目录?
hi,Dear, glad to see the project, but a little confused, when I run
bash ./list/convert_video_to_images.sh .../UCF101 5
errorthen 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