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

"steps" argument being passed as None #298

Open
nipun1992 opened this issue Sep 2, 2022 · 0 comments
Open

"steps" argument being passed as None #298

nipun1992 opened this issue Sep 2, 2022 · 0 comments

Comments

@nipun1992
Copy link

nipun1992 commented Sep 2, 2022

When using the yolo.predict() function, there is an exception being returned saying that "steps" argument needs to be specified. In the method implementations, the steps argument has been set to None and this parameter is not being set in the method invocation. Is there any need or is it mandatory to specify the steps argument in yolo.predict() function?

Also, when trying to search for the steps argument in the predict() function, the search does not return this argument upon looking for it in pycharm.

Exception message:

Traceback (most recent call last):
File "C:/Users/nipun.gupta/Downloads/UniquePersonDeepSort/src/testDeepSort.py", line 16, in
output = predictImage(req)
File "C:\Users\nipun.gupta\Downloads\UniquePersonDeepSort\src\getImagePredictionDeepSort.py", line 134, in predictImage
boxes, scores, classes, nums = yolo.predict(img_in)
File "C:\Users\nipun.gupta\Downloads\UniquePersonDeepSort\venv\lib\site-packages\keras\engine\training_v1.py", line 978, in predict
use_multiprocessing=use_multiprocessing)
File "C:\Users\nipun.gupta\Downloads\UniquePersonDeepSort\venv\lib\site-packages\keras\engine\training_arrays_v1.py", line 699, in predict
x, check_steps=True, steps_name='steps', steps=steps)
File "C:\Users\nipun.gupta\Downloads\UniquePersonDeepSort\venv\lib\site-packages\keras\engine\training_v1.py", line 2288, in _standardize_user_data
training_utils_v1.check_steps_argument(x, steps, steps_name)
File "C:\Users\nipun.gupta\Downloads\UniquePersonDeepSort\venv\lib\site-packages\keras\engine\training_utils_v1.py", line 1317, in check_steps_argument
input_type=input_type_str, steps_name=steps_name))
ValueError: When using data tensors as input to a model, you should specify the steps argument.

Please suggest. 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

1 participant