VAM Evolutionary Character Creation

Other VAM Evolutionary Character Creation

pinosante updated VAM Evolutionary Character Creation with a new update entry:

Minor quality of life fix for people with missing uid keyerrors: now also shows filename

For those of you who have some appearance files which generate errors due to some missing stuff, this latest version now shows the exact filename of the faulty appearance files This makes it a lot easier to weed out appearance files which have some errors in them. If you are running this app without any errors, you don't need this update.

Read the rest of this update entry...
 
Unfortunately I got the same error after downloading the new application.
Writing settings to: C:\Test\VaM_Release1.20\VAM Evolutionary Character Creation v1.2.2 (Windows Executable)\data\settings.json
Using random samples from multivariate gaussian distribution for initialization.
Source files: Choose All Appearances (16 Files)
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python38\lib\tkinter\__init__.py", line 1892, in __call__
File "VAM Evolutionary Character Creation.py", line 757, in <lambda>
File "VAM Evolutionary Character Creation.py", line 1252, in generate_next_population
File "VAM Evolutionary Character Creation.py", line 1605, in gaussian_initialize_population
File "VAM Evolutionary Character Creation.py", line 1900, in pad_morphnames_to_morphlists
File "VAM Evolutionary Character Creation.py", line 1885, in get_uid_from_morphname
KeyError: 'uid'

I imagine it has something to do with one of the appearances in my folder. I'll look into narrowing down which appearance is causing the issue.
@vennino I updated the app so it shows the filename of the file with the missing uid key errors. This makes it a lot easier to see what appearance files needs to be removed. Just download the latest version of the app from the hub and run it as you did before. Hope this helps pinpointing the problematic appearance file! :)
 
I just downloaded this update for vam 1.21, but the executable from github is still older, is that OK? I was able to run it, pick 20 characters, guassian, init population, I was able to connect using the new companion app, which I installed from the hub, so it should have taken care of the dependancies. It seems to be doing it's thing, any idea how long it should take? I'm wondering if it's working because my console window just keeps scrolling new entries of "Not enough lines in the file"? How long do I let it run?
Thanks for the reminder btw, I also uploaded a new release to github.
 
This is a neat idea although each time I tried it (previous update and current version) I got a keyerror on this line for 'value'. I might have some older saved presets triggering this but no good indicator one way or another. It also seems like it'd make the most sense to average each morph individually (vs right now it'd bias for zero values I think?) and maybe just wrap that inner loop with an exception handler so even if a morphlist is malformed some output could be generated. I might try to add that later.
 
@vennino I updated the app so it shows the filename of the file with the missing uid key errors. This makes it a lot easier to see what appearance files needs to be removed. Just download the latest version of the app from the hub and run it as you did before. Hope this helps pinpointing the problematic appearance file! :)
You're amazing, thanks! I was able to remove all offending appearance files but now I've run into a new error message 😅

Using random samples from multivariate gaussian distribution for initialization.
Source files: Choose All Appearances (11 Files)
** On entry to DLASCLS parameter number 4 had an illegal value
** On entry to DLASCLS parameter number 4 had an illegal value
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python38\lib\tkinter\__init__.py", line 1892, in __call__
File "VAM Evolutionary Character Creation.py", line 757, in <lambda>
File "VAM Evolutionary Character Creation.py", line 1252, in generate_next_population
File "VAM Evolutionary Character Creation.py", line 1621, in gaussian_initialize_population
File "_generator.pyx", line 3508, in numpy.random._generator.Generator.multivariate_normal
File "<__array_function__ internals>", line 5, in svd
File "C:\Python38\lib\site-packages\numpy\linalg\linalg.py", line 1661, in svd
File "C:\Python38\lib\site-packages\numpy\linalg\linalg.py", line 97, in _raise_linalgerror_svd_nonconvergence
numpy.linalg.LinAlgError: SVD did not converge

I've found that when I select specific files that I don't run into any issues. I don't want to be a pest but thought I'd share the error message I got as an FYI.

Thanks again!
 
getting this on generation:
Code:
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python38\lib\tkinter\__init__.py", line 1892, in __call__
  File "VAM Evolutionary Character Creation.py", line 757, in <lambda>
  File "VAM Evolutionary Character Creation.py", line 1254, in generate_next_population
  File "VAM Evolutionary Character Creation.py", line 1572, in crossover_initialize_population
  File "VAM Evolutionary Character Creation.py", line 2133, in fuse_characters
TypeError: pad_morphnames_to_morphlists() missing 1 required positional argument: 'filenames'

and this when using the mousewheel anywhere in the window:
Code:
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python38\lib\tkinter\__init__.py", line 1892, in __call__
  File "VAM Evolutionary Character Creation.py", line 1014, in <lambda>
  File "C:\Python38\lib\tkinter\__init__.py", line 1938, in yview_scroll
_tkinter.TclError: invalid command name ".!toplevel2.!frame.!canvas"

cant get it to work at all
 
getting this on generation:
Code:
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python38\lib\tkinter\__init__.py", line 1892, in __call__
  File "VAM Evolutionary Character Creation.py", line 757, in <lambda>
  File "VAM Evolutionary Character Creation.py", line 1254, in generate_next_population
  File "VAM Evolutionary Character Creation.py", line 1572, in crossover_initialize_population
  File "VAM Evolutionary Character Creation.py", line 2133, in fuse_characters
TypeError: pad_morphnames_to_morphlists() missing 1 required positional argument: 'filenames'

and this when using the mousewheel anywhere in the window:
Code:
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python38\lib\tkinter\__init__.py", line 1892, in __call__
  File "VAM Evolutionary Character Creation.py", line 1014, in <lambda>
  File "C:\Python38\lib\tkinter\__init__.py", line 1938, in yview_scroll
_tkinter.TclError: invalid command name ".!toplevel2.!frame.!canvas"

cant get it to work at all
@morkork
Both problems are fixed now. Also looking at the other messages and then I'll upload a new version. Thanks for the detailed feedback, it really helps!
 
Last edited:
You're amazing, thanks! I was able to remove all offending appearance files but now I've run into a new error message 😅

Using random samples from multivariate gaussian distribution for initialization.
Source files: Choose All Appearances (11 Files)
** On entry to DLASCLS parameter number 4 had an illegal value
** On entry to DLASCLS parameter number 4 had an illegal value
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python38\lib\tkinter\__init__.py", line 1892, in __call__
File "VAM Evolutionary Character Creation.py", line 757, in <lambda>
File "VAM Evolutionary Character Creation.py", line 1252, in generate_next_population
File "VAM Evolutionary Character Creation.py", line 1621, in gaussian_initialize_population
File "_generator.pyx", line 3508, in numpy.random._generator.Generator.multivariate_normal
File "<__array_function__ internals>", line 5, in svd
File "C:\Python38\lib\site-packages\numpy\linalg\linalg.py", line 1661, in svd
File "C:\Python38\lib\site-packages\numpy\linalg\linalg.py", line 97, in _raise_linalgerror_svd_nonconvergence
numpy.linalg.LinAlgError: SVD did not converge

I've found that when I select specific files that I don't run into any issues. I don't want to be a pest but thought I'd share the error message I got as an FYI.

Thanks again!
@vennino
Could you maybe pinpoint which appearance files trigger this error and send me those files by DM (or in here)? Since I have no clue how to approach this. Somehow these appearances have some wonky values in it which is tripping up the Gaussian algorithm. Does this also occur when you do Random Crossover?
 
Last edited:
This is a neat idea although each time I tried it (previous update and current version) I got a keyerror on this line for 'value'. I might have some older saved presets triggering this but no good indicator one way or another. It also seems like it'd make the most sense to average each morph individually (vs right now it'd bias for zero values I think?) and maybe just wrap that inner loop with an exception handler so even if a morphlist is malformed some output could be generated. I might try to add that later.
@goshdark
You want to average the values of each morph across all appearances, in order for the Gaussian algorithm to work, so that is still ok. I agree that there should be some error handling on this part, so I changed it to this:
if 'value' in morph:
means[morph['name']] += float(morph['value']) * 1 / len(morphlists)
else:
means[morph['name']] += 0 / len(morphlists) # just assume missing values to be 0
I'm a bit hesitant to write a try / except for keyerrors in this case because I still want to catch cases where 'name' is not in the morph list and would generate a keyerror. But I'm not a programmer, so if you have any suggestions I'm open to them! :).

I'll upload the new version shortly.
 
Last edited:
pinosante updated VAM Evolutionary Character Creation with a new update entry:

Critical fix, please download this latest version (!)

Fixed bugs:
- critical bug: forgot to add the new file error handler to another function call, which would make the app break. this is now fixed. (note to self: don't fix code in a hurry)
- rolling the mouse wheel after selecting a template would give errors, this is now fixed.
- escape didn't properly work when selecting a template, this is now fixed.
- fixed a KeyError for missing values in moprhs by setting the missing values to a default of 0

Read the rest of this update entry...
 
Pino, when i try to generate a new population, i get this:

1674643888737.png


Do you know how can i fix that?

PS: I am using the last version, gaussian mode and 20 looks to generate new pop.
 
Pino, when i try to generate a new population, i get this:

View attachment 203865

Do you know how can i fix that?

PS: I am using the last version, gaussian mode and 20 looks to generate new pop.
Are you absolutely sure that you downloaded v1.2.4? I just updated it an hour ago. That error should be fixed with this update.
 
Are you absolutely sure that you downloaded v1.2.4? I just updated it an hour ago. That error should be fixed with this update.
Yes, i do have. I will download it again then. I will back here soon.

PS: Problem got fixed! Thank you so much!!!
 
Last edited:
Hi, many thanks for this great piece of software! So much fun!

I tested it first time yesterday and encountered the bug with the filelist parameter, so I checked your docs and discovered that you really published the sources! THANKS! That is so great!

The sources on Github worked fine. You mentioned that programming is not your profession, but I (being a professional developer) think that you are quite advanced. Your code is good (seems to be also PEP conform), and your repository on Github is well organised. Only problem with the code is that you put everything into a single file. I suggest to separate UI from business logic and put them into separate modules. I would appreciate to support your project if you like, and contribute with my programmer's skills. Let me know what you think.

Yay, and thanks again. Good, great job!
 
Hi, many thanks for this great piece of software! So much fun!

I tested it first time yesterday and encountered the bug with the filelist parameter, so I checked your docs and discovered that you really published the sources! THANKS! That is so great!

The sources on Github worked fine. You mentioned that programming is not your profession, but I (being a professional developer) think that you are quite advanced. Your code is good (seems to be also PEP conform), and your repository on Github is well organised. Only problem with the code is that you put everything into a single file. I suggest to separate UI from business logic and put them into separate modules. I would appreciate to support your project if you like, and contribute with my programmer's skills. Let me know what you think.

Yay, and thanks again. Good, great job!
Thanks for your kind words, just DM’d you!
 
@vennino
Could you maybe pinpoint which appearance files trigger this error and send me those files by DM (or in here)? Since I have no clue how to approach this. Somehow these appearances have some wonky values in it which is tripping up the Gaussian algorithm. Does this also occur when you do Random Crossover?
Random crossover worked, and I found the offending appearance! I'm not sure how to attach an appearance file in this chat, outside of uploading it to a hosting site and sharing the link, though honestly missing out on this one appearance is not an issue for me. I finally got it working! Thanks a ton!
 
Random crossover worked, and I found the offending appearance! I'm not sure how to attach an appearance file in this chat, outside of uploading it to a hosting site and sharing the link, though honestly missing out on this one appearance is not an issue for me. I finally got it working! Thanks a ton!
I’m glad that it worked out! I’d appreciate it if you would go through the effort of uploading that appearance to a hosting site so I can take a look at what happens inside the App!
 
What do we do to finish the selection and "generate"? all the new looks/appearances? I've gone thru 6 generations of rating them. I'm happy with the last gen, how do I save them now?
 
What do we do to finish the selection and "generate"? all the new looks/appearances? I've gone thru 6 generations of rating them. I'm happy with the last gen, how do I save them now?
You can either click on 'quicksave' for each individual character that you like, or go to the appearances tab in VAM and save the appearance as a new appearance with a custom filename. This will save the current appearance you are looking at. So if you have more appearances you like, select them individually and save each individually.

If you use quicksave you will find the appearance under quicksaves.
 
When I process the appearances I get 20 errors and there is no character save file. Please help
 
I am having touble with Step 4... the windows executable app lets me choose appearance folder and the appearance vaps i have in there load with no error. Then I go to choose template appearance in step 3. and it loads the one i choose fine... however on Step 4. when I try and choose the parent file source it says 0 apperances even though the contents of the folder loaded each one that was available in Step 2. with no visible errors. I tried each option in Step 4. (All, Favourited, Choose) but 0 available. Any advice?
 
Back
Top Bottom