Repository navigation
fix refiner switching issues - #2165
Conversation
1. In partial redrawing, when refiner is empty, enable use_synthetic_refiner. The default switching timing of 0.5 is too early, which is now modified to SDXL default of 0.8. 2. When using custom steps, the calculation of switching timing is wrong. Now it is modified to calculate "steps x timing" after custom steps are used.
| if refiner_model_name == 'None': | ||
| use_synthetic_refiner = True | ||
| refiner_switch = 0.5 | ||
| refiner_switch = 0.8 |
There was a problem hiding this comment.
@xhoxye can you please elaborate why exactly 0.8 should be the new value here? (relates to #2131 (comment))
There was a problem hiding this comment.
0.8 is the default switching timing value for SDXL refiner, which reduces the loss of control of the picture to a small effect, of course 1.0 is OK, but 1.0 will turn off use_synthetic_refiner
There was a problem hiding this comment.
I'm uncertain what the purpose of using use_synthetic_refiner is. Does it allow for more unguided steps? But this is what the ControlNet stop at is for anyways, right?
There was a problem hiding this comment.
EDIT: i was wrong, indeed works better with 0.8, even better with 1 (forgot the mix inpaint with image prompt).
I'm not certain if there is any reason why this is currently set to 0.5 and not 1 in the first place if no refiner is set.
|
Could it be that Asians face and models didn't match? |
|
yes, got it. Updated comment #2165 (comment) |
This could be possible, still switching to refiner, even synthetic one, will again introduce noise depending on switch step and cause the result to not apply faceswap / inpaint correctly |
|
@lllyasviel IMHO this is a non-intended side-effect but it's also possible that we're not getting the full picture here. https://github.com/lllyasviel/Fooocus/blob/2.1.864/modules/async_worker.py#L307 |
|
@lllyasviel your feedback would be highly appreciated here to identify a potential bug and to understand the implementation better. |
release 2.2.1
…llyasviel#2165) When using custom steps, the calculation of switching timing is wrong. Now it is modified to calculate "steps x timing" after custom steps are used. By @xhoxye
* fix problem 1. In partial redrawing, when refiner is empty, enable use_synthetic_refiner. The default switching timing of 0.5 is too early, which is now modified to SDXL default of 0.8. 2. When using custom steps, the calculation of switching timing is wrong. Now it is modified to calculate "steps x timing" after custom steps are used. * fix: parse width and height as int when applying metadata (lllyasviel#2452) fixes an issue with A1111 metadata scheme where width and height are strings after splitting resolution * fix: do not attempt to remove non-existing image grid file (lllyasviel#2456) image grid is actually not an image here but a numpy array, as the grid isn't saved by default * feat: add troubleshooting guide to bug report template again (lllyasviel#2489) --------- Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
…llyasviel#2165) When using custom steps, the calculation of switching timing is wrong. Now it is modified to calculate "steps x timing" after custom steps are used. By @xhoxye
* fix problem 1. In partial redrawing, when refiner is empty, enable use_synthetic_refiner. The default switching timing of 0.5 is too early, which is now modified to SDXL default of 0.8. 2. When using custom steps, the calculation of switching timing is wrong. Now it is modified to calculate "steps x timing" after custom steps are used. * fix: parse width and height as int when applying metadata (lllyasviel#2452) fixes an issue with A1111 metadata scheme where width and height are strings after splitting resolution * fix: do not attempt to remove non-existing image grid file (lllyasviel#2456) image grid is actually not an image here but a numpy array, as the grid isn't saved by default * feat: add troubleshooting guide to bug report template again (lllyasviel#2489) ---------




#2131