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

prediction always return none #5

Closed
adanamanya opened this issue Feb 27, 2021 · 6 comments
Closed

prediction always return none #5

adanamanya opened this issue Feb 27, 2021 · 6 comments

Comments

@adanamanya
Copy link

adanamanya commented Feb 27, 2021

image

im running it with latest release pretrain_model, pretrain
but always return key predicted none,
it makes the AI doing nothing
im really stuck of this issue, maybe anyone can help me?

Here is my pip list
image

@ikergarcia1996
Copy link
Owner

Gi @adanamanya, sorry for the late response.
The model seems to be running correctly, but for some reason, it predicts that it should not push any key, this is expected when you open the in-game map or when you don't have any route set in the minimap. It can also happen if python is not able to correctly record the screen, to ensure that this is not happening you can push the "L" key and the images that are currently being used to predict the keys will be displayed so you can test if the program is recoding the game correctly.

@adanamanya
Copy link
Author

it's recording the screen correctly, i can see the dashcam view when pressing "L".
also already set the route on map, is there any other possibilities that causing this?

@ikergarcia1996
Copy link
Owner

What is happening then is that the model thinks that do not push any key is the correct action. I will test again this weekend the model that I released to ensure that it works as expected on my PC and I didn't upload an incorrect model.

Are you using the first person view with Settings > First Person Vehicle Hood = On?

@adanamanya
Copy link
Author

adanamanya commented Mar 5, 2021

This is how it looks when i press L
image
i try to print model_prediction[0], it always return 0, which means np.asarray([0]) always return 0.
what is your numpy version anyway?
also, what is your screen resolution?

@ikergarcia1996
Copy link
Owner

ikergarcia1996 commented Mar 6, 2021

I tested the model/code. It also says for me that the predicted key is always none, however, the model drives as expected. The bug was only affecting the print in the terminal. I have updated the code to fix the bug. Let me know if the change worked for you

I am using 1600x900 screen resolution for the game (My screen is 2560x1440), the V4 version will allow you to set the game at any resolution you want including full screen, I will release it in a few weeks.

@adanamanya
Copy link
Author

image
still returning none
already setup 1600x900 in game, and 2560x1440 for monitor
is there any possibilities because of my numpy version different than yours? or maybe because my VGA didn't support fp-16?
i see your model_v3 was trained with fp-16
im running it with command python run_TEDD1104.py --model_dir small_V3
image

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

2 participants