Gourieff / sd-webui-reactor

Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD.Next, Cagliostro)
GNU Affero General Public License v3.0
2.55k stars 277 forks source link

Very high CPU usage although using RTX 4090 #506

Open Marcophono2 opened 2 months ago

Marcophono2 commented 2 months ago

First, confirm

What happened?

Hello! When using the Reactor api as well as with the 1111 web gui I see a very hugh cpu usage (600%). Even if I set restore face to none. I tried it with portrait image as well as with a fwace model. cuda is chosen in the menu. Is this a known problem?

Steps to reproduce the problem

Just try as described

Sysinfo

sysinfo-2024-08-11-15-07.json

Relevant console log

INFO:modules.shared_state:Starting job task(l99fxep80vg0fup)
100%|██████████████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00,  9.59it/s]
17:02:24 - ReActor - STATUS - Working: source face index [0], target face index [0]| 4/5 [00:00<00:00, 11.00it/s]
17:02:24 - ReActor - STATUS - Using Loaded Source Face Model: 491777000001.safetensors
17:02:24 - ReActor - INFO - Target Image MD5 Hash = c03fadfc5e8302084e13ea12e060f395
17:02:24 - ReActor - INFO - Target Image the Same? False
17:02:24 - ReActor - STATUS - Analyzing Target Image...
17:02:24 - ReActor - INFO - Applied Execution Provider: CUDAExecutionProvider
set det-size: (640, 640)
17:02:25 - ReActor - STATUS - Detecting Source Face, Index = 0
17:02:25 - ReActor - STATUS - Detected: -58- y.o. Male
17:02:25 - ReActor - STATUS - Detecting Target Face, Index = 0
17:02:25 - ReActor - STATUS - Detected: -48- y.o. Male
17:02:25 - ReActor - STATUS - Swapping Source into Target
17:02:25 - ReActor - STATUS - ---Done!---
Total progress: 100%|██████████████████████████████████████████████████████████████| 5/5 [00:01<00:00,  3.23it/s]
INFO:modules.shared_state:Ending job task(l99fxep80vg0fup) (1.61 seconds)██████████| 5/5 [00:01<00:00, 11.00it/s]
INFO:httpx:HTTP Request: POST http://127.0.0.1:7865/api/predict "HTTP/1.1 200 OK"
INFO:httpx:HTTP Request: POST http://127.0.0.1:7865/reset "HTTP/1.1 200 OK"

Additional information

No response

XMZovo commented 1 month ago

me too.when i use comfyui have same problem