Live data from Hacker News

TensorKart: self-driving MarioKart with TensorFlow

kevinhughes.ca

41–50 of 70 posts

Re: TensorKart: self-driving MarioKart with TensorFlow

#41
post #15

Earlier quoted context omitted.

I would love to learn how to do that - any suggestions? EDIT: to clarify: what should I google for?

Reinforcement Learning. Here's a good intro: http://www0.cs.ucl.ac.uk/staff/d.silver/web/Teaching.html

Perfect, thank you!!! You made my day. :-D

Re: TensorKart: self-driving MarioKart with TensorFlow

#42
post #27
post #14

Quote: "Driving a new (untrained) section of the Royal Raceway:" So the author did a proper test of the model by scoring it on an unseen track to make sure it generalizes! This is very awesome!

How did we get from "bare minimum sensible testing" to "This is very awesome!"? Are things that bad on average?

There's probably a broad range of people in the hn community.

Re: TensorKart: self-driving MarioKart with TensorFlow

#43
post #27

Earlier quoted context omitted.

How did we get from "bare minimum sensible testing" to "This is very awesome!"? Are things that bad on average?

There's probably a broad range of people in the hn community.

Fair point.

NB: generalization should be one of, if not the first thing you think about and plan for in any ML project.

Re: TensorKart: self-driving MarioKart with TensorFlow

#44

Personally, I'm just a little impressed that you can train an active agent to play a game using old-fashioned supervised learning on screen states and controller states rather than relying on "action-oriented" learning techniques like reinforcement learning, online learning, or even a recurrent model. It really shows how simple many control tasks actually are!

This is exactly what I wondered about. So what exactly is the function you are training for? Is it basically like "if the screen (showing the track) looks like this, apply these controls"?

Re: TensorKart: self-driving MarioKart with TensorFlow

#45
post #11

In contrast, here's what is effectively an oracle machine playing mario kart: https://www.youtube.com/watch?v=ZBNgbJ5hXtQ (Amazingly detailed) info: http://tasvideos.org/5243S.html

I like how it just glitches itself to an almost instant win on half of the maps.

These are Tool-Assisted Speedruns. That means that it's a human player using things like slow motion, mem dumps and other mechanisms to play perfect games. It's more an example of human's abilities when augmented with computers than AI discovering those glitches itself.

Re: TensorKart: self-driving MarioKart with TensorFlow

#46
post #17
post #15

Earlier quoted context omitted.

I would love to learn how to do that - any suggestions? EDIT: to clarify: what should I google for?

Here's what I could find in a couple minutes: https://github.com/openai/universe-starter-agent OpenAI's example universe agent. Remember that while their goal is an agent that works in any and all environments (read: games), you could certainly optimize yours just for MarioKart.

Thanks, looks promising! Can't wait to try it! :)

Re: TensorKart: self-driving MarioKart with TensorFlow

#47
post #11

Earlier quoted context omitted.

I like how it just glitches itself to an almost instant win on half of the maps.

These are Tool-Assisted Speedruns. That means that it's a human player using things like slow motion, mem dumps and other mechanisms to play perfect games. It's more an example of human's abilities when augmented with computers than AI discovering those glitches itself.

The most amazing run I've seen so far was a RTA (realtime time attack) of mega man 2. A human player is manually collision glitching and writing over memory with a sequence of inputs. And the RTA time in 2016 is now faster than the initial TAS records.

Re: TensorKart: self-driving MarioKart with TensorFlow

#48
post #39
post #33

Earlier quoted context omitted.

I'm one of cr0sh's classmates. I don't have any background in ML/AI/etc, so I've had to supplement the Udacity course materials with a lot of external resources (just finished watching the Stanford CS231n course, which was very helpful), but overall the course been really interesting+fun so far. It's really nice to be exposed to new kinds of tech I've never heard of / used before. Refreshing change from webdev. If yo…

A bit off-topic, but does anyone know how good this[0] course is? [0] https://www.udacity.com/course/deep-learning--ud730

i was quite put off by it. i feel like the teaching technique is pretty poor and the focus in on all the wrong things. mainly the tech gets in the way for learning. i don't want to figure out how to learn numpy when i'm trying to learn how to understand deep learning, that in itself is hard enough. i quite after a week (i did the stanford course first and this was going to be my second).

i would recommend the coursera course by andrew ng. i had an amazing time. the code stays out of your way and he walks you through the algorithms and explains the theory very well.

i just started the fast.ai by jeremy howard, and literally have been blown away but the course. it is AMAZING! by lesson 3 i'm able to build cnn models and score on top 20% in kaggle competitions. not bad for a complete novice. HIGHLY RECOMMENDED.

once im done with the fast.ai course i may look back around to google's deep learning course. i think it may be easier for more experienced users to digest its info.

https://www.coursera.org/learn/machine-learning

http://course.fast.ai/

Edit: added fast.ai link

Re: TensorKart: self-driving MarioKart with TensorFlow

#49
post #13

Earlier quoted context omitted.

Step 1 is to make the AI find an ideal path through the course. Step 2 is to make AI figure out how to return to the ideal path through the course when other people are stealing your items or shelling you. step 3 is to make the AI figure out how to counter attack to slow down the opponents. Step 4 is OH GOD WE TAUGHT THE AI HOW TO ATTACK RUN FOR YOUR LIVES.

Step 2.5 would be to make the AI figure out how to evade or minimize the effect of or ability to initiate opponents' offensive moves. That would be the most interesting bit to me. Would be neat to see an AI intentionally stay in 2nd place with an item at the ready until the home stretch, to avoid being blue-shelled.

Intentionally stay in second, unless it has reason to believe that it can stay in 1st place, even after getting blue-shelled.

But yes. point being, self driving is a feat of it's own, competing with opponents is a whole different ballgame with it's own set of challenges.

Re: TensorKart: self-driving MarioKart with TensorFlow

#50

Personally, I'm just a little impressed that you can train an active agent to play a game using old-fashioned supervised learning on screen states and controller states rather than relying on "action-oriented" learning techniques like reinforcement learning, online learning, or even a recurrent model. It really shows how simple many control tasks actually are!

This is exactly what I wondered about. So what exactly is the function you are training for? Is it basically like "if the screen (showing the track) looks like this, apply these controls"?

In TFA it says that he was training a supervised learner to predict the control state from the screen state. So yes, "if the screen looks like this, apply these controls", and that can play Mario Kart 64.
Post reply on HN