Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'onnx' #202

Open
Zurek02 opened this issue Jan 19, 2025 · 0 comments
Open

ModuleNotFoundError: No module named 'onnx' #202

Zurek02 opened this issue Jan 19, 2025 · 0 comments

Comments

@Zurek02
Copy link

Zurek02 commented Jan 19, 2025

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant