-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
img2img -> Inpaint -> dont work #184
Comments
newest faceswap Automatic1111 (1.8.0) error: btw: |
what iv made wrong ? return img
|
Had this problem a few days ago, made the proposed changes to the imgutils.py and it worked again... Now today the same error came back...! Yesterday I updated the Nvidia driver for my 3060, it's now at version 551.86... could that be the issue...? The problem is only when inpainting, img2img works fine... Edit: I downgraded the Nvidia driver and it's working again...!! |
You need to check the indentation and if p.overlay_images and batch_index < len(p.overlay_images):
selected_overlay = p.overlay_images[batch_index]
img, _ = processing.apply_overlay(img, p.paste_to, selected_overlay)
else:
return image, original_denoised_image
# ^
# I think this point is wrong
logger.debug("No overlay selected or overlay list is empty.")
if p.color_corrections is not None and batch_index < len(p.color_corrections):
img = processing.apply_color_correction(
p.color_corrections[batch_index], img
)
return img to: return img |
really it depends on nvidia driver (my is 546.17) ok .. to be shure thats my original
what exact i should change (i have v 1.8.0) |
Try this code and if that doesn't work, it's probably a nvidia driver issue. if p.overlay_images and batch_index < len(p.overlay_images):
selected_overlay = p.overlay_images[batch_index]
img, _ = processing.apply_overlay(img, p.paste_to, selected_overlay)
# ^
# change this only
else:
return img
# ^
# do not change
logger.debug("No overlay selected or overlay list is empty.")
if p.color_corrections is not None and batch_index < len(p.color_corrections):
img = processing.apply_color_correction(
p.color_corrections[batch_index], img
)
return img |
not work :( ...
... img, _ = (also not working same error) Total progress: 100%|██████████████████████████████████████████████████████████████████| 31/31 [00:22<00:00, 1.38it/s] which nvidia driver is working ? and why should this important ? |
hello , any idea ? |
2024-06-03 11:53:01,725 - FaceSwapLab - ERROR - Failed to swap face in postprocess method : apply_overlay() takes 3 positional arguments but 4 were given |
use is in the extension list in a1111 if you mask a to small area.. this error apears !!! |
OK in
TAB img2img
SUB TAB img2img
it worked
but
TAB img2img
SUB TAB inpaint
draw a mask on face
(dont work)
...
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 35/35 [00:10<00:00, 3.43it/s]
2024-03-11 09:29:10,060 - FaceSwapLab - INFO - Try to use model : D:\stable-diffusion\webui\models\faceswaplab\inswapper_128.onnx██████████████████████████████| 35/35 [00:09<00:00, 3.47it/s]
d:\stable-diffusion\system\python\lib\site-packages\insightface\utils\transform.py:68: FutureWarning:
rcond
parameter will change to the default of machine precision timesmax(M, N)
where M and N are the input matrix dimensions.To use the future default and silence this warning we advise to pass
rcond=None
, to keep using the old, explicitly passrcond=-1
.P = np.linalg.lstsq(X_homo, Y)[0].T # Affine matrix. 3 x 4
2024-03-11 09:29:11,333 - FaceSwapLab - INFO - blend all faces together
2024-03-11 09:29:11,516 - FaceSwapLab - INFO - Int Gender : 0
2024-03-11 09:29:11,516 - FaceSwapLab - INFO - Process face 0
2024-03-11 09:29:11,516 - FaceSwapLab - INFO - Source Gender 0
2024-03-11 09:29:11,516 - FaceSwapLab - INFO - Target faces count : 1
2024-03-11 09:29:11,516 - FaceSwapLab - INFO - swap face 0
2024-03-11 09:29:12,201 - FaceSwapLab - INFO - ********************************************************************************
2024-03-11 09:29:12,201 - FaceSwapLab - INFO - Inswapper
2024-03-11 09:29:12,209 - FaceSwapLab - INFO - ********************************************************************************
2024-03-11 09:29:12,241 - FaceSwapLab - INFO - Finished processing image, return 1 images
2024-03-11 09:29:12,241 - FaceSwapLab - INFO - 1 images swapped
2024-03-11 09:29:12,251 - FaceSwapLab - INFO - Add swp image to processed
2024-03-11 09:29:12,251 - FaceSwapLab - ERROR - Failed to swap face in postprocess method : 'tuple' object has no attribute 'height'
Traceback (most recent call last):
File "D:\stable-diffusion\webui\extensions\sd-webui-faceswaplab\scripts\faceswaplab.py", line 216, in postprocess
save_image(
File "D:\stable-diffusion\webui\modules\images.py", line 611, in save_image
if (image.height > 65535 or image.width > 65535) and extension.lower() in ("jpg", "jpeg") or (image.height > 16383 or image.width > 16383) and extension.lower() == "webp":
AttributeError: 'tuple' object has no attribute 'height'
Total progress: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 35/35 [00:12<00:00, 2.72it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 35/35 [00:12<00:00, 3.47it/s]
The text was updated successfully, but these errors were encountered: