Comments (10)
yes, it's the codeformer causing the problem. just found out by testing, too..
if it could be prevented, would be nice, maybe in a future version. and thanks again!
from sd-webui-faceswaplab.
Okay, either I didn't understand exactly what the problem was. Either the program doesn't behave as you'd expect (in which case it's a documentation or enhancement issue). Or there's a bug I can't reproduce.
Here's an example with inpainting.
Original image :
Mask (not grayscale, just the selected part :
Result :
I made sure to deactivate codeformer in postprocessing, which can cause artifacts. I used the sort_by_size option with face 0.
As you can see, the other faces have not been affected by the changes.
On the other hand, of course, if you use post-processing, the options will apply to the whole image and may therefore modify the image and other faces.
from sd-webui-faceswaplab.
hi. thanks for your answer. adetailer was the last process in the making of the image. but maybe its codeformer that has done that. the target image worked well but other faces have some sharpened parts on them. I'll try if it occurs without codeformer too.
I set inpainting with masked only still it happened. what inpainting settings have you used, and did you use the standard img2img inpainting (tab) ?
from sd-webui-faceswaplab.
Here are the details of the previous generation (I think). I did not used any prompt.
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 3581328725, Size: 512x512, Model hash: bc7da767df, Model: consistent_inpainting.inpainting, Denoising strength: 0.75, Conditional mask weight: 1.0, Mask blur: 4, CFG Rescale phi: 0, Version: v1.5.1, similarity = {}, ref_similarity = {}
I did not use any postprocessing :
The idea of post-processing was to improve the poor results of insightface. I hardly use it anymore (except for the post-inpainting part, which also affects the whole image).
I prefer to use the upscaled inswapper which only affects the targetted face.
You really have to play with the parameters, because what works for one image doesn't always work for another.
As for codeformer, here is what i've got when it is enabled. The faces is the backgroud are hideous :
from sd-webui-faceswaplab.
I prefer to use the upscaled inswapper which only affects the targetted face.
You really have to play with the parameters, because what works for one image doesn't always work for anothe
Ok I didnt see these options because they're under the settings tab. maybe it would be better to have them at the extension's tab/area ?
Thanks for your detailed answers incl. workflow/images!
from sd-webui-faceswaplab.
on the first try with a close up photo the result without inswapper and only codeformer in postprocessing (i think thats what roop does too), was more convincing. but I'll test further
from sd-webui-faceswaplab.
The upscaled inswapper is available in sd settings (the global settings > FaceSwapLab).
It should be better, but it depends on what you do :)
from sd-webui-faceswaplab.
I did not find it to work as well in my test (1. inswapper with your settings, 2. codeformer only).
I used SwinIR-4x as I've already had it installed (or comes with A1111?). Not sure if your SwinIR 4x is a different one?
from sd-webui-faceswaplab.
If you are using codeformer in inswapper, you should disable codeformer in postprocessing. Otherwise you will have 2 pass of codeformer which might be a bit too much. I think it is what happened here. You can also disable sharppening and color correction if you want.
Yes SwinIR 4x is worse than LDSR or the one i am using i think. You should try different ones to see what is the best for you.
from sd-webui-faceswaplab.
I will rerun my process, but as far as I remember, I did use your settings (with codeformer in the inswapper activated) and deactivated on the post-process tab.
from sd-webui-faceswaplab.
Related Issues (20)
- "Use improved segmented mask" not working
- Comfyui version
- Can't see faceswap in the Automatic1111 UI HOT 2
- Broken model download link
- Future warning 'rcond' parametr
- Pytorch and Torchvision incompatibility in Ubuntu
- It is not working HOT 3
- Cannot load faceswap model in webui-forge HOT 3
- Failed to swap face in postprocess method : apply_overlay() takes 3 positional arguments but 4 were given HOT 19
- Change only the target face in an existing image
- FaceSwapLab - ERROR - Conversion failed max() arg is an empty sequence
- ERROR - Failed to swap face in postprocess method : apply_overlay() takes 3 positional arguments but 4 were given HOT 20
- Please delete sorry
- failed to install in automatic1111 HOT 1
- img2img -> Inpaint -> dont work HOT 11
- How do I build a checkpoint with multiple angles of a face? HOT 2
- img2img not saving batch images into output directory HOT 3
- Does not work on Automatic1111 HOT 6
- Extension does not respect stable-diffusion-webui `--data-dir` option
- Documentation for API?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sd-webui-faceswaplab.