You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating this wonderful application.
As the title says, I was able to install it but it did not work.
I have confirmed the following
pip install insightface=0.7.3
Visual Studio 2022 installed, C++, Python, extensions...
I have inswapper_128.onnx in the folder C:\Users\dev\stable-diffusion-webui-1.6.0-dev\models\insightface.
No extensions that may conflict are installed.
With the above in place, if you run ReActor Force with Enable, you will see the following log
The image is generated as usual, but face swap is apparently not done.
100%|████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 11.11it/s]
09:12:51 - ReActor Force - STATUS - Working: source face index [0], target face index [0], 13.59it/s]
09:12:51 - ReActor Force - STATUS - Analyzing Source Image...
09:12:55 - ReActor Force - STATUS - Analyzing Target Image...
09:12:55 - ReActor Force - STATUS - Detecting Source Face, Index = 0
09:12:55 - ReActor Force - STATUS - Source Face 0: Detected Gender -F-
09:12:55 - ReActor Force - STATUS - OK - Detected Gender matches Condition
09:12:55 - ReActor Force - STATUS - Detected: -26- y.o. Female
09:12:56 - ReActor Force - STATUS - Detecting Target Face, Index = 0
09:12:56 - ReActor Force - STATUS - Target Face 0: Detected Gender -F-
09:12:56 - ReActor Force - STATUS - OK - Detected Gender matches Condition
09:12:56 - ReActor Force - STATUS - Detected: -22- y.o. Female
09:12:56 - ReActor Force - STATUS - Swapping Source into Target
09:13:00 - ReActor Force - STATUS - Restoring the face with CodeFormer
*** Error running postprocess_image: C:\Users\dev\stable-diffusion-webui-1.6.0-dev\extensions\sd-webui-reactor-force\scripts\rf_faceswap.py
Traceback (most recent call last):
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\modules\scripts.py", line 675, in postprocess_image
script.postprocess_image(p, pp, *script_args)
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\extensions\sd-webui-reactor-force\scripts\rf_faceswap.py", line 376, in postprocess_image
result, output, swapped = swap_face(
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\extensions\sd-webui-reactor-force\scripts\rf_swapper.py", line 386, in swap_face
result_image = enhance_image(result_image, enhancement_options)
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\extensions\sd-webui-reactor-force\scripts\rf_swapper.py", line 156, in enhance_image
result_image = restore_face(result_image, enhancement_options)
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\extensions\sd-webui-reactor-force\scripts\rf_swapper.py", line 113, in restore_face
numpy_image = codeformer_model.codeformer.restore(
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\modules\codeformer_model.py", line 81, in restore
self.create_models()
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\modules\codeformer_model.py", line 64, in create_models
face_helper = FaceRestoreHelper(1, face_size=512, crop_ratio=(1, 1), det_model='retinaface_resnet50', save_ext='png', use_parse=True, device=devices.device_codeformer)
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\repositories\CodeFormer\facelib\utils\face_restoration_helper.py", line 109, in __init__
self.face_parse = init_parsing_model(model_name='parsenet', device=self.device)
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\repositories\CodeFormer\facelib\parsing\__init__.py", line 19, in init_parsing_model
load_net = torch.load(model_path, map_location=lambda storage, loc: storage)
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\modules\safe.py", line 108, in load
return load_with_extra(filename, *args, extra_handler=global_extra_handler, **kwargs)
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\modules\safe.py", line 156, in load_with_extra
return unsafe_torch_load(filename, *args, **kwargs)
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\venv\lib\site-packages\torch\serialization.py", line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\dev\stable-diffusion-webui-1.6.0-dev\venv\lib\site-packages\torch\serialization.py", line 1051, in _legacy_load
typed_storage._untyped_storage._set_from_file(
RuntimeError: unexpected EOF, expected 2278689 more bytes. The file might be corrupted.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Nice to meet you!
Thank you for creating this wonderful application.
As the title says, I was able to install it but it did not work.
I have confirmed the following
inswapper_128.onnx
in the folderC:\Users\dev\stable-diffusion-webui-1.6.0-dev\models\insightface
.With the above in place, if you run ReActor Force with Enable, you will see the following log
The image is generated as usual, but face swap is apparently not done.
Is there any solution to this problem?
Translated with www.DeepL.com/Translator (free version)
Beta Was this translation helpful? Give feedback.
All reactions