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

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

Open
erdeme36 opened this issue Aug 16, 2022 · 7 comments
Open

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

erdeme36 opened this issue Aug 16, 2022 · 7 comments

Comments

@erdeme36
Copy link

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
Copy link

A-MMz commented Aug 24, 2022

I have the same problem

@adeljalalyousif
Copy link

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

@tranhuynhkyanh
Copy link

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

it not working :(

@Shreyz-max
Copy link
Owner

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

@adeljalalyousif
Copy link

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

@42Viva
Copy link

42Viva commented Jun 27, 2023

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
Copy link

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.

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

7 participants