Open KervinBill opened 7 years ago
To solve this it requires to add the src folder into PYTHONPATH
:
export PYTHONPATH='$PYTHONPATH:/path/to/src'
Thanks, I've solved. But when I try again, I got this:
Using Theano backend.
Reading Video...
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 188, in
Does it mean I have opencv install inside the virtual environment ? my machine has OPENCV install. Thank u very much.
This means that OpenCV is not able to open the file. The usual setup is to create a virtual environment with --system-site-packages
so if you have OpenCV installed on your system, it will be accessible on the virtual environment.
If you have already done this, take a look to the video where this exception is happening and maybe it can be due to incompatibility or file being damaged.
(theano3) ailab@ailab-All-Series:~/HAR/activitynet-2016-cvprw-master$ python scripts/run_all_pipeline.py -i data/activitynet/GCtrfXIBbwA.mp4
Using Theano backend.
Using gpu device 0: GeForce GTX TITAN X (CNMeM is disabled, cuDNN 5005)
Reading Video...
3.2.0 # print(cv2.version)
data/activitynet/GCtrfXIBbwA.mp4 # print(video_path)
Unable to stop the stream: Inappropriate ioctl for device
<VideoCapture 0x7fc870457f90>
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 192, in
I also tried about it but it's still not working I'm using the actvitynet dataset and installed opencv by the conda instruction
Hi, When running run_all_pipeline.py, i got these errors:
Classification:
0.9505 Dodgeball
0.0040 Rope skipping
0.0024 Breakdancing
0.0013 Futsal
0.0011 Belly dance
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 188, in <module>
args.activity_threshold
File "scripts/run_all_pipeline.py", line 73, in run_all_pipeline
activity_threshold
File "/.../.../data/theano/activitynet-2016-cvprw-master/src/processing.py", line 52, in activity_localization
scores.append(np.mean(sequence_class_prob[s:e,activity_idx]))
TypeError: slice indices must be integers or None or have an __index__ method
Something wrong for activity localization, do you know why? Thanks
I don't know exactly what is something wrong
I guess that keras version is different or uninstalled numpy
this is my result on my computer [image: 본문 이미지 1] I execute this program on keras102 version
so if you want to install keras102 version run this instruction
pip install git+git://github.com/fchollet/keras.git@1.0.2
2017-02-24 19:09 GMT+09:00 thomhert notifications@github.com:
Hi, When running run_all_pipeline.py, i got these errors:
Classification: 0.9505 Dodgeball 0.0040 Rope skipping 0.0024 Breakdancing 0.0013 Futsal 0.0011 Belly dance Traceback (most recent call last): File "scripts/run_all_pipeline.py", line 188, in
args.activity_threshold File "scripts/run_all_pipeline.py", line 73, in run_all_pipeline activity_threshold File "/.../.../data/theano/activitynet-2016-cvprw-master/src/processing.py", line 52, in activity_localization scores.append(np.mean(sequence_class_prob[s:e,activity_idx])) TypeError: slice indices must be integers or None or have an index method Something wrong for activity localization, do you know why? Thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/imatge-upc/activitynet-2016-cvprw/issues/5#issuecomment-282254264, or mute the thread https://github.com/notifications/unsubscribe-auth/AYW6W2Nw50efUf1yybQP3FOyHgjRZ2_Cks5rfqxggaJpZM4LV_nU .
Classification:
0.7912 Cleaning sink
0.0615 Knitting
0.0291 Washing dishes
0.0160 Washing hands
0.0120 Peeling potatoes
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 188, in
Same problem after run run_all_pipeline.py. Any solution please?
Which version of Numpy are you using? I have checked and with version 1.11.2 should work. If not try to print the values of s
, e
and activity_idx
to console and put here the output please.
@albertomontesg hello, I have a question to ask you. I want to use your model to train my own dataset, so i need to get the dataset/video.json . what should i do to get the video.json or dataset? I am looking forward your reply,thank you!
I get the following error while trying to execute run_all_pipeline.py:
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 4, in
I have solved the previous error, but now I am getting a new error:
Please help me.
Using TensorFlow backend.
Reading Video...
Duration: 130.6s
FPS: 30.0
Number of frames: 3919
Loading C3D network...
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 188, in
I think you should Change your backend,the default backend is tensorflow.
------------------ 原始邮件 ------------------ 发件人: "kousik97";notifications@github.com; 发送时间: 2017年5月31日(星期三) 下午2:08 收件人: "imatge-upc/activitynet-2016-cvprw"activitynet-2016-cvprw@noreply.github.com; 抄送: "0℃的温度"1358584332@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [imatge-upc/activitynet-2016-cvprw] Error when runrun_all_pipeline.py (#5)
I have solved the previous error, but now I am getting a new error: Please help me. Using TensorFlow backend. Reading Video... Duration: 130.6s FPS: 30.0 Number of frames: 3919 Loading C3D network... Traceback (most recent call last): File "scripts/run_all_pipeline.py", line 188, in args.activity_threshold File "scripts/run_all_pipeline.py", line 40, in run_all_pipeline model = C3D_conv_features(True) File "scripts/run_all_pipeline.py", line 99, in C3D_conv_features trainable=False)) File "/usr/local/lib/python2.7/dist-packages/keras/layers/convolutional.py", line 448, in init ' is currently only working with Theano backend.') Exception: Convolution3D is currently only working with Theano backend.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Thank you so much. I have changed that and it is working but I am getting the following error now: I am trying to run it on a CPU. Please help.
Using Theano backend.
Reading Video...
Duration: 130.6s
FPS: 30.0
Number of frames: 3919
Loading C3D network...
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 188, in
I am getting error can anyone please solve this :
Using Theano backend.
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 4, in
hey @kousik97 how did u solve this error File "/usr/lib/python2.7/zipfile.py", line 501, in class ZipExtFile(io.BufferedIOBase): AttributeError: 'module' object has no attribute 'BufferedIOBase'
Yeah, I solved it. The problem is the io.py in src directory. Rename the io.py to io1.py and correspondingly change the places in which io is used. That worked for me. The problem is zipfile is executing the io package in the python library and not the local io.py in our directory.
Meanwhile, are you using GPU to run the demo?
I am getting this error, please help or suggest something
Using Theano backend.
Reading Video...
Duration: 22.2s
FPS: 25.0
Number of frames: 555
Loading C3D network...
scripts/run_all_pipeline.py:106: UserWarning: Update your Conv3D
call to the Keras 2 API: Conv3D(64, (3, 3, 3), name="conv1", activation="relu", trainable=False, input_shape=(3, 16, 11..., padding="same", strides=(1, 1, 1))
trainable=False))
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 284, in
@mdasifjalal it seems that you written code in tensorflow as shown T and used theano as backened. conv_out = T.nnet.conv3d(x, kernel,
nope, that is not the problem. I think, it was a version mismatch .
Duration: 6.6s
FPS: 25.0
Number of frames: 164
Loading C3D network...
Extracting features...
10/10 [==============================] - 4s
Loading temporal localization network...
features (InputLayer) (1, 1, 4096) 0
normalization (BatchNormalization) (1, 1, 4096) 8192 features[0][0]
dropout_1 (Dropout) (1, 1, 4096) 0 normalization[0][0]
lsmt1 (LSTM) (1, 1, 512) 9439232 dropout_1[0][0]
dropout_2 (Dropout) (1, 1, 512) 0 lsmt1[0][0]
Total params: 9550537
Predicting...
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 287, in
any guesses why i get this error and how can i correct it?
Predicting...
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 291, in
Why am I encountering this error? Please somebody help me out in this.
hi,
i am getting below error when running
python scripts/run_all_pipeline.py -i test2.avi
Exception: ('The following error happened while compiling the node', GpuDnnConv3d{algo='small', inplace=False}(GpuContiguous.0, GpuContiguous.0, GpuAllocEmpty.0, GpuDnnConvDesc{border_mode=(1, 1, 1), subsample=(1, 1, 1), conv_mode='conv', precision='float32'}.0, Constant{1.0}, Constant{0.0}), '\n', 'nvcc return status', 2, 'for cmd', 'nvcc -shared -O3 -Xlinker -rpath,/usr/local/cuda-8.0/lib64 -arch=sm_35 -m64 -Xcompiler -fno-math-errno,-Wno-unused-label,-Wno-unused-variable,-Wno-write-strings,-DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,-fPIC,-fvisibility=hidden -Xlinker -rpath,/home/lanka/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.13-64/cuda_ndarray -I/home/lanka/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.13-64/cuda_ndarray -I/usr/local/cuda-8.0/include -I/home/lanka/anaconda2/envs/activitynet/lib/python2.7/site-packages/theano/sandbox/cuda -I/home/lanka/anaconda2/envs/activitynet/lib/python2.7/site-packages/numpy/core/include -I/home/lanka/anaconda2/envs/activitynet/include/python2.7 -I/home/lanka/anaconda2/envs/activitynet/lib/python2.7/site-packages/theano/gof -o /home/lanka/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.13-64/tmpakYa3E/46fc805ce0bc8d50ab0e937e59958ac5.so mod.cu -L/home/lanka/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.13-64/cuda_ndarray -L/home/lanka/anaconda2/envs/activitynet/lib -lcudart -lcublas -lcuda_ndarray -lcudnn -lpython2.7', "[GpuDnnConv3d{algo='small', inplace=False}(<CudaNdarrayType(float32, 5D)>, <CudaNdarrayType(float32, 5D)>, <CudaNdarrayType(float32, 5D)>, <CDataType{cudnnConvolutionDescriptor_t}>, Constant{1.0}, Constant{0.0})]")
How should i use backend to Theano? i am using Ubuntu 16.4?
(venv) asad@asad-Z370P-D3:~/activitynet-2016-cvprw$ python scripts/run_all_pipeline.py -i data/vid2.mp4
Using TensorFlow backend.
Reading Video...
Duration: 5.7s
FPS: 19.9
Number of frames: 113
Loading C3D network...
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 284, in
I have solved the previous error, but now I am getting a new error: Please help me. Using TensorFlow backend. Reading Video... Duration: 130.6s FPS: 30.0 Number of frames: 3919 Loading C3D network... Traceback (most recent call last): File "scripts/run_all_pipeline.py", line 188, in args.activity_threshold File "scripts/run_all_pipeline.py", line 40, in run_all_pipeline model = C3D_conv_features(True) File "scripts/run_all_pipeline.py", line 99, in C3D_conv_features trainable=False)) File "/usr/local/lib/python2.7/dist-packages/keras/layers/convolutional.py", line 448, in init ' is currently only working with Theano backend.') Exception: Convolution3D is currently only working with Theano backend.
@kousik97 i also have same error. can you tell me please how to change backend to theano? i am using ubuntu .
I think you should Change your backend,the default backend is tensorflow. … ------------------ 原始邮件 ------------------ 发件人: "kousik97";notifications@github.com; 发送时间: 2017年5月31日(星期三) 下午2:08 收件人: "imatge-upc/activitynet-2016-cvprw"activitynet-2016-cvprw@noreply.github.com; 抄送: "0℃的温度"1358584332@qq.com; "Comment"comment@noreply.github.com; 主题: Re: [imatge-upc/activitynet-2016-cvprw] Error when runrun_all_pipeline.py (#5) I have solved the previous error, but now I am getting a new error: Please help me. Using TensorFlow backend. Reading Video... Duration: 130.6s FPS: 30.0 Number of frames: 3919 Loading C3D network... Traceback (most recent call last): File "scripts/run_all_pipeline.py", line 188, in args.activity_threshold File "scripts/run_all_pipeline.py", line 40, in run_all_pipeline model = C3D_conv_features(True) File "scripts/run_all_pipeline.py", line 99, in C3D_conv_features trainable=False)) File "/usr/local/lib/python2.7/dist-packages/keras/layers/convolutional.py", line 448, in init ' is currently only working with Theano backend.') Exception: Convolution3D is currently only working with Theano backend. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Hi, Can you tell me how to change backend to theano? I am using Ubuntu.
I resolved the backend problem but now i am getting this error. Can anyone guide me please.
(venv) asad@asad-Z370P-D3:~/activitynet-2016-cvprw$ python scripts/run_all_pipeline.py -i data/vid2.mp4
Using Theano backend.
ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.
Reading Video...
Duration: 5.7s
FPS: 19.9
Number of frames: 113
Loading C3D network...
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 287, in
Hi, I have resolved other problems but now I am getting this error while running run_all_pipeline.py
(venv) asad@asad-Z370P-D3:~/activitynet-2016-cvprw$ python scripts/run_all_pipeline.py -i data/vid2.mp4 Using Theano backend. ERROR (theano.sandbox.cuda): ERROR: Not using GPU. Initialisation of device gpu failed: initCnmem: cnmemInit call failed! Reason=CNMEM_STATUS_OUT_OF_MEMORY. numdev=1
ERROR (theano.gof.opt): SeqOptimizer apply <theano.sandbox.cuda.dnn.NoCuDNNRaise object at 0x7f3576714610> ERROR (theano.gof.opt): Traceback: ERROR (theano.gof.opt): Traceback (most recent call last): File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/opt.py", line 230, in apply sub_prof = optimizer.optimize(fgraph) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/opt.py", line 89, in optimize ret = self.apply(fgraph, *args, **kwargs) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/sandbox/cuda/dnn.py", line 2564, in apply if not dnn_available(): File "/home/asad/venv/local/lib/python2.7/site-packages/theano/sandbox/cuda/init.py", line 322, in dnn_available v = dnn_version() File "/home/asad/venv/local/lib/python2.7/site-packages/theano/sandbox/cuda/init.py", line 412, in dnn_version profile=False) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/compile/function.py", line 320, in function output_keys=output_keys) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/compile/pfunc.py", line 479, in pfunc output_keys=output_keys) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 1777, in orig_function defaults) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 1641, in create input_storage=input_storage_lists, storage_map=storage_map) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/link.py", line 690, in make_thunk storage_map=storage_map)[:3] File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/vm.py", line 1003, in make_all no_recycling)) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/sandbox/cuda/init.py", line 256, in make_thunk compute_map, no_recycling) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/op.py", line 970, in make_thunk no_recycling) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/op.py", line 879, in make_c_thunk output_storage=node_output_storage) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/cc.py", line 1200, in make_thunk keep_lock=keep_lock) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/cc.py", line 1143, in compile keep_lock=keep_lock) File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/cc.py", line 1587, in cthunk_factory key = self.cmodule_key() File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/cc.py", line 1285, in cmodule_key c_compiler=self.c_compiler(), File "/home/asad/venv/local/lib/python2.7/site-packages/theano/gof/cc.py", line 1364, in cmodulekey numpy.core.multiarray._get_ndarray_c_version()) AttributeError: ('The following error happened while compiling the node', <theano.sandbox.cuda.DnnVersion object at 0x7f3576519e10>(), '\n', "'module' object has no attribute '_get_ndarray_c_version'")
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 5, in
Using Theano backend. Traceback (most recent call last): File "scripts/run_all_pipeline.py", line 8, in from src.data import import_labels ImportError: No module named src.data
Hello! I have the same problem. Can you teach me how to solve it?
Using Theano backend. Traceback (most recent call last): File "scripts/run_all_pipeline.py", line 8, in
from src.data import import_labels
ImportError: No module named src.data