yjxiong / anet2016-cuhk

Action Recognition Toolbox for CUHK&ETHZ&SIAT submission to ActivityNet 2016
BSD 2-Clause "Simplified" License
252 stars 92 forks source link

Installation issues: I adapted the TSN Docker container – feel free to use it #38

Open v-iashin opened 4 years ago

v-iashin commented 4 years ago

Hi everyone!

I was trying to make the code run on my machine and I faced significant trouble installing the correct versions of packages because they became obsolete. Then I tried docker. The experience with it wasn't smooth either because dense_flow installation wasn't compatible with my GPU. So, I tried the docker container provided for the TSN network. I tested it with 1080Ti (worked) and 2080Ti (didn't work w/ CUDNN_STATUS_EXECUTION_FAILED) with 64GB RAM.

docker pull iashin/anet2016-cuhk:latest

or build on top of it by specifying the header of your Dokerfile:

FROM iashin/anet2016-cuhk:latest

The output from the examples:

Here is the Dockerfile I used to build it (also might be useful if you are not familiar with docker and would like to install it on your machine or as a reference for the package version)

FROM bitxiong/tsn:cuda9_cudnn7

RUN git clone --recursive https://github.com/yjxiong/anet2016-cuhk
WORKDIR /app/anet2016-cuhk
RUN bash models/get_reference_models.sh

RUN cp -r ../lib/ .
RUN cp ../cv2.so .

RUN pip install easydict==1.6
# YouTube API changes often so you may want to install a more recent version of youtube_dl:
RUN pip install youtube_dl==2020.9.20

RUN echo "export ANET_HOME="/app/anet2016-cuhk"" >> ~/.bashrc
hgminh95 commented 3 years ago

Thanks, that is really helpful (:

yagmurshn commented 1 year ago

Hi, i had the same trouble cas of dense_flow package which caused me not to run cuhk project on locally. There's no opencv version that it works compatible with dense_flow. Btw cuhk project does not work with python 3 version. My question is after i pull your docker image to my locally and enter inside to container, when i try to run following command prompt in order to see the classification results for plastering.avi, i'm getting the error below, so i cann't run the classification.

python examples/classify_video.py --use_flow data/plastering.avi

root@488aab6d3886:/app/anet2016-cuhk# python examples/classify_video.py --use_flow data/plastering.avi 
WARNING: Logging before InitGoogleLogging() is written to STDERR
E0805 18:02:37.780357    16 common.cpp:138] Cannot create Cublas handle. Cublas won't be available.
E0805 18:02:37.780797    16 common.cpp:145] Cannot create Curand generator. Curand won't be available.
Setting device 0
F0805 18:02:37.781041    16 common.cpp:190] Check failed: error == cudaSuccess (35 vs. 0)  CUDA driver version is insufficient for CUDA runtime version
*** Check failure stack trace: ***
Aborted (core dumped)

Could the cuda driver version inside the docker image be outdated or incompatible?

yagmurshn commented 1 year ago

The error i still keep getting, when i run following script. python examples/classify_video.py data/plastering.avi


F0807 20:06:21.927471  1948 cudnn_conv_layer.cu:34] Check failed: status == CUDNN_STATUS_SUCCESS (8 vs. 0)  CUDNN_STATUS_EXECUTION_FAILED
*** Check failure stack trace: ***
Aborted (core dumped)
wssxjtu commented 1 year ago

Have you solved this problem yet? I'm having the same problem. @yagmurshn

wssxjtu commented 1 year ago

The error i still keep getting, when i run following script. python examples/classify_video.py data/plastering.avi


F0807 20:06:21.927471  1948 cudnn_conv_layer.cu:34] Check failed: status == CUDNN_STATUS_SUCCESS (8 vs. 0)  CUDNN_STATUS_EXECUTION_FAILED
*** Check failure stack trace: ***
Aborted (core dumped)

I'm having the same problem. @yagmurshn

yagmurshn commented 1 year ago

Regrettably, I've exhausted all local solutions, including using nvidia-docker with the --gpus all parameter, but I continue to encounter this error.

yagmurshn commented 1 year ago

It's quite disappointing that the CUHK paper received such widespread recognition in various articles and even secured the winner rank, yet its code failed to work at all, the code did not function as expected.

wssxjtu commented 1 year ago

It's quite disappointing that the CUHK paper received such widespread recognition in various articles and even secured the winner rank, yet its code failed to work at all, the code did not function as expected.

Regrettably, I've exhausted all local solutions, including using nvidia-docker with the --gpus all parameter, but I continue to encounter this error.

Thank you very much for your reply!