Code Monkey home page Code Monkey logo

ai-car-simulation's People

Contributors

neuralnine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ai-car-simulation's Issues

neat doesnt have a config attribute, please provide a turnaround

After doing pip install neat, this showed up:

AttributeError Traceback (most recent call last)
in
3 # Load Config
4 config_path = "./config.txt"
----> 5 config = neat.config.Config(neat.DefaultGenome,
6 neat.DefaultReproduction,
7 neat.DefaultSpeciesSet,

AttributeError: module 'neat' has no attribute 'config'

image

size

even though i adjusted the width and height the issues remains the same.I want to control the height and width of the img inside the pygame window not the window itself

FileNotFoundError

Hello, I got this error:

 ****** Running generation 0 ******

Traceback (most recent call last):
  File "C:\Users\Dom\Downloads\ai-car\newcar.py", line 261, in <module>
    population.run(run_simulation, 1000)
  File "C:\Users\Dom\AppData\Local\Programs\Python\Python39\lib\site-packages\neat\population.py", line 89, in run
    fitness_function(list(iteritems(self.population)), self.config)
  File "C:\Users\Dom\Downloads\ai-car\newcar.py", line 173, in run_simulation
    cars.append(Car())
  File "C:\Users\Dom\Downloads\ai-car\newcar.py", line 30, in __init__
    self.sprite = pygame.image.load('car.png').convert() # Convert Speeds Up A Lot
FileNotFoundError: No such file or directory.

need to tyhe module versions

i would to know the versions of the modules yoou have used for the self simulation ai car,and guidance on how to run this code properly, can you add a requirment.txt file for convient use

black screen

all works but it give me a black screen and point me to these lines plz this is very important for me man note i am using arch linux as a daily driver arcolinux is my distro

File "/home/moon/Desktop/Python/ai-car-simulation-master/newcar.py", line 261, in
population.run(run_simulation, 1000000)
File "/home/moon/.local/lib/python3.9/site-packages/neat/population.py", line 89, in run
fitness_function(list(iteritems(self.population)), self.config)
File "/home/moon/Desktop/Python/ai-car-simulation-master/newcar.py", line 165, in run_simulation
screen = pygame.display.set_mode((WIDTH, HEIGHT), pygame.FULLSCREEN)

It display too big...

When I run, it opens the car map with the cars, but it's too big, I can see only few things.

It does not work

pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "newcar.py", line 248, in
config = neat.config.Config(neat.DefaultGenome,
AttributeError: module 'neat' has no attribute 'config'

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.