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 'pycocotools' #81

Closed
daizhuo opened this issue May 8, 2023 · 1 comment
Closed

ModuleNotFoundError: No module named 'pycocotools' #81

daizhuo opened this issue May 8, 2023 · 1 comment

Comments

@daizhuo
Copy link

daizhuo commented May 8, 2023

我在 WEBUI 目录下:
pip install pycocotools
而且进一步:
pip install --upgrade --force-reinstall pycocotools

还是显示 No module named 'pycocotools'

我是不懂程序,只是想用这个功能,请指教!!谢谢。

Start semantic segmentation with processor seg_ofade20k
Traceback (most recent call last):
File "C:\Users\Daizho\stable-diffusion-webui-1.1.0\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\Daizho\stable-diffusion-webui-1.1.0\venv\lib\site-packages\gradio\blocks.py", line 1299, in process_api
result = await self.call_function(
File "C:\Users\Daizho\stable-diffusion-webui-1.1.0\venv\lib\site-packages\gradio\blocks.py", line 1022, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Users\Daizho\stable-diffusion-webui-1.1.0\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Users\Daizho\stable-diffusion-webui-1.1.0\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\Users\Daizho\stable-diffusion-webui-1.1.0\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\Users\Daizho\stable-diffusion-webui-1.1.0\extensions\sd-webui-segment-anything-master\scripts\sam.py", line 318, in cnet_seg
register_auto_sam(sam, auto_sam_points_per_side, auto_sam_points_per_batch, auto_sam_pred_iou_thresh,
File "C:\Users\Daizho\stable-diffusion-webui-1.1.0\extensions\sd-webui-segment-anything-master\scripts\auto.py", line 273, in register_auto_sam
global_sam = SamAutomaticMaskGenerator(
File "C:\Users\Daizho\stable-diffusion-webui-1.1.0\venv\lib\site-packages\segment_anything\automatic_mask_generator.py", line 118, in init
from pycocotools import mask as mask_utils # type: ignore # noqa: F401
ModuleNotFoundError: No module named 'pycocotools'

@continue-revolution
Copy link
Owner

#77

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