Tried to install Faceswaplab on SD.Next UI, but it failed to load on my PC. However last month I successfully installed on another PC. This time it failed. I am running latest SD.Next clone with RTX3060 graphic card on Python 3.12.9.
Tried on ForgeUI and Automatic1111 all failed to load as well. Not sure if this issue is related to the following issue? #197
Tried to install Faceswaplab on SD.Next UI, but it failed to load on my PC. However last month I successfully installed on another PC. This time it failed. I am running latest SD.Next clone with RTX3060 graphic card on Python 3.12.9.


Tried on ForgeUI and Automatic1111 all failed to load as well. Not sure if this issue is related to the following issue?
#197
I was originally wrong because the venv is something I'm not used to.
The version of albumentations I had in venv was 2.0.5 or something. This was said to be not stable. It was recommended I downgrade to 1.4.3.
pip install "albumentations==1.4.3"
Although for full disclosure I will state I hadn't source venv/bin/activate and didn't realize I was on pydantic<2. So I actually upgraded it to >2 with albumentations==1.4.3. I then backed pydantic back down to the original version. But the main change was albumentations==1.4.3.
The problem you mentioned I think is due to different gradio versions.
is what my footer reports and this version seems to work. At the very least it loads and doesn't produce any breaking errors. I still need to figure out how to use it.
I was originally wrong because the venv is something I'm not used to.
The version of albumentations I had in venv was 2.0.5 or something. This was said to be not stable. It was recommended I downgrade to 1.4.3.
`pip install "albumentations==1.4.3"`
Although for full disclosure I will state I hadn't `source venv/bin/activate` and didn't realize I was on pydantic<2. So I actually upgraded it to >2 with albumentations==1.4.3. I then backed pydantic back down to the original version. But the main change was albumentations==1.4.3.
The problem you mentioned I think is due to different gradio versions.
` python: 3.10.16 • torch: 2.1.2+cu121 • xformers: 0.0.23.post1 • gradio: 3.41.2`
is what my footer reports and this version seems to work. At the very least it loads and doesn't produce any breaking errors. I still need to figure out how to use it.
Remove existing line 24 and replace with this. Watch the indentation.
if p.overlay_images and batch_index < len(p.overlay_images):
selected_overlay = p.overlay_images[batch_index]
img, _ = processing.apply_overlay(img, p.paste_to, selected_overlay)
else:
return img
logger.debug("No overlay selected or overlay list is empty.")
Additionally, this will fix using this in the inpainting tab:
`stable-diffusion-webui/extensions/sd-webui-faceswaplab/scripts/faceswaplab_utils/imgutils.py`
Remove existing line 24 and replace with this. Watch the indentation.
```
if p.overlay_images and batch_index < len(p.overlay_images):
selected_overlay = p.overlay_images[batch_index]
img, _ = processing.apply_overlay(img, p.paste_to, selected_overlay)
else:
return img
logger.debug("No overlay selected or overlay list is empty.")
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Tried to install Faceswaplab on SD.Next UI, but it failed to load on my PC. However last month I successfully installed on another PC. This time it failed. I am running latest SD.Next clone with RTX3060 graphic card on Python 3.12.9.
Tried on ForgeUI and Automatic1111 all failed to load as well. Not sure if this issue is related to the following issue?
#197
I was originally wrong because the venv is something I'm not used to.
The version of albumentations I had in venv was 2.0.5 or something. This was said to be not stable. It was recommended I downgrade to 1.4.3.
pip install "albumentations==1.4.3"Although for full disclosure I will state I hadn't
source venv/bin/activateand didn't realize I was on pydantic<2. So I actually upgraded it to >2 with albumentations==1.4.3. I then backed pydantic back down to the original version. But the main change was albumentations==1.4.3.The problem you mentioned I think is due to different gradio versions.
python: 3.10.16 • torch: 2.1.2+cu121 • xformers: 0.0.23.post1 • gradio: 3.41.2is what my footer reports and this version seems to work. At the very least it loads and doesn't produce any breaking errors. I still need to figure out how to use it.
Additionally, this will fix using this in the inpainting tab:
stable-diffusion-webui/extensions/sd-webui-faceswaplab/scripts/faceswaplab_utils/imgutils.pyRemove existing line 24 and replace with this. Watch the indentation.