Open CrunchyBanana1 opened 4 months ago
I've just tested and cannot reproduce your bug, ReActor works fine
All the faces swapped according to the loaded models
Ok thats weird. But I see you're using A1111 and not forge. So maybe it's a problem with their implementation of the XYZ Script?
The last used model is even kept (and used) from opt.data after a restart.
I am having the same issue. The issue doesn't appear when using txt2img or img2img. It only appears when I'm using the mov2mov extension as far as I'm aware.
The user in #454 seemed to have a similar problem, but this time in A1111
Can I do anything to help you narrow it down further?
First, confirm
What happened?
It seems like using X/Y/Z plot is writing the last model name into opt.data and never clears it after closing the X/Y/Z Script. So when generating without X/Y/Z Plot afterwards, it always picks your last used face model from your last run with X/Y/Z Plot.
I'm sorry, but my Python is extremely bad and I had no idea how to clear it automatically, but I hope you see my point when looking at my trashy code. I temporarily helped myself by adding another AxisOption that simply deletes the 'Face_Model' value from opt.data
xyz_grid.AxisOption("[ReActor] No XYZ", str, str_deleter("face_model"), choices=choices_face_models),
with
and changed the reactor_faceswap.py to
I know this is dirty, but it works for now (with one extra step). I'm sorry, I never really used git and I'm pretty sure there's a way more elegant way to do it than this.
The same problem persists for the other values stored by the X/Y/Z Script (codeformer_weight, restorer_visibility and mask_face), too.
If I'm missing something obvious, at least it was a nice little trip into python for me :)
Steps to reproduce the problem
Relevant console log
Additional information
No response