facebookresearch / robust_cvd

Robust Consistent Video Depth Estimation

Home Page:https://robust-cvd.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run the inference on a directory of videos ?

nikhilbyte opened this issue · comments

I'm trying to put the python script in a for loop using bash like this:

`%%bash

mapfile -t arr < /content/cvd2/video_names.txt

str1 = "/content/output/"

str2 = ".mp4"

for i in "${arr[@]}"
do
python main.py
--video_file "${i}${str2}"
--path "${i}"
--save_intermediate_depth_streams_freq 1
--num_epochs 0 --post_filter
--opt.adaptive_deformation_cost 10
--frame_range 0-10
--save_depth_visualization
done`

but this doesn't seem to work.
Any suggestions ?