Video-Captioning icon indicating copy to clipboard operation
Video-Captioning copied to clipboard

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

Open erdeme36 opened this issue 3 years ago • 7 comments

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

erdeme36 avatar Aug 16 '22 11:08 erdeme36

I have the same problem

A-MMz avatar Aug 24 '22 18:08 A-MMz

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

adeljalalyousif avatar Sep 08 '22 11:09 adeljalalyousif

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

it not working :(

tranhuynhkyanh avatar Sep 14 '22 14:09 tranhuynhkyanh

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

Shreyz-max avatar Sep 14 '22 15:09 Shreyz-max

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

adeljalalyousif avatar Sep 30 '22 19:09 adeljalalyousif

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.

42Viva avatar Jun 27 '23 08:06 42Viva

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.

luoshuiyang avatar Aug 30 '23 01:08 luoshuiyang