Giter Site home page Giter Site logo

Comments (6)

ikergarcia1996 avatar ikergarcia1996 commented on May 18, 2024

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.

from self-driving-car-in-video-games.

adanamanya avatar adanamanya commented on May 18, 2024

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?

from self-driving-car-in-video-games.

ikergarcia1996 avatar ikergarcia1996 commented on May 18, 2024

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?

from self-driving-car-in-video-games.

adanamanya avatar adanamanya commented on May 18, 2024

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?

from self-driving-car-in-video-games.

ikergarcia1996 avatar ikergarcia1996 commented on May 18, 2024

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.

from self-driving-car-in-video-games.

adanamanya avatar adanamanya commented on May 18, 2024

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

from self-driving-car-in-video-games.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.