yjxiong / temporal-segment-networks

Code & Models for Temporal Segment Networks (TSN) in ECCV 2016
BSD 2-Clause "Simplified" License
1.53k stars 477 forks source link

compile error at dense flow when bash build_all.sh #270

Open gitxdf opened 5 years ago

gitxdf commented 5 years ago

Building Dense Flow CMake Error: The source directory "/home/dfxue/disk/code/temporal-segment-networks/lib/dense_flow/build/CUDA_USE_STATIC_CUDA_RUNTIME=OFF" does not exist. Specify --help for usage, or press the help button on the CMake GUI. [ 7%] Building CXX object CMakeFiles/denseflow.dir/src/dense_flow.cpp.o [ 14%] Building CXX object CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o [ 21%] Building CXX object CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o /home/dfxue/disk/code/temporal-segment-networks/lib/dense_flow/src/dense_warp_flow_gpu.cpp:13:34: fatal error: opencv2/cudaarithm.hpp: 没有那个文件或目录

include "opencv2/cudaarithm.hpp"

                              ^

compilation terminated. /home/dfxue/disk/code/temporal-segment-networks/lib/dense_flow/src/dense_flow_gpu.cpp:5:35: fatal error: opencv2/xfeatures2d.hpp: 没有那个文件或目录

include "opencv2/xfeatures2d.hpp"

                               ^

compilation terminated. /home/dfxue/disk/code/temporal-segment-networks/lib/dense_flow/src/dense_flow.cpp:6:31: fatal error: opencv2/optflow.hpp: 没有那个文件或目录

include "opencv2/optflow.hpp"

                           ^

compilation terminated. CMakeFiles/denseflow.dir/build.make:86: recipe for target 'CMakeFiles/denseflow.dir/src/dense_flow.cpp.o' failed make[2]: [CMakeFiles/denseflow.dir/src/dense_flow.cpp.o] Error 1 make[2]: 正在等待未完成的任务.... CMakeFiles/denseflow.dir/build.make:110: recipe for target 'CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o' failed make[2]: [CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o] Error 1 CMakeFiles/denseflow.dir/build.make:134: recipe for target 'CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o' failed make[2]: [CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o] Error 1 CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/denseflow.dir/all' failed make[1]: [CMakeFiles/denseflow.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: [all] Error 2 Failed to build Dense Flow. Please check the logs above.

I have found some solutions by google, but all of them are not useful. And I hope I can get some help from here. I don't know where the problem is, can anyone give me some advices? Thanks Best wishes

RayLeijingsi commented 4 years ago

I met this problem, too. Did you solve it?

gitxdf commented 4 years ago

I met this problem, too. Did you solve it?

You can try : https://github.com/open-mmlab/mmaction

RayLeijingsi commented 4 years ago

I met this problem, too. Did you solve it?

You can try : https://github.com/open-mmlab/mmaction

你用的opencv是2.4.13嘛?是不是需要加入额外的opencv_contrib包?

gitxdf commented 4 years ago

I met this problem, too. Did you solve it?

You can try : https://github.com/open-mmlab/mmaction

你用的opencv是2.4.13嘛?是不是需要加入额外的opencv_contrib包?

不是,我用的opencv4,opencv2版本太老了,很多东西不兼容,所以就用mmaction了,只要能把光流提取出来就可以。

YuLengChuanJiang commented 4 years ago

@gitxdf 您好!我也再跑这个程序,请问您们是如何从视频生成RGB和光流图像的?没有GPU能 bash build_all.sh 成功吗?