• 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.
I'm afraid I've not heard from Akime in quite some time - I very much hope he's alright, but otherwise unfortunately I lack the technical skills and knowledge to continue in his absence.
Hi,do you know how to use this project,plz?I clone it and checkout to branch `process`,but it seems there are not code to change a picure to dna string.Could u plz explain for me?I am new to ai algorithm or other similer stuff.I tried to get help from gpt,but it also tell me there are not code to implement the feture about create dna string from pictures.:D
 
  • 2Like
Reactions:
Hey I see you are very good with modding. May I ask how do I give the genes to a custom made character (the genes I copied from the portrait editor in CK3). I seem not to understand it because when I gave my character the DNA and genes he appears nothing like the one I created. Thanks in advance!
 
  • 1Like
Reactions:
how to work?
unfortunately, the person developing left the project and now its in limbo. Most of us have no understanding of his work so its going to be hard to get it going again and he seems to have disappeared. I would start a project and continue it but sadly I dont know enough about AI and especially CK3 DNA strands and reverse engineering them
 
  • 1
Reactions:
Ok, I'm picking up this project again.

Right now I'm seeking collaborators and looking for people to help. What I am currently looking for is for:

UI modder: to make the automatisation of datasets easier (create a custom window to ease portrait visibility)
Coder: to help with creating an utility to automate dataset acquisition (taking screenshots of a portrait given a certain dna txt file)
Anyone with all the DLCs: to help update and map all the relevant facial genes of the game.

If you want to help either send me a dm or join the discord. https://discord.gg/uf32yjVn
 
  • 5Love
Reactions:
Prior to the hiatus, I was working on training an imitator neural network. The purpose of this network is to simulate the game engine’s rendering process for character portraits. It takes a tensor representing a character’s genetic attributes as input and outputs the corresponding rendered image.

Since the rendering is performed by a neural network, the entire process is differentiable, enabling backpropagation. This differentiability is particularly useful within the training loop. The imitator serves as the foundation for the converter. Once successfully trained, the remaining steps of the project become mostly trivial.

Due to gaps in my understanding of certain implementation details, the first attempt ended as failure.

The previous imitator model produced blurry and unreliable outputs when fed different parameters. This is how the attempt looked, this is an example of when I gave the imitator two random dnas, one male, one female;

download1.png
download_2.png



Over the past week, I’ve focused on rewriting the macro code responsible for automating dataset acquisition. I also updated the gene dictionary file, which maps all the genes the imitator takes into account. The only remaining step is generating the new dataset.

I encountered a significant bottleneck: CK3 imposes a 10-second delay between portrait and DNA updates, preventing fast data generation. At least whenever you automatically update your clipboard veryfast. I reached out to multiple modding Discord servers, no one seems aware of a solution. Currently, this limitation caps dataset generation at 6 portraits per minute, which is cripplingly slow. Given that the male model imitator alone requires 60,000 portraits, this translates to roughly 170 hours of processing time.

Another issue, my laptop is barely functional and can’t run CK3 natively (I rely on cloud services like GeForce NOW). As a result, I need help to accelerate dataset generation. Even with a high-end PC, the 6-portrait-per-minute bottleneck would still necessitate collaboration.

Once the dataset is ready, I’ll proceed with training the imitator. If successful, the project will be basically complete.

How You Can Help:
  1. Dataset Generation: Join my Discord to assist by running a Python macro over CK3.
  2. Modding Expertise: If you’re experienced with CK3 DNA (e.g., have worked with the EPE team) or can connect me with someone who is. For example depending on how DNA works in EPE, it might be better to train the imitator with the modded DNA instead of the Vanilla set.
  3. Bottleneck Solution: If you know how to bypass or reduce the 10-second portrait delay, this would 10x the workflow speed.
Any support would significantly accelerate progress.
 
Last edited:
  • 3Like
  • 1
Reactions: