temporal-segment-networks icon indicating copy to clipboard operation
temporal-segment-networks copied to clipboard

Unable to use extract flow

Open niveditarahurkar opened this issue 5 years ago • 11 comments

I am trying to run - scripts/extract_optical_flow.sh /temporal-segment-networks/src_folder/ /temporal-segment-networks/out_folder/ 1 I have taken just 5 sample videos from UCF101 in my src_folder: v_SkateBoarding_g25_c01 v_SkateBoarding_g25_c02 v_SkateBoarding_g25_c03 v_SkateBoarding_g25_c04 v_SkateBoarding_g25_c05

I get the output:

0 v_SkateBoarding_g25_c05 done
4 v_SkateBoarding_g25_c01 done
1 v_SkateBoarding_g25_c02 done
3 v_SkateBoarding_g25_c03 done
2 v_SkateBoarding_g25_c04 done

But my out_folder --> out_folder/v_SkateBoarding_g25_c01# is empty.

My parameters look right: ('flow_type: ', 'tvl1') ('reading videos from folder: ', '/temporal-segment-networks/src_folder') ('selected extension of videos:', 'avi') ('total number of videos found: ', 5)

Not able to figure out what's going wrong. I reinstalled dense-flow as I thought some issue with build/extract_gpu but didn't help. Any ideas what could be the problem?

niveditarahurkar avatar May 15 '19 23:05 niveditarahurkar

I have met the same problem , did you solve it ? thank you

raozhongyu avatar Jun 19 '19 02:06 raozhongyu

Met same problem. How to fix. On windows,it can be fixed by making copy opencv ffmpeg dll to current directory. but on linux, this kind of so file can not be found.

a-whitej avatar Aug 23 '19 05:08 a-whitej

./extract_cpu -f=test.avi -x=tmp/flow_x -y=tmp/flow_y -i=tmp/image -b=20 -t=1 -d=0 -s=1 -o=dir 2019-08-23 15:58:13,896 FATAL [default] Check failed: [video_stream.isOpened()] Cannot open video stream "test.avi" for optical flow extraction. 2019-08-23 15:58:13,896 WARN [default] Aborting application. Reason: Fatal log at [/home/lisyi/dev/dense_flow/src/dense_flow.cpp:13] [1] 30272 abort (core dumped) ./extract_cpu -f=test.avi -x=tmp/flow_x -y=tmp/flow_y -i=tmp/image -b=20 -t=1

a-whitej avatar Aug 23 '19 07:08 a-whitej

@raozhongyu and @a-whitej Did you try with the docker container that they have provided? You should not see any issues if you run the scripts from inside the container.

niveditarahurkar avatar Aug 23 '19 16:08 niveditarahurkar

the problem is that opecv is not be installed correctly. during compiling opencv on problem i manually run compile such as /usr/bin/c++ -isystem /usr/local/include/opencv -isystem /usr/local/include -I/home/my/dev/opencv-3.1.0/modules/cudaarithm/include -I/home/my/dev/opencv-3.1.0/modules/cudaoptflow/include -I/home/my/dev/opencv-3.1.0/modules/cudacodec/include -I/usr/lib/x86_64-linux-gnu/libzip/include -I/home/my/dev/dense_flow/include -I/home/my/dev/dense_flow/include/easylogging++/src -I/home/my/dev/dense_flow/include/CLUE/include -std=c++11 -fPIC -o CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o -c /home/my/dev/dense_flow/src/dense_flow_gpu.cpp /usr/bin/c++ -isystem /usr/local/include/opencv -isystem /usr/local/include -I/home/my/dev/opencv-3.1.0/modules/cudaarithm/include -I/home/my/dev/opencv-3.1.0/modules/cudaoptflow/include -I/home/my/dev/opencv-3.1.0/modules/cudacodec/include -I/usr/lib/x86_64-linux-gnu/libzip/include -I/home/my/dev/dense_flow/include -I/home/my/dev/dense_flow/include/easylogging++/src -I/home/my/dev/dense_flow/include/CLUE/include -std=c++11 -fPIC -o CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o -c /home/my/dev/dense_flow/src/dense_warp_flow_gpu.cpp

/usr/bin/c++ -Dpydenseflow_EXPORTS -isystem /usr/local/include/opencv -isystem /usr/local/include -I/usr/local/include/python3.5m -I/usr/lib/x86_64-linux-gnu/libzip/include -I/home/lisyi/dev/dense_flow/include -I/home/lisyi/dev/dense_flow/include/easylogging++/src -I/home/lisyi/dev/dense_flow/include/CLUE/include -std=c++11 -fPIC -fPIC -o CMakeFiles/pydenseflow.dir/src/py_denseflow.cpp.o -c /home/lisyi/dev/dense_flow/src/py_denseflow.cpp

then problem sovled.

a-whitej avatar Aug 26 '19 06:08 a-whitej

@niveditarahurkar I used Docker, but the following error occurred while running bash build_all.sh inside: can you help me fix it? CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: LIBZIP_INCLUDE_DIR_ZIP used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow LIBZIP_INCLUDE_DIR_ZIPCONF used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow used as include directory in directory /Code/temporal-segment-networks/lib/dense_flow LIBZIP_LIBRARY linked by target "denseflow" in directory /Code/temporal-segment-networks/lib/dense_flow linked by target "extract_cpu" in directory /Code/temporal-segment-networks/lib/dense_flow linked by target "extract_warp_gpu" in directory /Code/temporal-segment-networks/lib/dense_flow linked by target "extract_gpu" in directory /Code/temporal-segment-networks/lib/dense_flow

shijubushiju avatar Dec 24 '19 02:12 shijubushiju

@raozhongyu and @a-whitej Did you try with the docker container that they have provided? You should not see any issues if you run the scripts from inside the container.

我也是用docker来运行的,最后生成的同样是空文件夹,跟你的问题一样,你现在解决这个问题了嘛?

WangShuu avatar Oct 08 '20 11:10 WangShuu

@raozhongyu and @a-whitej Did you try with the docker container that they have provided? You should not see any issues if you run the scripts from inside the container.

我也是用docker来运行的,最后生成的同样是空文件夹,跟你的问题一样,你现在解决这个问题了嘛?

I have met the same problem , did you solve it

tz0403 avatar Oct 12 '20 09:10 tz0403

same problem, empty folder

yipka avatar Feb 12 '21 06:02 yipka

@WangShuu @a-whitej @tz0403 你好,我也是docker运行生成空文件夹,请问你们是怎么解决的呀?谢谢!!

TitaniumOne avatar Apr 17 '21 00:04 TitaniumOne

@WangShuu @a-whitej @tz0403 你好,我也是docker运行生成空文件夹,请问你们是怎么解决的呀?谢谢!! 你解决了吗?

Yuuuumie avatar Apr 01 '24 03:04 Yuuuumie