Replies: 1 comment
-
I am having the same error - worked fine before a recent update of SD1111. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using ReActor but it's unable to do the Face Mask Correction. It seems there's some corrupted file but I can't tell what it is and how to solve it. Tried reinstalling ReActor but the problem persisted. Error code as follows:
venv "E:\sd.webui\webui\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.8.0
Commit hash: AUTOMATIC1111/stable-diffusion-webui@bef51ae
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
Requirement already satisfied: torch==2.1.2 in e:\sd.webui\webui\venv\lib\site-packages (2.1.2+cu121)
Requirement already satisfied: torchvision==0.16.2 in e:\sd.webui\webui\venv\lib\site-packages (0.16.2+cu121)
Requirement already satisfied: networkx in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (3.2.1)
Requirement already satisfied: typing-extensions in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (4.10.0)
Requirement already satisfied: fsspec in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (2024.2.0)
Requirement already satisfied: sympy in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (1.12)
Requirement already satisfied: jinja2 in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (3.1.3)
Requirement already satisfied: filelock in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (3.13.1)
Requirement already satisfied: requests in e:\sd.webui\webui\venv\lib\site-packages (from torchvision==0.16.2) (2.31.0)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in e:\sd.webui\webui\venv\lib\site-packages (from torchvision==0.16.2) (9.5.0)
Requirement already satisfied: numpy in e:\sd.webui\webui\venv\lib\site-packages (from torchvision==0.16.2) (1.26.2)
Requirement already satisfied: MarkupSafe>=2.0 in e:\sd.webui\webui\venv\lib\site-packages (from jinja2->torch==2.1.2) (2.1.5)
Requirement already satisfied: charset-normalizer<4,>=2 in e:\sd.webui\webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in e:\sd.webui\webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (3.6)
Requirement already satisfied: certifi>=2017.4.17 in e:\sd.webui\webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (2024.2.2)
Requirement already satisfied: urllib3<3,>=1.21.1 in e:\sd.webui\webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (2.2.1)
Requirement already satisfied: mpmath>=0.19 in e:\sd.webui\webui\venv\lib\site-packages (from sympy->torch==2.1.2) (1.3.0)
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: E:\sd.webui\webui\venv\Scripts\python.exe -m pip install --upgrade pip
Launching Web UI with arguments: --force-enable-xformers --reinstall-torch --xformers
Loading weights [ef76aa2332] from E:\sd.webui\webui\models\Stable-diffusion\realisticVisionV60B1_v51VAE.safetensors
Creating model from config: E:\sd.webui\webui\configs\v1-inference.yaml
Running on local URL: http://127.0.0.1:7860/
To create a public link, set share=True in launch().
Startup time: 15.5s (prepare environment: 5.0s, import torch: 5.1s, import gradio: 1.3s, setup paths: 1.2s, initialize shared: 0.3s, other imports: 0.6s, load scripts: 0.9s, create ui: 0.6s, gradio launch: 0.5s).
Applying attention optimization: xformers... done.
Model loaded in 5.2s (load weights from disk: 0.7s, create model: 0.5s, apply weights to model: 3.5s, calculate empty prompt: 0.2s).
CUDA 12.1
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.8.0
Commit hash: AUTOMATIC1111/stable-diffusion-webui@bef51ae
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
Requirement already satisfied: torch==2.1.2 in e:\sd.webui\webui\venv\lib\site-packages (2.1.2+cu121)
Requirement already satisfied: torchvision==0.16.2 in e:\sd.webui\webui\venv\lib\site-packages (0.16.2+cu121)
Requirement already satisfied: sympy in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (1.12)
Requirement already satisfied: jinja2 in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (3.1.3)
Requirement already satisfied: filelock in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (3.13.1)
Requirement already satisfied: fsspec in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (2024.2.0)
Requirement already satisfied: networkx in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (3.2.1)
Requirement already satisfied: typing-extensions in e:\sd.webui\webui\venv\lib\site-packages (from torch==2.1.2) (4.10.0)
Requirement already satisfied: numpy in e:\sd.webui\webui\venv\lib\site-packages (from torchvision==0.16.2) (1.26.2)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in e:\sd.webui\webui\venv\lib\site-packages (from torchvision==0.16.2) (9.5.0)
Requirement already satisfied: requests in e:\sd.webui\webui\venv\lib\site-packages (from torchvision==0.16.2) (2.31.0)
Requirement already satisfied: MarkupSafe>=2.0 in e:\sd.webui\webui\venv\lib\site-packages (from jinja2->torch==2.1.2) (2.1.5)
Requirement already satisfied: urllib3<3,>=1.21.1 in e:\sd.webui\webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (2.2.1)
Requirement already satisfied: certifi>=2017.4.17 in e:\sd.webui\webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (2024.2.2)
Requirement already satisfied: idna<4,>=2.5 in e:\sd.webui\webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (3.6)
Requirement already satisfied: charset-normalizer<4,>=2 in e:\sd.webui\webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (3.3.2)
Requirement already satisfied: mpmath>=0.19 in e:\sd.webui\webui\venv\lib\site-packages (from sympy->torch==2.1.2) (1.3.0)
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: E:\sd.webui\webui\venv\Scripts\python.exe -m pip install --upgrade pip
CUDA 12.1
Launching Web UI with arguments: --force-enable-xformers --reinstall-torch --xformers
23:13:03 - ReActor - STATUS - Running v0.7.0-b5 on Device: CUDA
Loading weights [ef76aa2332] from E:\sd.webui\webui\models\Stable-diffusion\realisticVisionV60B1_v51VAE.safetensors
Creating model from config: E:\sd.webui\webui\configs\v1-inference.yaml
Running on local URL: http://127.0.0.1:7860/
To create a public link, set share=True in launch().
Startup time: 19.5s (prepare environment: 7.7s, import torch: 5.1s, import gradio: 1.2s, setup paths: 1.2s, initialize shared: 0.3s, other imports: 0.7s, load scripts: 2.3s, create ui: 0.7s, gradio launch: 0.2s).
Applying attention optimization: xformers... done.
Model loaded in 5.3s (load weights from disk: 0.8s, create model: 0.7s, apply weights to model: 3.4s, calculate empty prompt: 0.2s).
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:08<00:00, 2.83it/s]
tiled upscale: 100%|█████████████████████████████████████████████████████████████████████| 9/9 [00:02<00:00, 3.67it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:29<00:00, 1.16s/it]
23:14:13 - ReActor - STATUS - Working: source face index [0], target face index [0]| 50/5000 [00:43<1:37:49, 1.19s/it]
23:14:13 - ReActor - STATUS - Analyzing Source Image...
23:14:20 - ReActor - STATUS - Analyzing Target Image...
23:14:22 - ReActor - STATUS - Detecting Source Face, Index = 0
23:14:22 - ReActor - STATUS - Source Face 0: Detected Gender -F-
23:14:22 - ReActor - STATUS - OK - Detected Gender matches Condition
23:14:22 - ReActor - STATUS - Detected: -30- y.o. Female
23:14:27 - ReActor - STATUS - Detecting Target Face, Index = 0
23:14:27 - ReActor - STATUS - Target Face 0: Detected Gender -F-
23:14:27 - ReActor - STATUS - OK - Detected Gender matches Condition
23:14:27 - ReActor - STATUS - Detected: -24- y.o. Female
23:14:27 - ReActor - STATUS - Swapping Source into Target
23:14:36 - ReActor - STATUS - Correcting Face Mask
*** Error running postprocess_image: E:\sd.webui\webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py
Traceback (most recent call last):
File "E:\sd.webui\webui\modules\scripts.py", line 856, in postprocess_image
script.postprocess_image(p, pp, *script_args)
File "E:\sd.webui\webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 450, in postprocess_image
result, output, swapped = swap_face(
File "E:\sd.webui\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 "E:\sd.webui\webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 773, in operate
result = apply_face_mask(swapped_image=swapped_image,target_image=result,target_face=target_face,entire_mask_image=entire_mask_image)
File "E:\sd.webui\webui\extensions\sd-webui-reactor\reactor_modules\reactor_mask.py", line 55, in apply_face_mask
mask_generator = BiSeNetMaskGenerator()
File "E:\sd.webui\webui\extensions\sd-webui-reactor\scripts\reactor_inferencers\bisenet_mask_generator.py", line 14, in init
self.mask_model = init_parsing_model(device=shared.device)
File "E:\sd.webui\webui\venv\lib\site-packages\facexlib\parsing_init_.py", line 20, in init_parsing_model
load_net = torch.load(model_path, map_location=lambda storage, loc: storage)
File "E:\sd.webui\webui\modules\safe.py", line 108, in load
return load_with_extra(filename, *args, extra_handler=global_extra_handler, **kwargs)
File "E:\sd.webui\webui\modules\safe.py", line 156, in load_with_extra
return unsafe_torch_load(filename, *args, **kwargs)
File "E:\sd.webui\webui\venv\lib\site-packages\torch\serialization.py", line 1028, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "E:\sd.webui\webui\venv\lib\site-packages\torch\serialization.py", line 1264, in _legacy_load
typed_storage._untyped_storage._set_from_file(
RuntimeError: unexpected EOF, expected 58300 more bytes. The file might be corrupted.
Beta Was this translation helpful? Give feedback.
All reactions