Hi and welcome back in this lesson, we'll take a look at generating our very own anime characters using
style again.
So go ahead and open up less than 24 and we'll begin to listen.
So firstly, this lesson requires us to downgrade to TensorFlow one point one point one five.
So let's do that.
And to do that in cloud, it's actually quite easy.
Just use this magic command here.
TensorFlow Vision set it to one point x and it will automatically select and you can see it loaded that
version of TensorFlow.
It's quite cool.
Otherwise, if you didn't have this line, every load TensorFlow 2.5 or 2.6, whatever little solution
that's installed in the cooler back end.
So now we have to clone this model, so we're going to use a pre-trained gun that's available online.
So let's clone that from this GitHub repo.
And that's done.
Now we're going to download the pre-trained network, which as well.
So let's do that.
And then we create the function here called generate XSS from seeds.
So let's run that as well.
And then we're going to use this DNN library here from the tier live within us to live this well.
And so we're going to use this function here to generate our images.
So let's wait for these things to install an import that's still downloading the network here.
There we go, so that's finished Typekit roughly 46 seconds.
So now we can generate some random see, it's because remember when you're building guns, we have to
feed it some seed information here.
So this effect is actually quite big.
It's sitting at six million or 10 million.
So we generate from seeds to print it out and then we feed it to.
It would generate the gas from seeds here, and we just use just to generate images and we get our images
here.
Now we can visualize other images by just running that.
And you can see this is an anime character which we just generated.
How cool is that?
Let's take a look at doing it again.
Remember, this is using a pre-trained network and this is raising at a random see that we created here.
So if we run this again, like I just did, you'll get a new image here.
This is pretty amazing, isn't it?
So now let's create an image grid so we can take a look at it quite a few different, randomly generated
anime characters.
So all of these are randomly generated anime characters.
We can create an intercollegiate function and some more random scenes here and then generate a few more
images.
However, what we're doing here, what's different is that because of this into police function that
we've created here, we used up nobody random see just to create slight variations of the same character
so we can move it from one system to another.
So you can see the transitions here.
So let's take a look at that and you can see this is quite poorly concealed moves slowly, slowly from
this into this new character here.
So that's it for this gun lesson.
In future, I will probably add a short video on how this gun was created, because even though you
do have background knowledge and how to create guns, you may not have knowledge about style gun.
So it's probably worth putting up a video to explain this style again to you guys.
So I'll make a note of that and added on to the course shortly, hopefully in January or February of
2022.
OK, so that's it for this lesson will now take a look at using cycle gun to convert horses into zebras.
So stay tuned for that lesson.
Thank you.