Switch to full style
Non-Gimp related posts here
Post a reply

Let a Neural Net help you create the best black rectangle on white

Sat Mar 11, 2023 5:38 pm

In this case, a simple random black rectangle on top of blank canvas.
You're shown two random ones.
Keep voting for the one you think that you like more, and you'll be training a neural net to help decide for a better one over time.
Often, we might not know which are all the rules that make us like a piece more than another, but with this method, you don't need to know...just have to keep voting and it'll be used as training data to train a simple neural net (using brain.js Javascript Library) on the page.
and over time it gets better at acting as you (or like you would vote) and each time you click generate() it can act as you and vote like 1000 times (after giving enough real votes of course).
program page: https://thelotteryforum.com/braint.html
Youtube demo after my 300 votes or so.
www.youtube.com Video from : www.youtube.com

Re: Let a Neural Net help you create the best black rectangle on white

Sat Mar 11, 2023 5:39 pm

It's in the discovery and testing phase.
In the future I want to change the code to change the input of training data to take in more variables which would represent more complex than a simple black rectangle.

Re: Let a Neural Net help you create the best black rectangle on white

Sat Mar 11, 2023 6:14 pm

Sorry about earlier posted wrong video so It was unavailable for a while

Re: Let a Neural Net help you create the best black rectangle on white

Sat Mar 11, 2023 6:17 pm

This is a voting or election method to train a neural net. It's probably fairly predictable what humans will vote for. My prediction is it will produce something like the Mona Lisa (once the blockier pixels have been voted-out :))

Why not just use existing elections to decide? Allocate a random decision to each candidate and then see who won. IMHO humans are extremely good a electing complete idiots. Here they are only electing a piece of art and can't self-harm like they usually do :)

Re: Let a Neural Net help you create the best black rectangle on white

Sat Mar 11, 2023 8:23 pm

Oh no not Mona Lisa, this is just to get the most fitting black on white canvas.
So for this one the end will always be a black rectangle on white canvas.

As for the training data I am only feeding it top left corner coordinate, width and height of black rectangle. (Probably shouldn't have called it pieces of art, but just black rectangles on white which could be art hehe)

In future pages I plan to feed it more data for other shapes or combinations of shapes

Re: Let a Neural Net help you create the best black rectangle on white

Sun Mar 12, 2023 7:22 am

This is what the trained neural net thinks I would vote for (with 249 votes as training data).
I generated 1000 times for each tile and did it 9 times/tiles and composed this one.
Image

Re: Let a Neural Net help you create the best black rectangle on white

Sun Mar 12, 2023 12:59 pm

comments are interesting on this one: https://old.reddit.com/r/generative/com ... ectangles/

Re: Let a Neural Net help you create the best black rectangle on white

Sun Mar 12, 2023 3:38 pm

This one is 9 pairs of 1 black rectangle and another with inner white rectangle.
Trained with 300 votes.
Image
Post a reply