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
I’m having an issue with FaceSwapLab because I’m getting the following error:
ModuleNotFoundError: No module named 'onnx'.
I’m completely unsure how to fix this. Previously, everything worked fine when Google Colab was based on Python 3.10, but now with Python 3.11, the plugin doesn’t appear in the web UI.
*** Error loading script: faceswaplab.py
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 515, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-faceswaplab/scripts/faceswaplab.py", line 10, in
from scripts.faceswaplab_api import faceswaplab_api
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-faceswaplab/scripts/faceswaplab_api/faceswaplab_api.py", line 12, in
from scripts.faceswaplab_swapping import swapper
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-faceswaplab/scripts/faceswaplab_swapping/swapper.py", line 14, in
import insightface
File "/usr/local/lib/python3.11/dist-packages/insightface/init.py", line 16, in
from . import model_zoo
File "/usr/local/lib/python3.11/dist-packages/insightface/model_zoo/init.py", line 1, in
from .model_zoo import get_model
File "/usr/local/lib/python3.11/dist-packages/insightface/model_zoo/model_zoo.py", line 11, in
from .arcface_onnx import *
File "/usr/local/lib/python3.11/dist-packages/insightface/model_zoo/arcface_onnx.py", line 10, in
import onnx
ModuleNotFoundError: No module named 'onnx'
The text was updated successfully, but these errors were encountered:
I’m having an issue with FaceSwapLab because I’m getting the following error:
ModuleNotFoundError: No module named 'onnx'.
I’m completely unsure how to fix this. Previously, everything worked fine when Google Colab was based on Python 3.10, but now with Python 3.11, the plugin doesn’t appear in the web UI.
I’m using this workflow: https://github.com/TheLastBen/fast-stable-diffusion.
Any advice would be greatly appreciated!
*** Error loading script: faceswaplab.py
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 515, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-faceswaplab/scripts/faceswaplab.py", line 10, in
from scripts.faceswaplab_api import faceswaplab_api
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-faceswaplab/scripts/faceswaplab_api/faceswaplab_api.py", line 12, in
from scripts.faceswaplab_swapping import swapper
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-faceswaplab/scripts/faceswaplab_swapping/swapper.py", line 14, in
import insightface
File "/usr/local/lib/python3.11/dist-packages/insightface/init.py", line 16, in
from . import model_zoo
File "/usr/local/lib/python3.11/dist-packages/insightface/model_zoo/init.py", line 1, in
from .model_zoo import get_model
File "/usr/local/lib/python3.11/dist-packages/insightface/model_zoo/model_zoo.py", line 11, in
from .arcface_onnx import *
File "/usr/local/lib/python3.11/dist-packages/insightface/model_zoo/arcface_onnx.py", line 10, in
import onnx
ModuleNotFoundError: No module named 'onnx'
The text was updated successfully, but these errors were encountered: