Python Flappy Bird AI Tutorial (with NEAT) – Finishing Touches and Testing



The final video in the Python Flappy Bird AI Tutorial series. In this video we finish up the implementation of the NEAT python algorithm and start testing our AI!

Download CONFIG File:

NEAT Documentation:
NEAT Article:
Code:…

, , , , , , , , ,

23 thoughts on “Python Flappy Bird AI Tutorial (with NEAT) – Finishing Touches and Testing

  1. please someone help, i keep getting these errors:

    Traceback (most recent call last):
    File "/Users/maurovella/PycharmProjects/FlappyBirdML/FlappyBird.py", line 271, in <module>
    run(config_path)
    File "/Users/maurovella/PycharmProjects/FlappyBirdML/FlappyBird.py", line 266, in run
    winner = p.run(main, 50)
    File "/Users/maurovella/PycharmProjects/FlappyBirdML/venv/lib/python3.7/site-packages/neat/population.py", line 89, in run
    fitness_function(list(iteritems(self.population)), self.config)
    File "/Users/maurovella/PycharmProjects/FlappyBirdML/FlappyBird.py", line 210, in main
    output = net[x].activate((bird.y, abs(bird.y – pipes[pipe_ind].height), abs(bird.y – pipes[pipe_ind].bottom)))
    TypeError: 'FeedForwardNetwork' object is not subscriptable

    Thaks!

  2. Idk what happened but its going till 49gen and nothing is showing in the screen

    Ig i didn't feed them

    And got to know one thing if gen =50 then it will go till 49 not 50

  3. I'm using pycharm and I get this error:

    Traceback (most recent call last):

    File "C:/Users/ExtremeTitan345/Desktop/python/snake.py", line 274, in <module>

    run(config_path)

    File "C:/Users/ExtremeTitan345/Desktop/python/snake.py", line 261, in run

    config_path)

    File "C:UsersExtremeTitan345Desktoppythonvenvlibsite-packagesneatconfig.py", line 153, in _init_

    raise Exception('No such config file: ' + os.path.abspath(filename))

    Exception: No such config file: C:UsersExtremeTitan345Desktoppythonconfig-feedforward.txt

    pls help!

    Edit: I called the file snake.py BTW

Leave a Reply

Your email address will not be published. Required fields are marked *