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 'insightface' #2722

Open
carlmoss22 opened this issue Jan 24, 2025 · 1 comment
Open

ModuleNotFoundError: No module named 'insightface' #2722

carlmoss22 opened this issue Jan 24, 2025 · 1 comment

Comments

@carlmoss22
Copy link

hi,
the whole day i try to solve the problem.

i have installed insightface on
appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages

but on comfyui the python version is 311. could this be the problem?
if this could be the problem how can i solve this? (i am a beginner)

thx!

@winwest
Copy link

winwest commented Feb 8, 2025

I've encountered the same problem in both WebUI and comfyUI. ModuleNotFoundError: No module named 'insightface.app'

Error running process: /home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py
Traceback (most recent call last):
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/modules/scripts.py", line 832, in process
script.process(p, script_args)
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 1228, in process
self.controlnet_hack(p)
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 1213, in controlnet_hack
self.controlnet_main_entry(p)
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 941, in controlnet_main_entry
controls, hr_controls, additional_maps = get_control(
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 290, in get_control
controls, hr_controls = list(zip(
[preprocess_input_image(img) for img in optional_tqdm(input_images)]))
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 290, in
controls, hr_controls = list(zip(*[preprocess_input_image(img) for img in optional_tqdm(input_images)]))
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 242, in preprocess_input_image
result = preprocessor.cached_call(
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/supported_preprocessor.py", line 198, in cached_call
result = self._cached_call(input_image, *args, **kwargs)
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/utils.py", line 82, in decorated_func
return cached_func(*args, **kwargs)
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/utils.py", line 66, in cached_func
return func(*args, **kwargs)
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/supported_preprocessor.py", line 211, in _cached_call
return self(*args, **kwargs)
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/preprocessor/legacy/legacy_preprocessors.py", line 105, in call
result, is_image = self.call_function(
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/preprocessor/legacy/processor.py", line 744, in run_model_instant_id
self.load_model()
File "/home/featurize/work/app/sdwebui/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/preprocessor/legacy/processor.py", line 686, in load_model
from insightface.app import FaceAnalysis
ModuleNotFoundError: No module named 'insightface.app'

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

2 participants