Shreyz-max / Video-Captioning

Video Captioning is an encoder decoder mode based on sequence to sequence learning
https://shreyz-max.github.io/Video-Captioning/
120 stars 35 forks source link

AttributeError: 'NoneType' object has no attribute 'predict' #9

Open erdeme36 opened 2 years ago

erdeme36 commented 2 years ago

Traceback (most recent call last): File "predict_realtime.py", line 214, in video_caption, file = video_to_text.test() File "predict_realtime.py", line 161, in test sentence_predicted = self.greedy_search(X_test.reshape((-1, 80, 4096))) File "predict_realtime.py", line 45, in greedy_search output_tokens, h, c = self.inf_decoder_model.predict([target_seq] + states_value) AttributeError: 'NoneType' object has no attribute 'predict'

This is the error that I encounter with

A-MMz commented 2 years ago

I have the same problem

adeljalalyousif commented 2 years ago

in config.py add the following line: time_steps_decoder = None

tranhuynhkyanh commented 2 years ago

in config.py add the following line: time_steps_decoder = None

it not working :(

Shreyz-max commented 2 years ago

I am so sorry guys I have been busy for sometime now. I will try and fix it this weekend.

adeljalalyousif commented 2 years ago

In File "predict_realtime.py" delete the following: line 27 self.inf_decoder_model = None This work with me

42Viva commented 1 year ago

In File "predict_realtime.py" delete the following: line 27 self.inf_decoder_model = None This work with me

It works, thx 4 ur note.

luoshuiyang commented 1 year ago

In File "predict_realtime.py" delete the following: line 27 self.inf_decoder_model = None This work with me

it works for me! thank you.