Open nitinmukesh opened 4 months ago
All models downloaded fine.
WebUI launch but facechain tab does not appears.
EP Error C:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:866 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasnt able to be loaded. Please install the correct version of CUDA andcuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.
when using ['CUDAExecutionProvider', 'CPUExecutionProvider']
Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying.
please check your cuda version and make sure it is correctly installed and matched for the pytorch you have installed
@wenmengzhou
Thanks for the information. I fied the issue but now getting another issue
venv "C:\tut\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
Installing requirements for diffusers
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Loading weights [6ce0161689] from C:\tut\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: C:\tut\stable-diffusion-webui\configs\v1-inference.yaml
C:\tut\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
2024-07-03 19:45:24,238 - modelscope - INFO - PyTorch version 2.1.2+cu118 Found.
2024-07-03 19:45:24,238 - modelscope - INFO - Loading ast index from C:\Users\nitin\.cache\modelscope\ast_indexer
2024-07-03 19:45:24,504 - modelscope - INFO - Loading done! Current index file version is 1.15.0, with md5 ac133e43e0e7c220fb03a5bd0185d50a and a total number of 980 components indexed
秋日胡杨风(Autumn populus euphratica style)
Applying attention optimization: Doggettx... done.
Model loaded in 4.8s (load weights from disk: 0.3s, create model: 0.3s, apply weights to model: 3.9s, calculate empty prompt: 0.2s).
2024-07-03 19:45:27,707 - modelscope - INFO - Use user-specified model revision: v1
萧瑟秋天风(Bleak autumn style)
2024-07-03 19:45:31,145 - modelscope - INFO - Use user-specified model revision: v1
漫画风(Cartoon)
2024-07-03 19:45:32,973 - modelscope - INFO - Use user-specified model revision: v1.0.0
旗袍风(Cheongsam)
2024-07-03 19:45:34,738 - modelscope - INFO - Use user-specified model revision: v1.0.0
中国新年风(Chinese New Year Style)
2024-07-03 19:45:36,640 - modelscope - INFO - Use user-specified model revision: v2
冬季汉服(Chinese winter hanfu)
2024-07-03 19:45:38,553 - modelscope - INFO - Use user-specified model revision: v1.0.0
圣诞风(Christmas)
2024-07-03 19:45:40,316 - modelscope - INFO - Use user-specified model revision: v1.0.0
炫彩少女风(Colorful rainbow style)
2024-07-03 19:45:42,015 - modelscope - INFO - Use user-specified model revision: v1.0.0
自然清冷风(Cool tones)
2024-07-03 19:45:44,713 - modelscope - INFO - Use user-specified model revision: v1.0.0
西部牛仔风(Cowboy style)
2024-07-03 19:45:47,855 - modelscope - INFO - Use user-specified model revision: v1.0.0
林中鹿女风(Deer girl)
2024-07-03 19:45:49,793 - modelscope - INFO - Use user-specified model revision: v3.2.0
主题乐园风(Disneyland)
2024-07-03 19:45:51,918 - modelscope - INFO - Use user-specified model revision: v1.0.0
海洋风(Ocean)
2024-07-03 19:45:53,930 - modelscope - INFO - Use user-specified model revision: v2.0.0
敦煌风(Dunhuang)
2024-07-03 19:45:56,661 - modelscope - INFO - Use user-specified model revision: v2
多巴胺风格(Colourful Style)
2024-07-03 19:46:00,025 - modelscope - INFO - Use user-specified model revision: v1.0.0
中华刺绣风(Embroidery)
2024-07-03 19:46:02,123 - modelscope - INFO - Use user-specified model revision: v1.0.0
欧式田野风(European fields)
2024-07-03 19:46:04,068 - modelscope - INFO - Use user-specified model revision: v5
仙女风(Fairy style)
2024-07-03 19:46:06,042 - modelscope - INFO - Use user-specified model revision: v1.0.0
时尚墨镜风(Fashion glasses)
2024-07-03 19:46:09,281 - modelscope - INFO - Use user-specified model revision: v1.1
火红少女风(Flame Red Style)
2024-07-03 19:46:11,234 - modelscope - INFO - Use user-specified model revision: v1.0.0
花园风(Flowers)
2024-07-03 19:46:13,173 - modelscope - INFO - Use user-specified model revision: v1.0.0
绅士风(Gentleman style)
2024-07-03 19:46:15,610 - modelscope - INFO - Use user-specified model revision: v1.0.0
国风(GuoFeng Style)
2024-07-03 19:46:17,798 - modelscope - INFO - Use user-specified model revision: v1.0.0
嘻哈风(Hiphop style)
2024-07-03 19:46:20,610 - modelscope - INFO - Use user-specified model revision: v1.0.1
夜景港风(Hong Kong night)
2024-07-03 19:46:22,579 - modelscope - INFO - Use user-specified model revision: v1.0.0
印度风(India)
2024-07-03 19:46:24,595 - modelscope - INFO - Use user-specified model revision: v1.0.0
雪山羽绒服风(Jacket in Snow Mountain)
2024-07-03 19:46:27,533 - modelscope - INFO - Use user-specified model revision: v7
Downloading: 100%|██████████████████████████████████████████████████████████████████████| 248/248 [00:01<00:00, 164B/s]
日系和服风(Kimono Style)
2024-07-03 19:46:31,220 - modelscope - INFO - Use user-specified model revision: v1.0.0
哥特洛丽塔(Gothic Lolita)
2024-07-03 19:46:33,189 - modelscope - INFO - Use user-specified model revision: v1.0.0
洛丽塔(Lolita)
2024-07-03 19:46:35,236 - modelscope - INFO - Use user-specified model revision: v1.0.0
花环洛丽塔(Flora Lolita)
2024-07-03 19:46:37,222 - modelscope - INFO - Use user-specified model revision: v3.0.1
女仆风(Maid style)
2024-07-03 19:46:39,393 - modelscope - INFO - Use user-specified model revision: v1.0.0
机械风(Mechanical)
2024-07-03 19:46:41,396 - modelscope - INFO - Use user-specified model revision: v1.0.0
男士西装风(Men's Suit)
2024-07-03 19:46:43,374 - modelscope - INFO - Use user-specified model revision: v2
苗族服装风(Miao style)
2024-07-03 19:46:45,308 - modelscope - INFO - Use user-specified model revision: v3.0
模特风(Model style)
2024-07-03 19:46:47,331 - modelscope - INFO - Use user-specified model revision: v1.0.0
蒙古草原风(Mongolian)
2024-07-03 19:46:50,274 - modelscope - INFO - Use user-specified model revision: v1.0.0
机车风(Motorcycle race style)
2024-07-03 19:46:52,256 - modelscope - INFO - Use user-specified model revision: v1.0.0
夏日海滩风(Summer Ocean Vibe)
2024-07-03 19:46:54,196 - modelscope - INFO - Use user-specified model revision: v1.0.0
京剧名旦风(Female role in Peking opera)
2024-07-03 19:46:57,430 - modelscope - INFO - Use user-specified model revision: v1.0.0
拍立得风(Polaroid style)
2024-07-03 19:46:59,323 - modelscope - INFO - Use user-specified model revision: v1.0.0
贵族公主风(Princess costum)
2024-07-03 19:47:02,508 - modelscope - INFO - Use user-specified model revision: v1.0.0
雨夜(Rainy night)
2024-07-03 19:47:04,365 - modelscope - INFO - Use user-specified model revision: v1.0.0
红发礼服风(Red Style)
2024-07-03 19:47:07,368 - modelscope - INFO - Use user-specified model revision: v1.0.0
复古风(Retro Style)
2024-07-03 19:47:09,430 - modelscope - INFO - Use user-specified model revision: v1.0.0
漫游宇航员(Roaming Astronaut)
2024-07-03 19:47:12,180 - modelscope - INFO - Use user-specified model revision: v3.0.1
校服风(School uniform)
2024-07-03 19:47:14,244 - modelscope - INFO - Use user-specified model revision: v1.0.0
科幻风(Science fiction style)
2024-07-03 19:47:17,214 - modelscope - INFO - Use user-specified model revision: v1.0.0
绿茵球场风(Soccer Field)
2024-07-03 19:47:19,261 - modelscope - INFO - Use user-specified model revision: v1.0.0
街拍风(Street style)
2024-07-03 19:47:21,261 - modelscope - INFO - Use user-specified model revision: v1.0.0
藏族服饰风(Tibetan clothing style)
2024-07-03 19:47:23,152 - modelscope - INFO - Use user-specified model revision: v1
古风(Traditional chinese style)
2024-07-03 19:47:26,283 - modelscope - INFO - Use user-specified model revision: v5
Downloading: 100%|██████████████████████████████████████████████████████████████████████| 302/302 [00:01<00:00, 227B/s]
丁达尔风(Tyndall Light)
2024-07-03 19:47:29,532 - modelscope - INFO - Use user-specified model revision: v1.0.0
梦幻深海风(Sea World)
2024-07-03 19:47:31,471 - modelscope - INFO - Use user-specified model revision: v1.0.0
婚纱风(Wedding dress)
2024-07-03 19:47:34,910 - modelscope - INFO - Use user-specified model revision: v1.0.0
婚纱风-2(Wedding dress 2)
2024-07-03 19:47:36,669 - modelscope - INFO - Use user-specified model revision: v1.0.0
西部牛仔风(West cowboy)
2024-07-03 19:47:38,667 - modelscope - INFO - Use user-specified model revision: v1.0.0
西部风(Wild west style)
2024-07-03 19:47:40,707 - modelscope - INFO - Use user-specified model revision: v1.0.0
女巫风(Witch style)
2024-07-03 19:47:42,618 - modelscope - INFO - Use user-specified model revision: v1.0.0
绿野仙踪(Wizard of Oz)
2024-07-03 19:47:44,607 - modelscope - INFO - Use user-specified model revision: v1.0.0
藏族风(ZangZu Style)
2024-07-03 19:47:46,607 - modelscope - INFO - Use user-specified model revision: v1.0.0
壮族服装风(Zhuang style)
2024-07-03 19:47:49,225 - modelscope - INFO - Use user-specified model revision: v5
盔甲风(Armor)
芭比娃娃(Barbie Doll)
2024-07-03 19:47:51,118 - modelscope - INFO - Use user-specified model revision: v2
休闲生活风(Casual Lifestyle)
2024-07-03 19:47:53,087 - modelscope - INFO - Use user-specified model revision: v2
凤冠霞帔(Chinese traditional gorgeous suit)
2024-07-03 19:47:55,088 - modelscope - INFO - Use user-specified model revision: v1.0.0
赛博朋克(Cybernetics punk)
优雅公主(Elegant Princess)
2024-07-03 19:47:57,007 - modelscope - INFO - Use user-specified model revision: v2
女士晚礼服(Gown)
汉服风(Hanfu)
白月光(Innocent Girl in White Dress)
鬼马少女(Pixy Girl)
2024-07-03 19:47:59,968 - modelscope - INFO - Use user-specified model revision: v2
白雪公主(Snow White)
2024-07-03 19:48:01,858 - modelscope - INFO - Use user-specified model revision: v1.0.0
T恤衫(T-shirt)
工作服(Working suit)
2024-07-03 19:48:03,647 - modelscope - INFO - Use user-specified model revision: v1.0.1
2024-07-03 19:48:07,801 - modelscope - INFO - Use user-specified model revision: v1.0.1
*** Error executing callback ui_tabs_callback for C:\tut\stable-diffusion-webui\extensions\facechain\scripts\facechain_sdwebui.py
Traceback (most recent call last):
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\import_utils.py", line 451, in _get_module
return importlib.import_module('.' + module_name, self.__name__)
File "C:\Program Files\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\models\cv\image_human_parsing\m2fp_net.py", line 13, in <module>
from modelscope.models.cv.image_instance_segmentation.maskdino_swin import \
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\models\cv\image_instance_segmentation\maskdino_swin.py", line 16, in <module>
from .maskdino.maskdino_decoder import MaskDINODecoder
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\models\cv\image_instance_segmentation\maskdino\maskdino_decoder.py", line 9, in <module>
from .dino_decoder import DeformableTransformerDecoderLayer, TransformerDecoder
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\models\cv\image_instance_segmentation\maskdino\dino_decoder.py", line 10, in <module>
from .ms_deform_attn import MSDeformAttn
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\models\cv\image_instance_segmentation\maskdino\ms_deform_attn.py", line 20, in <module>
from mmcv.ops.multi_scale_deform_attn import (
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\mmcv\ops\__init__.py", line 3, in <module>
from .active_rotated_filter import active_rotated_filter
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\mmcv\ops\active_rotated_filter.py", line 10, in <module>
ext_module = ext_loader.load_ext(
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\mmcv\utils\ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "C:\Program Files\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed while importing _ext: The specified module could not be found.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\tut\stable-diffusion-webui\modules\script_callbacks.py", line 283, in ui_tabs_callback
res += c.callback() or []
File "C:\tut\stable-diffusion-webui\extensions\facechain\scripts\facechain_sdwebui.py", line 15, in on_ui_tabs
import app
File "C:\tut\stable-diffusion-webui\extensions\facechain\app.py", line 434, in <module>
gen_portrait = GenPortrait()
File "C:\tut\stable-diffusion-webui\extensions\facechain\facechain\inference_fact.py", line 292, in __init__
self.segmentation_pipeline = pipeline(
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 170, in pipeline
return build_pipeline(cfg, task_name=task)
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 65, in build_pipeline
return build_from_cfg(
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 184, in build_from_cfg
LazyImportModule.import_module(sig)
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\import_utils.py", line 475, in import_module
importlib.import_module(module_name)
File "C:\Program Files\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\cv\image_human_parsing_pipeline.py", line 9, in <module>
from modelscope.models.cv.image_human_parsing import (
File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\import_utils.py", line 434, in __getattr__
module = self._get_module(self._class_to_module[name])
File "C:\tut\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\import_utils.py", line 453, in _get_module
raise RuntimeError(
RuntimeError: Failed to import modelscope.models.cv.image_human_parsing.m2fp_net because of the following error (look up to see its traceback):
DLL load failed while importing _ext: The specified module could not be found.
---
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Startup time: 189.3s (prepare environment: 14.7s, import torch: 3.3s, import gradio: 1.1s, setup paths: 1.8s, initialize shared: 0.7s, other imports: 0.8s, load scripts: 0.6s, create ui: 166.0s, gradio launch: 0.2s).
Here is pip list log
(venv) C:\tut\stable-diffusion-webui>pip list
Package Version
------------------------- ------------
absl-py 2.1.0
accelerate 0.21.0
addict 2.4.0
aenum 3.1.15
aiofiles 23.2.1
aiohttp 3.9.5
aiosignal 1.3.1
aliyun-python-sdk-core 2.15.1
aliyun-python-sdk-kms 2.16.3
altair 5.3.0
antlr4-python3-runtime 4.9.3
anyio 3.7.1
async-timeout 4.0.3
attrs 23.2.0
blendmodes 2022
certifi 2024.6.2
cffi 1.16.0
charset-normalizer 3.3.2
clean-fid 0.1.35
click 8.1.7
clip 1.0
colorama 0.4.6
coloredlogs 15.0.1
contourpy 1.2.1
controlnet-aux 0.0.6
crcmod 1.7
cryptography 42.0.8
cycler 0.12.1
datasets 2.18.0
deprecation 2.1.0
diffusers 0.29.2
dill 0.3.8
diskcache 5.6.3
edge-tts 6.1.12
einops 0.4.1
exceptiongroup 1.2.1
facexlib 0.3.0
fastapi 0.94.0
ffmpy 0.3.2
filelock 3.15.4
filterpy 1.4.5
flatbuffers 24.3.25
fonttools 4.53.0
frozenlist 1.4.1
fsspec 2023.9.2
ftfy 6.2.0
gast 0.5.4
gitdb 4.0.11
GitPython 3.1.32
gradio 3.41.2
gradio_client 0.5.0
h11 0.12.0
httpcore 0.15.0
httpx 0.24.1
huggingface-hub 0.23.4
humanfriendly 10.0
idna 3.7
imageio 2.34.2
importlib_metadata 8.0.0
importlib_resources 6.4.0
inflection 0.5.1
Jinja2 3.1.4
jmespath 0.10.0
jsonmerge 1.8.0
jsonschema 4.22.0
jsonschema-specifications 2023.12.1
kiwisolver 1.4.5
kornia 0.6.7
lark 1.1.2
lazy_loader 0.4
lightning-utilities 0.11.3.post0
llvmlite 0.43.0
MarkupSafe 2.1.5
matplotlib 3.9.0
mediapipe 0.10.3
mmcv-full 1.7.2
mmdet 2.26.0
modelscope 1.15.0
mpmath 1.3.0
multidict 6.0.5
multiprocess 0.70.16
networkx 3.3
numba 0.60.0
numpy 1.26.2
omegaconf 2.2.3
onnxruntime-gpu 1.18.1
open-clip-torch 2.20.0
opencv-contrib-python 4.10.0.84
opencv-python 4.10.0.84
orjson 3.10.6
oss2 2.18.6
packaging 24.1
pandas 2.2.2
piexif 1.1.3
Pillow 9.5.0
pillow-avif-plugin 1.4.3
pip 22.2.1
platformdirs 4.2.2
protobuf 3.20.1
psutil 5.9.5
pyarrow 16.1.0
pyarrow-hotfix 0.6
pycocotools 2.0.8
pycparser 2.22
pycryptodome 3.20.0
pydantic 1.10.17
pydub 0.25.1
pyparsing 3.1.2
pyreadline3 3.4.1
python-dateutil 2.9.0.post0
python-multipart 0.0.9
python-slugify 8.0.1
pytorch-lightning 1.9.4
pytz 2024.1
PyWavelets 1.6.0
PyYAML 6.0.1
referencing 0.35.1
regex 2024.5.15
requests 2.32.3
resize-right 0.0.2
rpds-py 0.18.1
safetensors 0.4.2
scikit-image 0.21.0
scipy 1.14.0
semantic-version 2.10.0
sentencepiece 0.2.0
setuptools 69.5.1
simplejson 3.19.2
six 1.16.0
slugify 0.0.1
smmap 5.0.1
sniffio 1.3.1
sortedcontainers 2.4.0
sounddevice 0.4.7
spandrel 0.1.6
starlette 0.26.1
sympy 1.12.1
terminaltables 3.1.10
text-unidecode 1.3
tifffile 2024.7.2
timm 1.0.7
tokenizers 0.13.3
tomesd 0.1.3
tomli 2.0.1
toolz 0.12.1
torch 2.1.2+cu118
torchdiffeq 0.2.3
torchmetrics 1.4.0.post0
torchsde 0.2.6
torchvision 0.16.2+cu118
tqdm 4.66.4
trampoline 0.1.2
transformers 4.30.2
typing_extensions 4.12.2
tzdata 2024.1
urllib3 2.2.2
uvicorn 0.30.1
wcwidth 0.2.13
websockets 11.0.3
xxhash 3.4.1
yapf 0.40.2
yarl 1.9.4
zipp 3.19.2
Referred this https://github.com/open-mmlab/mmcv/issues/1594
and tried installing using mim, still same issue
pip install --no-cache-dir -U openmim mim install "mmcv-full==1.7.2" mim install "mmdet==2.26.0"
Also having issue getting Facechain tab to appear on: version: v1.9.4 python: 3.10.6 torch: 2.1.2+cu121 xformers: 0.0.23.post1 gradio: 3.41.2 checkpoint: 6ce0161689
Error Log:
*** Error executing callback ui_tabs_callback for C:\Projects\stable-diffusion-webui\extensions\facechain\scripts\facechain_sdwebui.py
Traceback (most recent call last):
File "C:\Projects\stable-diffusion-webui\modules\script_callbacks.py", line 283, in ui_tabs_callback
res += c.callback() or []
File "C:\Projects\stable-diffusion-webui\extensions\facechain\scripts\facechain_sdwebui.py", line 15, in on_ui_tabs
import app
File "C:\Projects\stable-diffusion-webui\extensions\facechain\app.py", line 15, in <module>
from facechain.inference_fact import GenPortrait
File "C:\Projects\stable-diffusion-webui\extensions\facechain\facechain\inference_fact.py", line 20, in <module>
from modelscope.pipelines import pipeline
File "C:\Projects\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\__init__.py", line 4, in <module>
from .base import Pipeline
File "C:\Projects\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\base.py", line 16, in <module>
from modelscope.msdatasets import MsDataset
File "C:\Projects\stable-diffusion-webui\venv\lib\site-packages\modelscope\msdatasets\__init__.py", line 2, in <module>
from .ms_dataset import MsDataset
File "C:\Projects\stable-diffusion-webui\venv\lib\site-packages\modelscope\msdatasets\ms_dataset.py", line 9, in <module>
from datasets import Dataset, DatasetDict, IterableDataset, IterableDatasetDict
ModuleNotFoundError: No module named 'datasets'
I have this problem too, v. 1.9.4, python 3.10.11, Cuda 12.1
`*** Error executing callback ui_tabs_callback for D:\SD\extensions\facechain\scripts\facechain_sdwebui.py
Traceback (most recent call last):
File "D:\SD\modules\script_callbacks.py", line 283, in ui_tabs_callback
res += c.callback() or []
File "D:\SD\extensions\facechain\scripts\facechain_sdwebui.py", line 15, in on_ui_tabs
import app
File "D:\SD\extensions\facechain\app.py", line 16, in
I have this problem too, v. 1.9.4, python 3.10.11, Cuda 12.1
`*** Error executing callback ui_tabs_callback for D:\SD\extensions\facechain\scripts\facechain_sdwebui.py Traceback (most recent call last): File "D:\SD\modules\script_callbacks.py", line 283, in ui_tabs_callback res += c.callback() or [] File "D:\SD\extensions\facechain\scripts\facechain_sdwebui.py", line 15, in on_ui_tabs import app File "D:\SD\extensions\facechain\app.py", line 16, in from facechain.inference_fact import GenPortrait File "D:\SD\extensions\facechain\facechain\inference_fact.py", line 20, in from modelscope.pipelines import pipeline File "D:\SD\venv\lib\site-packages\modelscope\pipelinesinit.py", line 4, in from .base import Pipeline File "D:\SD\venv\lib\site-packages\modelscope\pipelines\base.py", line 16, in from modelscope.msdatasets import MsDataset File "D:\SD\venv\lib\site-packages\modelscope\msdatasetsinit.py", line 2, in from .ms_dataset import MsDataset File "D:\SD\venv\lib\site-packages\modelscope\msdatasets\ms_dataset.py", line 9, in from datasets import Dataset, DatasetDict, IterableDataset, IterableDatasetDict ModuleNotFoundError: No module named 'datasets'
I am having the same error message and facechain is not appearing as a WebUI tab. Did you find a solution to this?
Looks like no longer supported. So I gave up.
try pip install datasets
, make sure you activate the virtual environment before doing this as it will be installed elsewhere.
try
pip install datasets
, make sure you activate the virtual environment before doing this as it will be installed elsewhere.
unfortunately that just leads to errors re: oss2. When I try to install oss2, it fails.
try
pip install datasets
, make sure you activate the virtual environment before doing this as it will be installed elsewhere.unfortunately that just leads to errors re: oss2. When I try to install oss2, it fails.
I figured I'd thow out an update on some issues I found while spending way to long trying to get this working. After installing (within venv) both datasets
and oss2
, I was led to some issues within modelscope
, along with a few more dependencies that weren't getting installed.
In addition to datasets
and oss2
, I had to (from within venv) run:
pip install evaluate simplejson sortedcontainers
.
Then I had to go into my venv site-packages
and edit line 18 in modelscope.modelscope.msdatasets.utils.hf_file_utils.py
.
I updated it from:
from datasets.utils.file_utils import hash_url_to_filename, get_authentication_headers_for_url, ftp_head, fsspec_head, \ http_head, _raise_if_offline_mode_is_enabled, ftp_get, fsspec_get, http_get
to
from datasets.utils.file_utils import hash_url_to_filename, get_authentication_headers_for_url, fsspec_head, fsspec_get, _raise_if_offline_mode_is_enabled
then add a new line containing:
from evaluate.utils.file_utils import ftp_head, ftp_get, http_get, http_head
facechain
is internally using the modelscope
library and it seems that within modelscope.msdatasets.utils.hf_file_utils.py
there are functions being imported from datasets.utils.file_utils.py
that no longer exist in datasets
. These functions are ftp_head
, ftp_get
, http_get
, and http_head
.
It looks like Huggingface has moved these functions out of datasets
and into the huggingface/evaluate
project, residing in evaluate.utils.file_utils.py
.
I ended up having to swap those import from datasets
to evaluate
and install the extra missing deps to get things rolling. But to be honest, it's still downloading checkpoints, configs and running setup, so I still don't know that all this got it fully "working". I'd venture to say that this isn't the best route for a quick fix, but ¯\(ツ)/¯