• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Akime

Private
62 Badges
Jul 31, 2019
17
78
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Galaxy Edition
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Victoria 3 Sign Up
  • Victoria 2
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
It has been 6 months since the last post was made about the project, and now we are finally ready to show some of the progress made. As the dataset of ck3 characters grew larger, I couldn't train the Neural Network on normal computers anymore. So I had to spend quite a fair bit of time to learn how to run the training of the network on cloud accelerator services But now, the first prototype is finally here, it is not perfect, but the results are impressive at the same time. A lot of the converted portraits don't really fit their picture counter-part. Yet, there is also quite a few examples who are really well rendered, proving that the network truly is learning a distribution that models the human face to portrait conversion. Here are a few cherry-picked examples from me and torngasuk:

Bezzy.pngBilly.pngObby.pngSwifty.pngpred2.png
And then here's some more:

dafoe.pngedward.pngmckellen.pngoscar.pngportrait_7.pngnorton.pnggaston.pnghuman.pnghark_a_habsburgghg.pngrobert.pngScreenshot 2022-04-07 071642.png
*the network hasn't learned gender and skincolor prediction yet. So some these examples received minor modifications like age change and skin-color change. Or fat reduction. The network at time seem to give too much fat to people, but when you cut a bit of the fat the prediction is pretty good.

This network has been trained on the torngasuk_dataset, which contains approximately 23k data samples of 8900 unique characters. Due to an error of mine every dna file was parsed as male, so the network saw all those characters as males, which may be the reason it is not as performing when inputting female pictures. I then proceeded to retrain the model with the corrected dataset. Surprisingly, it worsened the performance of the network by a lot. This may be due to the fact that recognizing gender added another layer of complexity to the problem, gender recognition also, is more of a categorical classification problem, telling if someone is male or female, rather than a regression problem where you have to output values. I have quite a few ideas on how to tackle this problem so that will take some testing. But even as it is, purely scaling up the dataset should do the trick, performance scale up with the quantity of data fed into it. But as the dataset scale it will cost more and more to train it. So I don't really have the most freedom when testing.

Beside that., I would like to thank torngasuk again for helping me in this project.

The github repo
The new dataset
 
Last edited:
  • 17Love
  • 15Like
  • 2
Reactions:
Does it work with drawings as well as pictures?
 
Does it work with drawings as well as pictures?
I mean you can try, send me a zipped folder of the images you want to be converted, and I'll send you back the predictions.
The folder needs to hold 2 subfolders, /boy and /girl. Put the images accordingly.

Oh, and make sure the faces are centered.
 
  • 1
Reactions:
Wow, just wow!
 
Impressive! I look forward to seeing how this develops.
 
Woah! Peter Capaldi is basically my favourite actor of all time, so I was shocked to see him in the end of the page there, he looks great. I'll definitely get around to trying this out next time I can
 
Now watch when Paradox changes or adds a single gene to a future patch and ruins this.

Leave our DNA alone, Paradox.

The good news is that this actually shouldn't be too much of a risk. We've managed to automate the process of collecting data samples entirely now, so theoretically the existing dataset could be entirely redone within a couple days.

Woah! Peter Capaldi is basically my favourite actor of all time, so I was shocked to see him in the end of the page there, he looks great. I'll definitely get around to trying this out next time I can

With a little more training, I'm hoping to run him (and many others) through it a second time soon: it's close, but we can still get closer.
 
  • 2
Reactions:
Greetings! Besides the dataset (for what I've read, you'll share it when it's improved, right?), would you mind sharing the trained model? I wanted to check the performance of the model with some pictures but I don't have a big dataset to train it myself neither the time to get that dataset, if that makes sense.

Good work in any case! Looking forward to tinker with it :)
 
  • 3
Reactions: