Giter Site home page Giter Site logo

Comments (11)

hemanth2410 avatar hemanth2410 commented on July 28, 2024 4

step 1-> install openIV and select GTA 5 location in it.
step 2 -> Enable Edit mode
step 3 -> Go to x64a.rpf
step 4 -> Go to textures folder
step 5 -> (Right click) on graphics.ytd and select edit
step 6 -> Search for radarmasksm
step 6 -> replace it with https://1drv.ms/u/s!Au9TCMuJ7_EbhvVjoQVV5xXwzgIjnQ
step 7 -> remove any trainers that you have previously installed.
step 8 -> install this trainer to gta 5 https://www.gta5-mods.com/scripts/simple-trainer-for-gtav
step 9 -> press F4 to open trainer menu
step 10 -> Use your number pad keys to navigate in menu.
step 11 -> go to vehicle spawning -> sports -> select Lampadati Furore GT.
step 12 -> go into vehicle options in trainer menu -> vehicle color oprions.
step 13 -> select matte black for both primary and secondary color options.
step 14 -> go to general options and select display speed info KMPH
step 15 -> make sure that you are running game in 800 x 600 windowed mode.
step 16 -> identify speed. https://1drv.ms/u/s!Au9TCMuJ7_EbhvVktW3jjxmI82rxFQ
step 17 -> vis = image[568:576, 681:700, :]
step 18 ->
screenshot 2

you should get output something like this.

step 19 -> make sure that you set values like 576-568 = 8 px and 700-681 = 19 px.
the values of width and height should be 8 and 19.
step 20 -> if you got this far then you are probably ready to perform self driving
step 21 -> in repo folder go to object_detection -> object_Detect.py, under # set yolo options change gpu value to 0.4
step 22 -> save the py file.
step 23 -> now set waypoint on map.
step 24 -> run drive.py code.

optional steps if Gpu is <= 4GB

step 25 -> if you have ssd try running code on ssd.
step 26 -> tune gpu value in object_detect.py

from ai_gta5.

hadipash avatar hadipash commented on July 28, 2024 1

Hi! Thanks for your inquiry.

The model file is fine, just the procedure of making the program work is a bit complicated. Until now didn't have much time to write a good guideline.

The most important you need to know before you start is that the program works only with Korean version of GTA V due to fonts. Unfortunately, in English version fonts are not monospaced and it made difficult to read important information from the screen.

Then, you also need to consider next:

  1. The code was tested in PyCharm and might not work with python idle (you can download PyCharm for free using student subscription https://www.jetbrains.com/student/)
  2. The code was tested using python 3.6. You might want to switch to that version.
  3. The code 100% does not work with anaconda (in fact, tensorflow officially has no support in anaconda).

Let me know if you still have problems.

from ai_gta5.

hemanth2410 avatar hemanth2410 commented on July 28, 2024 1

try setting marker on map and then press T on keyboard.

and please make sure that you are in first person move (Hood camera).

and paint both primary and secondary colors to matte black.

enable speed info (KMPH only) from sample trainer.

this worked for me

and thanks hadipash for guiding me.

from ai_gta5.

hadipash avatar hadipash commented on July 28, 2024 1

@hemanth2410 As much as I would love to improve this project, I simply don't have time for this. So, no plans on any upgrades.

from ai_gta5.

hemanth2410 avatar hemanth2410 commented on July 28, 2024

I am guessing the model file is corrupted, after cloning repo the model file is only about 3698 kb

from ai_gta5.

hemanth2410 avatar hemanth2410 commented on July 28, 2024

from ai_gta5.

hemanth2410 avatar hemanth2410 commented on July 28, 2024

so far i can see only lanes, but i dont see any boxes surrounding people, traffic lights etc

from ai_gta5.

hadipash avatar hadipash commented on July 28, 2024

Now, to run the model need to adjust some parameters. Because tuning depends on several conditions including your hardware (GTA V outlook differs from version to version and hardware), it is better to do it through pm. Could you message me through linkedin?

from ai_gta5.

Duskfall avatar Duskfall commented on July 28, 2024

Hello, thanks for the great repo!
Using Python 3.6,
Pycharm 2018.3.5
Windows 10
tensorflow_gpu-1.13.1
Installed darkflow globally with pip install . after cloning the project
How can I use the auto drive mode? I get to Arrived at destination when pressing T. Also I only see the boxes instead of the lanes

from ai_gta5.

Duskfall avatar Duskfall commented on July 28, 2024

@hemanth2410 can you plz clarify those 2? :P

and paint both primary and secondary colors to matte black.

enable speed info (KMPH only) from sample trainer.

from ai_gta5.

hemanth2410 avatar hemanth2410 commented on July 28, 2024

@hadipash any plans in upgrading this code, sir?

from ai_gta5.

Related Issues (1)

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.