Live data from Hacker News

Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

minimaxir.com

31–40 of 47 posts

Re: Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

#31

This is remarkably more coherent than previous attempts at M:tG card generation with a deep RNN [1] but on the other hand, the ability text on the few cards I've generated so far seems oddly famliar. In fact, I got one that is identical to an actual card. Generated by GPT-2 [2]: Tephraderm {1}{R} (common) Sorcery Each player sacrifices a land. Actual M:tG card (copied by hand by me and keeping the same notation): Tre…

I asked for "Thought Pull" casting cost UU and it gave me "Counter target spell unless its controller discards their hand." Not bad!

(For some reason, the text on the side says "Uncast" instead of "counter".)

Re: Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

#32
post #31

This is remarkably more coherent than previous attempts at M:tG card generation with a deep RNN [1] but on the other hand, the ability text on the few cards I've generated so far seems oddly famliar. In fact, I got one that is identical to an actual card. Generated by GPT-2 [2]: Tephraderm {1}{R} (common) Sorcery Each player sacrifices a land. Actual M:tG card (copied by hand by me and keeping the same notation): Tre…

I asked for "Thought Pull" casting cost UU and it gave me "Counter target spell unless its controller discards their hand." Not bad! (For some reason, the text on the side says "Uncast" instead of "counter".)

> (For some reason, the text on the side says "Uncast" instead of "counter".)

That's how the source script encodes it (to differentiate it from "counters" like +1/+1 counters) but for some reason it's not fixed during decode. I'm tempted to manually add a fix.

Re: Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

#33
post #27

Earlier quoted context omitted.

I go into it more in the README but yes, GPT-2 overfits Magic cards very quickly despite my best efforts (usually it shifts the mana cost/rarity a bit more though than your example).

To avoid copying the training set you can increase the temperature at sampling time. This should trade off between accuracy (maximum likelihood) and quirkiness (more stochastic background).

See the dumps for various sampling temperatures. Even at 1.2 (versus 0.7), there is some evidence of overfitting.

The app uses a random temperature between 0.7 and 1.2 to prevent it from going off-the-rails.

Re: Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

#34

This is remarkably more coherent than previous attempts at M:tG card generation with a deep RNN [1] but on the other hand, the ability text on the few cards I've generated so far seems oddly famliar. In fact, I got one that is identical to an actual card. Generated by GPT-2 [2]: Tephraderm {1}{R} (common) Sorcery Each player sacrifices a land. Actual M:tG card (copied by hand by me and keeping the same notation): Tre…

I go into it more in the README but yes, GPT-2 overfits Magic cards very quickly despite my best efforts (usually it shifts the mana cost/rarity a bit more though than your example).

I'd imagine it'd be hard to avoid? There isn't exactly a lot of text on these cards, with so many parameters in the model it wouldn't be surprising that it overfits

Re: Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

#36

This is really great. Is there any other AI similar to this one? Maybe one that generates AI illustrations for the cards...?

I tried to make full cards, text and cart art and card structure, all in the same model but it didn't work:

https://twitter.com/jonathanfly/status/1124918657220534272

This person trained a nice cart art model: https://twitter.com/mkturkcan/status/1121228356899561472

Lastly just an amusing MTG card mashup:

https://twitter.com/jonathanfly/status/1120560055823347712

Re: Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

#37

I chose the name "Javascript" and let it choose: https://imgur.com/a/mlqJmjK

When I generated it:

1. Haha, Javascript _is_ sorcery. Awesome.

2. Wait, Javascript is evil sorcery?

3. This card does a lot

4. Wait, the result of this card is that I do something pointless, then I give my opponent 7 cards from my library, then I put the rest of my library into my graveyard?

Re: Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

#38

This is really great. Is there any other AI similar to this one? Maybe one that generates AI illustrations for the cards...?

generating images for generated cards: https://andymakesgames.tumblr.com/post/167733819029/urzas-dr... http://andymakes.com/urzasdreamengine/

Sweet. Is there a way to test this?

Re: Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

#39

This is really great. Is there any other AI similar to this one? Maybe one that generates AI illustrations for the cards...?

I've also released an interface for a Reddit-based GPT-2 API: https://minimaxir.com/apps/gpt2-reddit/

> Putin ran away to the north pole while the ice was melting. then a huge car crashed and one person died. The other person then was injured while in the car. How long did it take for the ice to melt?

Pretty awesome

Re: Show HN: Make your own AI-generated Magic: The Gathering cards with GPT-2

#40

I chose the name "Javascript" and let it choose: https://imgur.com/a/mlqJmjK

When I generated it: 1. Haha, Javascript _is_ sorcery. Awesome. 2. Wait, Javascript is evil sorcery? 3. This card does a lot 4. Wait, the result of this card is that I do something pointless, then I give my opponent 7 cards from my library, then I put the rest of my library into my graveyard?

[deleted]
Post reply on HN