Skip to content
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

simswap_512_beta.onnx not working in both a1111 and forge #531

Open
3 tasks done
vixenius opened this issue Sep 23, 2024 · 1 comment
Open
3 tasks done

simswap_512_beta.onnx not working in both a1111 and forge #531

vixenius opened this issue Sep 23, 2024 · 1 comment

Comments

@vixenius
Copy link

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

[Unload] Trying to free 8820.57 MB for cuda:0 with 0 models keep loaded ... Current free memory is 2984.18 MB ... Current free memory is 2984.18 MB ... Unload model KModel Done.
[Memory Management] Target: IntegratedAutoencoderKL, Free GPU: 8352.69 MB, Model Require: 319.11 MB, Previously Loaded: 0.00 MB, Inference Require: 3071.00 MB, Remaining: 4962.58 MB, All loaded to GPU.
Moving model(s) has taken 1.52 seconds
13:08:56 - ReActor - STATUS - Working: source face index [0], target face index [0]
13:08:56 - ReActor - STATUS - Using Loaded Source Face Model: Milaaa Upscaled 1.safetensors
13:08:56 - ReActor - STATUS - Analyzing Target Image...
13:08:57 - ReActor - STATUS - Detecting Source Face, Index = 0
13:08:57 - ReActor - STATUS - Detected: -23- y.o. Female
13:08:57 - ReActor - STATUS - Detecting Target Face, Index = 0
13:08:57 - ReActor - STATUS - Detected: -37- y.o. Female
13:08:57 - ReActor - STATUS - Swapping Source into Target
*** Error running postprocess_image: D:\AINOVO\WebForge\webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py
Traceback (most recent call last):
File "D:\AINOVO\WebForge\webui\modules\scripts.py", line 940, in postprocess_image
script.postprocess_image(p, pp, *script_args)
File "D:\AINOVO\WebForge\webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 465, in postprocess_image
result, output, swapped = swap_face(
File "D:\AINOVO\WebForge\webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 616, in swap_face
result_image, output, swapped = operate(source_img,target_img,target_img_orig,model,source_faces_index,faces_index,source_faces,target_faces,gender_source,gender_target,source_face,wrong_gender,source_age,source_gender,output,swapped,mask_face,entire_mask_image,enhancement_options,detection_options)
File "D:\AINOVO\WebForge\webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 779, in operate
swapped_image = face_swapper.get(result, target_face, source_face)
TypeError: ArcFaceONNX.get() takes 3 positional arguments but 4 were given


Total progress: 100%|████████████████████████████████████████████████████████████████████| 5/5 [00:19<00:00, 3.94s/it]
Total progress: 100%|████████████████████████████████████████████████████████████████████| 5/5 [00:19<00:00, 3.32s/it]

Steps to reproduce the problem

Inswapper working good, but i could never get the simswap working.. Above is the log..

Sysinfo

Win11, Ryzen 3700X, 1080Ti, 32GB RAM @3200mhz, Sys nvme 256GB

Relevant console log

*** Error running postprocess_image: D:\AINOVO\WebForge\webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py
    Traceback (most recent call last):
      File "D:\AINOVO\WebForge\webui\modules\scripts.py", line 940, in postprocess_image
        script.postprocess_image(p, pp, *script_args)
      File "D:\AINOVO\WebForge\webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 465, in postprocess_image
        result, output, swapped = swap_face(
      File "D:\AINOVO\WebForge\webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 616, in swap_face
        result_image, output, swapped = operate(source_img,target_img,target_img_orig,model,source_faces_index,faces_index,source_faces,target_faces,gender_source,gender_target,source_face,wrong_gender,source_age,source_gender,output,swapped,mask_face,entire_mask_image,enhancement_options,detection_options)
      File "D:\AINOVO\WebForge\webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 779, in operate
        swapped_image = face_swapper.get(result, target_face, source_face)
    TypeError: ArcFaceONNX.get() takes 3 positional arguments but 4 were given

---

Additional information

No response

@vixenius vixenius added bug Something isn't working new labels Sep 23, 2024
@vixenius vixenius changed the title Simswap not working simswap_512_beta.onnx not working in both a1111 and forge Sep 23, 2024
@Gourieff
Copy link
Owner

Gourieff commented Oct 8, 2024

You can try to use simswap via Comfy https://github.com/TaiTair/comfyui-simswap

@Gourieff Gourieff added 💬 discussion and removed bug Something isn't working new labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants