Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not run it! #22

Closed
qiangzhang007 opened this issue Dec 15, 2017 · 1 comment
Closed

can not run it! #22

qiangzhang007 opened this issue Dec 15, 2017 · 1 comment

Comments

@qiangzhang007
Copy link

Recently,I want to study the project of activitynet-2016-cvprw,but i meet some problem!

As #18 deccribing, I change the code

def run_all_pipeline(input_video, smoothing_k, activity_threshold):
input_size = (112, 112)

to

def run_all_pipeline(input_video, smoothing_k, activity_threshold):
input_size = ((16, 112, 112, 3)

, then,i run command "python scripts/run_all_pipeline.py -i changge.mp4",but another probelm appear. as u see blow:

Using TensorFlow backend.
Reading Video...
Duration: 30.7s
FPS: 24.9
Number of frames: 765
Traceback (most recent call last):
File "scripts/run_all_pipeline.py", line 284, in
args.activity_threshold)
File "scripts/run_all_pipeline.py", line 35, in run_all_pipeline
video_array = video_array.reshape((nb_clips, length, 3, 112, 112))
ValueError: cannot reshape array of size 4042752 into shape (47,16,3,112,112)

how i can run this demo smoothly? hope for you answer.

@samouha
Copy link

samouha commented May 23, 2018

Probably, this error is caused by the backend used, it is 'Theano' and not TensorFlow !
change it in the file json.keras: (Keras with Theano backend)
$ sudo gedit $HOME/.keras/keras.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants