Skip to content

Faceswaplab error tools-build-analysis #205

@jonayio

Description

@jonayio

I was trying to build a model.safetensors using faceswaplab in googlecolab, when i clicked ''save'' the following errors appear, also tried using the analysis and error occurred too. Could someone help me fix it?, thanks in advance,

Loading weights [fc52756a74] from /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/dreamlike-photoreal-2.0.ckpt?download=true
Running on public URL: https://ce2ff77522594a0a9f.gradio.live
✔ Connected
Startup time: 13.0s (import torch: 4.8s, import gradio: 1.6s, setup paths: 1.0s, initialize shared: 0.2s, other imports: 0.5s, load scripts: 2.2s, create ui: 1.5s, gradio launch: 0.8s, add APIs: 0.3s).
Creating model from config: /content/gdrive/MyDrive/sd/stable-diffusion-webui/configs/v1-inference.yaml
Applying attention optimization: xformers... done.
Model loaded in 4.8s (load weights from disk: 3.1s, create model: 0.4s, apply weights to model: 0.9s, calculate empty prompt: 0.2s).
2025-04-27 13:09:54,094 - FaceSwapLab - INFO - Choosen gender : Gender.FEMALE
2025-04-27 13:09:54,095 - FaceSwapLab - INFO - Build lio with 1 images
2025-04-27 13:09:54,253 - FaceSwapLab - INFO - Load analysis model det_size=(640, 640), det_thresh=0.5, providers = ['CPUExecutionProvider'], will take some time. (> 30s)
Loading (640, 640) analysis model (first time is slow) 0% 0/1 [00:00<?, ?model/s]
2025-04-27 13:09:54,796 - FaceSwapLab - ERROR - Loading of swapping model failed, please check the requirements (On Windows, download and install Visual Studio. During the install, make sure to include the Python and C++ packages.)
2025-04-27 13:09:54,796 - FaceSwapLab - ERROR - Failed to build checkpoint Loading of analysis model failed
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-faceswaplab/scripts/faceswaplab_swapping/swapper.py", line 342, in getAnalysisModel
model = insightface.app.FaceAnalysis(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/insightface/app/face_analysis.py", line 27, in init
self.model_dir = ensure_available('models', name, root=root)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/insightface/utils/storage.py", line 30, in ensure_available
return download(sub_dir, name, force=False, root=root)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/insightface/utils/storage.py", line 19, in download
download_file(model_url,
File "/usr/local/lib/python3.11/dist-packages/insightface/utils/download.py", line 73, in download_file
raise RuntimeError("Failed downloading url %s" % url)
RuntimeError: Failed downloading url http://insightface.cn-sh2.ufileos.com/models/buffalo_l.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions