Closed zffffff closed 1 year ago
是安装了onnxruntime的安装顺序问题,modelscope默认认为安装的是cpu版本 这个问题只需要卸载onnx和onnxruntime和onnxruntime-gpu。然后安装onnx和onnxruntime即可
卸载的时候显示onnxruntime没有安装,其他两个卸载成功了,然后又按顺序安装了那两个,但重启webui以后仍然是同样的错误
Start Downloading weights Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 set det-size: (640, 640) 2023-09-04 22:06:25,467 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 22:06:27,428 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 22:06:27,428 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 22:06:27,434 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:27,434 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:27,434 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 22:06:27,435 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:27,436 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 22:06:27,966 - modelscope - INFO - load model done 2023-09-04 22:06:28,539 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0 2023-09-04 22:06:28,896 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 22:06:28,896 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection. 2023-09-04 22:06:28,898 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 22:06:29,328 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:29,329 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:29,329 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information. 2023-09-04 22:06:29,329 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor. 2023-09-04 22:06:29,903 - modelscope - INFO - Use user-specified model revision: v1.0.1 2023-09-04 22:06:30,200 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file 2023-09-04 22:06:30,201 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch 2023-09-04 22:06:30,201 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch. 2023-09-04 22:06:30,206 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:30,206 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:30,206 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information. 2023-09-04 22:06:30,206 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:31,019 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 22:06:32,929 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 22:06:32,930 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 22:06:32,935 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:32,935 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:32,935 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 22:06:32,935 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:32,937 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 22:06:33,404 - modelscope - INFO - load model done Exception in thread Thread-68 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(**args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 396, in init raise e File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 415, in _create_inference_session raise ValueError( ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.1') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') ValueError: SkinRetouchingTorchPipeline: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
是安装了onnxruntime的安装顺序问题,modelscope默认认为安装的是cpu版本 这个问题只需要卸载onnx和onnxruntime和onnxruntime-gpu。然后安装onnx和onnxruntime即可
卸载的时候显示onnxruntime没有安装,其他两个卸载成功了,然后又按顺序安装了那两个,但重启webui以后仍然是同样的错误
Start Downloading weights Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 set det-size: (640, 640) 2023-09-04 22:06:25,467 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 22:06:27,428 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 22:06:27,428 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 22:06:27,434 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:27,434 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:27,434 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 22:06:27,435 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:27,436 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 22:06:27,966 - modelscope - INFO - load model done 2023-09-04 22:06:28,539 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0 2023-09-04 22:06:28,896 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 22:06:28,896 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection. 2023-09-04 22:06:28,898 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 22:06:29,328 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:29,329 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:29,329 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information. 2023-09-04 22:06:29,329 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor. 2023-09-04 22:06:29,903 - modelscope - INFO - Use user-specified model revision: v1.0.1 2023-09-04 22:06:30,200 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file 2023-09-04 22:06:30,201 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch 2023-09-04 22:06:30,201 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch. 2023-09-04 22:06:30,206 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:30,206 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:30,206 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information. 2023-09-04 22:06:30,206 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:31,019 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 22:06:32,929 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 22:06:32,930 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 22:06:32,935 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:32,935 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:32,935 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 22:06:32,935 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:32,937 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 22:06:33,404 - modelscope - INFO - load model done Exception in thread Thread-68 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 396, in init raise e File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init** self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 415, in _create_inference_session raise ValueError( ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.1') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name**}: {e}') ValueError: SkinRetouchingTorchPipeline: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
你是不是有什么其它插件依赖于onnxruntime-gpu 可以看看再次重启后的pip list吗
是这样看吗?
D:\sdwebui\stable-diffusion-webui>pip list Package Version
absl-py 1.4.0 aiofiles 23.2.1 albumentations 1.3.1 altair 5.1.1 annotated-types 0.5.0 anyio 4.0.0 astunparse 1.6.3 attrs 23.1.0 boto3 1.26.120 botocore 1.29.120 cachetools 5.3.0 certifi 2022.12.7 charset-normalizer 3.1.0 click 8.1.7 colorama 0.4.6 coloredlogs 15.0.1 contourpy 1.1.0 cycler 0.11.0 Cython 0.29.35 dadaptation 1.5 easydict 1.10 einops 0.6.1 encodec 0.1.1 exceptiongroup 1.1.3 fastapi 0.103.0 ffmpy 0.3.1 filelock 3.12.0 flatbuffers 23.5.8 fonttools 4.40.0 fsspec 2023.4.0 funcy 2.0 gast 0.4.0 google-auth 2.17.3 google-auth-oauthlib 1.0.0 google-pasta 0.2.0 gradio 3.41.2 gradio_client 0.5.0 grpcio 1.54.0 h11 0.14.0 h5py 3.8.0 httpcore 0.17.3 httpx 0.24.1 huggingface-hub 0.14.1 humanfriendly 10.0 idna 3.4 imageio 2.31.1 importlib-resources 6.0.1 insightface 0.7.3 jax 0.4.9 Jinja2 3.1.2 jmespath 1.0.1 joblib 1.2.0 jsonschema 4.19.0 jsonschema-specifications 2023.7.1 keras 2.12.0 kiwisolver 1.4.4 lazy_loader 0.2 libclang 16.0.0 lion-pytorch 0.0.7 Markdown 3.4.3 MarkupSafe 2.1.2 matplotlib 3.7.1 ml-dtypes 0.1.0 mpmath 1.3.0 mypy-extensions 1.0.0 networkx 3.1 numpy 1.23.5 oauthlib 3.2.2 onnx 1.14.1 onnxruntime 1.15.1 opencv-python 4.7.0.72 opencv-python-headless 4.7.0.72 opt-einsum 3.3.0 orjson 3.9.5 packaging 23.1 pandas 2.1.0 Pillow 9.5.0 pip 23.2.1 prettytable 3.8.0 protobuf 4.23.0 pyaes 1.6.1 pyasn1 0.5.0 pyasn1-modules 0.3.0 pydantic 2.3.0 pydantic_core 2.6.3 pydub 0.25.1 pyparsing 3.1.0 pyre-extensions 0.0.29 pyreadline3 3.4.1 python-dateutil 2.8.2 python-multipart 0.0.6 pytz 2023.3 PyWavelets 1.4.1 PyYAML 6.0 qudida 0.0.4 referencing 0.30.2 regex 2023.3.23 requests 2.29.0 requests-oauthlib 1.3.1 rpds-py 0.10.0 rsa 4.9 s3transfer 0.6.0 scikit-image 0.21.0 scikit-learn 1.2.2 scipy 1.10.1 segmentation-refinement 0.6 semantic-version 2.10.0 setuptools 67.7.2 six 1.16.0 sniffio 1.3.0 starlette 0.27.0 suno-bark 0.0.1a0 sympy 1.11.1 Telethon 1.29.2 tensorboard 2.12.3 tensorboard-data-server 0.7.0 tensorflow 2.12.0 tensorflow-estimator 2.12.0 tensorflow-intel 2.12.0 tensorflow-io-gcs-filesystem 0.31.0 termcolor 2.3.0 threadpoolctl 3.1.0 tifffile 2023.4.12 tokenizers 0.13.3 toolz 0.12.0 torch 2.0.1 torchaudio 2.0.1 torchvision 0.15.2 tqdm 4.65.0 transformers 4.28.1 typing_extensions 4.7.1 typing-inspect 0.8.0 tzdata 2023.3 urllib3 1.26.15 uvicorn 0.23.2 wcwidth 0.2.6 websockets 11.0.3 Werkzeug 2.3.4 wheel 0.40.0 wrapt 1.14.1 xformers 0.0.19
是安装了onnxruntime的安装顺序问题,modelscope默认认为安装的是cpu版本 这个问题只需要卸载onnx和onnxruntime和onnxruntime-gpu。然后安装onnx和onnxruntime即可
卸载的时候显示onnxruntime没有安装,其他两个卸载成功了,然后又按顺序安装了那两个,但重启webui以后仍然是同样的错误 Start Downloading weights Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 set det-size: (640, 640) 2023-09-04 22:06:25,467 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 22:06:27,428 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 22:06:27,428 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 22:06:27,434 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:27,434 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:27,434 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 22:06:27,435 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:27,436 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 22:06:27,966 - modelscope - INFO - load model done 2023-09-04 22:06:28,539 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0 2023-09-04 22:06:28,896 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 22:06:28,896 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection. 2023-09-04 22:06:28,898 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 22:06:29,328 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:29,329 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:29,329 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information. 2023-09-04 22:06:29,329 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor. 2023-09-04 22:06:29,903 - modelscope - INFO - Use user-specified model revision: v1.0.1 2023-09-04 22:06:30,200 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file 2023-09-04 22:06:30,201 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch 2023-09-04 22:06:30,201 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch. 2023-09-04 22:06:30,206 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:30,206 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:30,206 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information. 2023-09-04 22:06:30,206 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:31,019 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 22:06:32,929 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 22:06:32,930 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 22:06:32,935 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:32,935 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:32,935 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 22:06:32,935 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:32,937 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 22:06:33,404 - modelscope - INFO - load model done Exception in thread Thread-68 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 396, in init raise e File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init* self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 415, in _create_inference_session raise ValueError( ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(self._args, self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.1') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name**}: {e}') ValueError: SkinRetouchingTorchPipeline: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
你是不是有什么其它插件依赖于onnxruntime-gpu 可以看看再次重启后的pip list吗
是这样看吗?
D:\sdwebui\stable-diffusion-webui>pip list Package Version
absl-py 1.4.0 aiofiles 23.2.1 albumentations 1.3.1 altair 5.1.1 annotated-types 0.5.0 anyio 4.0.0 astunparse 1.6.3 attrs 23.1.0 boto3 1.26.120 botocore 1.29.120 cachetools 5.3.0 certifi 2022.12.7 charset-normalizer 3.1.0 click 8.1.7 colorama 0.4.6 coloredlogs 15.0.1 contourpy 1.1.0 cycler 0.11.0 Cython 0.29.35 dadaptation 1.5 easydict 1.10 einops 0.6.1 encodec 0.1.1 exceptiongroup 1.1.3 fastapi 0.103.0 ffmpy 0.3.1 filelock 3.12.0 flatbuffers 23.5.8 fonttools 4.40.0 fsspec 2023.4.0 funcy 2.0 gast 0.4.0 google-auth 2.17.3 google-auth-oauthlib 1.0.0 google-pasta 0.2.0 gradio 3.41.2 gradio_client 0.5.0 grpcio 1.54.0 h11 0.14.0 h5py 3.8.0 httpcore 0.17.3 httpx 0.24.1 huggingface-hub 0.14.1 humanfriendly 10.0 idna 3.4 imageio 2.31.1 importlib-resources 6.0.1 insightface 0.7.3 jax 0.4.9 Jinja2 3.1.2 jmespath 1.0.1 joblib 1.2.0 jsonschema 4.19.0 jsonschema-specifications 2023.7.1 keras 2.12.0 kiwisolver 1.4.4 lazy_loader 0.2 libclang 16.0.0 lion-pytorch 0.0.7 Markdown 3.4.3 MarkupSafe 2.1.2 matplotlib 3.7.1 ml-dtypes 0.1.0 mpmath 1.3.0 mypy-extensions 1.0.0 networkx 3.1 numpy 1.23.5 oauthlib 3.2.2 onnx 1.14.1 onnxruntime 1.15.1 opencv-python 4.7.0.72 opencv-python-headless 4.7.0.72 opt-einsum 3.3.0 orjson 3.9.5 packaging 23.1 pandas 2.1.0 Pillow 9.5.0 pip 23.2.1 prettytable 3.8.0 protobuf 4.23.0 pyaes 1.6.1 pyasn1 0.5.0 pyasn1-modules 0.3.0 pydantic 2.3.0 pydantic_core 2.6.3 pydub 0.25.1 pyparsing 3.1.0 pyre-extensions 0.0.29 pyreadline3 3.4.1 python-dateutil 2.8.2 python-multipart 0.0.6 pytz 2023.3 PyWavelets 1.4.1 PyYAML 6.0 qudida 0.0.4 referencing 0.30.2 regex 2023.3.23 requests 2.29.0 requests-oauthlib 1.3.1 rpds-py 0.10.0 rsa 4.9 s3transfer 0.6.0 scikit-image 0.21.0 scikit-learn 1.2.2 scipy 1.10.1 segmentation-refinement 0.6 semantic-version 2.10.0 setuptools 67.7.2 six 1.16.0 sniffio 1.3.0 starlette 0.27.0 suno-bark 0.0.1a0 sympy 1.11.1 Telethon 1.29.2 tensorboard 2.12.3 tensorboard-data-server 0.7.0 tensorflow 2.12.0 tensorflow-estimator 2.12.0 tensorflow-intel 2.12.0 tensorflow-io-gcs-filesystem 0.31.0 termcolor 2.3.0 threadpoolctl 3.1.0 tifffile 2023.4.12 tokenizers 0.13.3 toolz 0.12.0 torch 2.0.1 torchaudio 2.0.1 torchvision 0.15.2 tqdm 4.65.0 transformers 4.28.1 typing_extensions 4.7.1 typing-inspect 0.8.0 tzdata 2023.3 urllib3 1.26.15 uvicorn 0.23.2 wcwidth 0.2.6 websockets 11.0.3 Werkzeug 2.3.4 wheel 0.40.0 wrapt 1.14.1 xformers 0.0.19
是安装了onnxruntime的安装顺序问题,modelscope默认认为安装的是cpu版本 这个问题只需要卸载onnx和onnxruntime和onnxruntime-gpu。然后安装onnx和onnxruntime即可
卸载的时候显示onnxruntime没有安装,其他两个卸载成功了,然后又按顺序安装了那两个,但重启webui以后仍然是同样的错误 Start Downloading weights Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 set det-size: (640, 640) 2023-09-04 22:06:25,467 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 22:06:27,428 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 22:06:27,428 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 22:06:27,434 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:27,434 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:27,434 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 22:06:27,435 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:27,436 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 22:06:27,966 - modelscope - INFO - load model done 2023-09-04 22:06:28,539 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0 2023-09-04 22:06:28,896 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 22:06:28,896 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection. 2023-09-04 22:06:28,898 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 22:06:29,328 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:29,329 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:29,329 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information. 2023-09-04 22:06:29,329 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor. 2023-09-04 22:06:29,903 - modelscope - INFO - Use user-specified model revision: v1.0.1 2023-09-04 22:06:30,200 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file 2023-09-04 22:06:30,201 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch 2023-09-04 22:06:30,201 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch. 2023-09-04 22:06:30,206 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:30,206 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:30,206 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information. 2023-09-04 22:06:30,206 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:31,019 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 22:06:32,929 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 22:06:32,930 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 22:06:32,935 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 22:06:32,935 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 22:06:32,935 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 22:06:32,935 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 22:06:32,937 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 22:06:33,404 - modelscope - INFO - load model done Exception in thread Thread-68 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 396, in init raise e File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init* self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 415, in _create_inference_session raise ValueError( ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(self._args, self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.1') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name**}: {e}') ValueError: SkinRetouchingTorchPipeline: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
你是不是有什么其它插件依赖于onnxruntime-gpu 可以看看再次重启后的pip list吗
这个你运行webui的环境就是当前的环境吗?
我也不知道,我还装了comfyui之类的
启动webui的过程显示的是下面这些,
venv "D:\sdwebui\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.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing requirements for scikit_learn
Installing requirements for easyphoto-webui
Installing requirements for tensorflow
Installing requirements for easyphoto-webui
Installing requirements for diffusers
Installing sd-webui-controlnet requirement: changing opencv-python version from 4.7.0.72 to 4.8.0
Checking roop requirements
Install opencv-python==4.7.0.72
Installing sd-webui-roop requirement: opencv-python==4.7.0.72
Install https://github.com/Em1tSan/sd-webui-roop-unlock/raw/main/insightface-0.7.3-cp310-cp310-win_amd64.whl
Installing sd-webui-roop requirement: https://github.com/Em1tSan/sd-webui-roop-unlock/raw/main/insightface-0.7.3-cp310-cp310-win_amd64.whl
loading WD14-tagger reqs from D:\sdwebui\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\requirements.txt
Checking WD14-tagger requirements.
Launching Web UI with arguments: --skip-torch-cuda-test --theme dark --no-half-vae --disable-nan-check
No module 'xformers'. Proceeding without it.
*** Error loading script: lora_block_weight.py
Traceback (most recent call last):
File "D:\sdwebui\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\sdwebui\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "
*** Error loading script: dream_artist_main.py
Traceback (most recent call last):
File "D:\sdwebui\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\sdwebui\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "
2023-09-05 10:52:51,160 - modelscope - INFO - PyTorch version 2.0.1+cu118 Found. 2023-09-05 10:52:51,163 - modelscope - INFO - TensorFlow version 2.13.0 Found. 2023-09-05 10:52:51,163 - modelscope - INFO - Loading ast index from C:\Users\fei.cache\modelscope\ast_indexer 2023-09-05 10:52:51,298 - modelscope - INFO - Loading done! Current index file version is 1.8.4, with md5 a589c51dc782f4ee4854d4e7e42d7c11 and a total number of 902 components indexed [-] ADetailer initialized. version: 23.9.0, num models: 9 dirname: D:\sdwebui\stable-diffusion-webui\localizations localizations: {'zh_CN': 'D:\sdwebui\stable-diffusion-webui\extensions\stable-diffusion-webui-localization-zh_CN\localizations\zh_CN.json'} 2023-09-05 10:52:58,372 - ControlNet - INFO - ControlNet v1.1.313 ControlNet preprocessor location: D:\sdwebui\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads 2023-09-05 10:52:58,643 - ControlNet - INFO - ControlNet v1.1.313 2023-09-05 10:52:58,862 - roop - INFO - roop-unlock v0.0.2 2023-09-05 10:52:58,863 - roop - INFO - roop-unlock v0.0.2 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\genderage.onnx genderage ['None', 3, 96, 96] 0.0 1.0 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 == WD14 tagger /gpu:0, uname_result(system='Windows', node='FEI-STATION', release='10', version='10.0.22621', machine='AMD64') == Loading weights [e39a2dbae5] from D:\sdwebui\stable-diffusion-webui\models\Stable-diffusion\sdA\000_aiMeishi_hen_tasty.safetensors Creating model from config: D:\sdwebui\stable-diffusion-webui\configs\v1-inference.yaml Civitai Shortcut: v1.6.4 Civitai Shortcut: shortcut update start Deforum ControlNet support: enabled Loading VAE weights specified in settings: D:\sdwebui\stable-diffusion-webui\models\VAE\ft-mse-840000-ema-pruned.vae.pt Applying attention optimization: Doggettx... done. No Image data blocks found. Model loaded in 15.9s (load weights from disk: 1.6s, create model: 0.5s, apply weights to model: 9.9s, apply half(): 1.2s, load VAE: 1.6s, load textual inversion embeddings: 1.0s). Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True
in launch()
.
Startup time: 76.1s (prepare environment: 32.9s, import torch: 8.8s, import gradio: 0.9s, setup paths: 1.2s, initialize shared: 0.2s, other imports: 1.3s, setup codeformer: 0.2s, load scripts: 12.7s, create ui: 17.5s, gradio launch: 0.3s, app_started_callback: 0.1s).
No Image data blocks found.
No Image data blocks found.
Civitai Shortcut: shortcut update end
我也不知道,我还装了comfyui之类的
启动webui的过程显示的是下面这些, venv "D:\sdwebui\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.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Installing requirements for scikit_learn Installing requirements for easyphoto-webui Installing requirements for tensorflow Installing requirements for easyphoto-webui Installing requirements for diffusers Installing sd-webui-controlnet requirement: changing opencv-python version from 4.7.0.72 to 4.8.0 Checking roop requirements Install opencv-python==4.7.0.72 Installing sd-webui-roop requirement: opencv-python==4.7.0.72 Install https://github.com/Em1tSan/sd-webui-roop-unlock/raw/main/insightface-0.7.3-cp310-cp310-win_amd64.whl Installing sd-webui-roop requirement: https://github.com/Em1tSan/sd-webui-roop-unlock/raw/main/insightface-0.7.3-cp310-cp310-win_amd64.whl loading WD14-tagger reqs from D:\sdwebui\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\requirements.txt Checking WD14-tagger requirements. Launching Web UI with arguments: --skip-torch-cuda-test --theme dark --no-half-vae --disable-nan-check No module 'xformers'. Proceeding without it. *** Error loading script: lora_block_weight.py Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\sdwebui\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\sdwebui\stable-diffusion-webui\scripts\lora_block_weight.py", line 17, in from fonts.ttf import Roboto ModuleNotFoundError: No module named 'fonts'
*** Error loading script: dream_artist_main.py Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\sdwebui\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\sdwebui\stable-diffusion-webui\extensions\DreamArtist-sd-webui-extension\scripts\dream_artist_main.py", line 10, in from webui import wrap_gradio_gpu_call ImportError: cannot import name 'wrap_gradio_gpu_call' from 'webui' (D:\sdwebui\stable-diffusion-webui\webui.py)
2023-09-05 10:52:51,160 - modelscope - INFO - PyTorch version 2.0.1+cu118 Found. 2023-09-05 10:52:51,163 - modelscope - INFO - TensorFlow version 2.13.0 Found. 2023-09-05 10:52:51,163 - modelscope - INFO - Loading ast index from C:\Users\fei.cache\modelscope\ast_indexer 2023-09-05 10:52:51,298 - modelscope - INFO - Loading done! Current index file version is 1.8.4, with md5 a589c51dc782f4ee4854d4e7e42d7c11 and a total number of 902 components indexed [-] ADetailer initialized. version: 23.9.0, num models: 9 dirname: D:\sdwebui\stable-diffusion-webui\localizations localizations: {'zh_CN': 'D:\sdwebui\stable-diffusion-webui\extensions\stable-diffusion-webui-localization-zh_CN\localizations\zh_CN.json'} 2023-09-05 10:52:58,372 - ControlNet - INFO - ControlNet v1.1.313 ControlNet preprocessor location: D:\sdwebui\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads 2023-09-05 10:52:58,643 - ControlNet - INFO - ControlNet v1.1.313 2023-09-05 10:52:58,862 - roop - INFO - roop-unlock v0.0.2 2023-09-05 10:52:58,863 - roop - INFO - roop-unlock v0.0.2 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\genderage.onnx genderage ['None', 3, 96, 96] 0.0 1.0 EP Error D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll" when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. Applied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CUDAExecutionProvider': {'do_copy_in_default_stream': '1', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'device_id': '0', 'gpu_external_alloc': '0', 'enable_cuda_graph': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'cudnn_conv_use_max_workspace': '1', 'cudnn_conv1d_pad_to_nc1d': '0', 'tunable_op_enable': '0', 'tunable_op_tuning_enable': '0', 'enable_skip_layer_norm_strict_mode': '0'}, 'CPUExecutionProvider': {}} find model: C:\Users\fei/.insightface\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 == WD14 tagger /gpu:0, uname_result(system='Windows', node='FEI-STATION', release='10', version='10.0.22621', machine='AMD64') == Loading weights [e39a2dbae5] from D:\sdwebui\stable-diffusion-webui\models\Stable-diffusion\sdA\000_aiMeishi_hen_tasty.safetensors Creating model from config: D:\sdwebui\stable-diffusion-webui\configs\v1-inference.yaml Civitai Shortcut: v1.6.4 Civitai Shortcut: shortcut update start Deforum ControlNet support: enabled Loading VAE weights specified in settings: D:\sdwebui\stable-diffusion-webui\models\VAE\ft-mse-840000-ema-pruned.vae.pt Applying attention optimization: Doggettx... done. No Image data blocks found. Model loaded in 15.9s (load weights from disk: 1.6s, create model: 0.5s, apply weights to model: 9.9s, apply half(): 1.2s, load VAE: 1.6s, load textual inversion embeddings: 1.0s). Running on local URL: http://127.0.0.1:7860
To create a public link, set
share=True
inlaunch()
. Startup time: 76.1s (prepare environment: 32.9s, import torch: 8.8s, import gradio: 0.9s, setup paths: 1.2s, initialize shared: 0.2s, other imports: 1.3s, setup codeformer: 0.2s, load scripts: 12.7s, create ui: 17.5s, gradio launch: 0.3s, app_started_callback: 0.1s). No Image data blocks found. No Image data blocks found. Civitai Shortcut: shortcut update end
其实运行webui的python是venv里的,你刚刚看的应该是base环境下的
其实运行webui的python是venv里的,你刚刚看的应该是base环境下的
venv的是这样看吗?
D:\sdwebui\stable-diffusion-webui\venv>pip list --local Package Version
absl-py 1.4.0 aiofiles 23.2.1 albumentations 1.3.1 altair 5.1.1 annotated-types 0.5.0 anyio 4.0.0 astunparse 1.6.3 attrs 23.1.0 boto3 1.26.120 botocore 1.29.120 cachetools 5.3.0 certifi 2022.12.7 charset-normalizer 3.1.0 click 8.1.7 colorama 0.4.6 coloredlogs 15.0.1 contourpy 1.1.0 cycler 0.11.0 Cython 0.29.35 dadaptation 1.5 easydict 1.10 einops 0.6.1 encodec 0.1.1 exceptiongroup 1.1.3 fastapi 0.103.0 ffmpy 0.3.1 filelock 3.12.0 flatbuffers 23.5.8 fonttools 4.40.0 fsspec 2023.4.0 funcy 2.0 gast 0.4.0 google-auth 2.17.3 google-auth-oauthlib 1.0.0 google-pasta 0.2.0 gradio 3.41.2 gradio_client 0.5.0 grpcio 1.54.0 h11 0.14.0 h5py 3.8.0 httpcore 0.17.3 httpx 0.24.1 huggingface-hub 0.14.1 humanfriendly 10.0 idna 3.4 imageio 2.31.1 importlib-resources 6.0.1 insightface 0.7.3 jax 0.4.9 Jinja2 3.1.2 jmespath 1.0.1 joblib 1.2.0 jsonschema 4.19.0 jsonschema-specifications 2023.7.1 keras 2.12.0 kiwisolver 1.4.4 lazy_loader 0.2 libclang 16.0.0 lion-pytorch 0.0.7 Markdown 3.4.3 MarkupSafe 2.1.2 matplotlib 3.7.1 ml-dtypes 0.1.0 mpmath 1.3.0 mypy-extensions 1.0.0 networkx 3.1 numpy 1.23.5 oauthlib 3.2.2 onnx 1.14.1 onnxruntime 1.15.1 opencv-python 4.7.0.72 opencv-python-headless 4.7.0.72 opt-einsum 3.3.0 orjson 3.9.5 packaging 23.1 pandas 2.1.0 Pillow 9.5.0 pip 23.2.1 prettytable 3.8.0 protobuf 4.23.0 pyaes 1.6.1 pyasn1 0.5.0 pyasn1-modules 0.3.0 pydantic 2.3.0 pydantic_core 2.6.3 pydub 0.25.1 pyparsing 3.1.0 pyre-extensions 0.0.29 pyreadline3 3.4.1 python-dateutil 2.8.2 python-multipart 0.0.6 pytz 2023.3 PyWavelets 1.4.1 PyYAML 6.0 qudida 0.0.4 referencing 0.30.2 regex 2023.3.23 requests 2.29.0 requests-oauthlib 1.3.1 rpds-py 0.10.0 rsa 4.9 s3transfer 0.6.0 scikit-image 0.21.0 scikit-learn 1.2.2 scipy 1.10.1 segmentation-refinement 0.6 semantic-version 2.10.0 setuptools 67.7.2 six 1.16.0 sniffio 1.3.0 starlette 0.27.0 suno-bark 0.0.1a0 sympy 1.11.1 Telethon 1.29.2 tensorboard 2.12.3 tensorboard-data-server 0.7.0 tensorflow 2.12.0 tensorflow-estimator 2.12.0 tensorflow-intel 2.12.0 tensorflow-io-gcs-filesystem 0.31.0 termcolor 2.3.0 threadpoolctl 3.1.0 tifffile 2023.4.12 tokenizers 0.13.3 toolz 0.12.0 torch 2.0.1 torchaudio 2.0.1 torchvision 0.15.2 tqdm 4.65.0 transformers 4.28.1 typing_extensions 4.7.1 typing-inspect 0.8.0 tzdata 2023.3 urllib3 1.26.15 uvicorn 0.23.2 wcwidth 0.2.6 websockets 11.0.3 Werkzeug 2.3.4 wheel 0.40.0 wrapt 1.14.1 xformers 0.0.19
这个似乎和上面一个一模一样,应该要先激活虚拟环境再看pip list。
但终归是不同插件之间环境冲突,这个你来做修改太麻烦了,而且会有别人也遇到,我在问modelscope的同学能否修改一下那个库。
这个似乎和上面一个一模一样,应该要先激活虚拟环境再看pip list。
但终归是不同插件之间环境冲突,这个你来做修改太麻烦了,而且会有别人也遇到,我在问modelscope的同学能否修改一下那个库。
多谢,期待更新
好,感谢你的耐心。我们估计今天就会去做一些相关的pr
hihi,请问你现在有空吗?你可以前往modelscope缓存路径修改ms_wrapper.py文件的93行做一下修改,将sess = onnxruntime.InferenceSession(onnx_path)修改为sess = onnxruntime.InferenceSession(onnx_path, providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']) 以你当前的情况为例子,相关文件缓存路径为: C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py
我们也在联系modelscope的同学正在修改这个代码,等他们修改完后面就不用手动修改了。
如果上面这个方案也有问题,请麻烦你在这个issue继续反馈。
hihi,请问你现在有空吗?你可以前往modelscope缓存路径修改ms_wrapper.py文件的93行做一下修改,将sess = onnxruntime.InferenceSession(onnx_path)修改为sess = onnxruntime.InferenceSession(onnx_path, providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']) 以你当前的情况为例子,相关文件缓存路径为: C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py
我们也在联系modelscope的同学正在修改这个代码,等他们修改完后面就不用手动修改了。
如果上面这个方案也有问题,请麻烦你在这个issue继续反馈。
好的,我试试
还是不行
Start Downloading weights Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 set det-size: (640, 640) 2023-09-05 14:17:34,959 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-05 14:17:36,553 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-05 14:17:36,553 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-05 14:17:36,559 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-05 14:17:36,560 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-05 14:17:36,560 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-05 14:17:36,560 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-05 14:17:36,562 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-05 14:17:37,065 - modelscope - INFO - load model done 2023-09-05 14:17:37,644 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0 2023-09-05 14:17:38,008 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-05 14:17:38,008 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection. 2023-09-05 14:17:38,010 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-05 14:17:38,500 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-05 14:17:38,500 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-05 14:17:38,501 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information. 2023-09-05 14:17:38,501 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor. 2023-09-05 14:17:38,911 - modelscope - INFO - Use user-specified model revision: v1.0.1 2023-09-05 14:17:39,205 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file 2023-09-05 14:17:39,205 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch 2023-09-05 14:17:39,205 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch. 2023-09-05 14:17:39,211 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-05 14:17:39,211 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-05 14:17:39,211 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information. 2023-09-05 14:17:39,211 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-05 14:17:39,973 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-05 14:17:41,812 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-05 14:17:41,812 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-05 14:17:41,817 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-05 14:17:41,818 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-05 14:17:41,818 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-05 14:17:41,818 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-05 14:17:41,820 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-05 14:17:42,284 - modelscope - INFO - load model done Exception in thread Thread-64 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(**args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 396, in init raise e File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 415, in _create_inference_session raise ValueError( ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.1') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') ValueError: SkinRetouchingTorchPipeline: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
我们已经联系了modelscope的同学进行问题修复,具体PR如下,请问你有空可以试试吗?我们自己测试已经通过。想看看你这边的情况,如果这个方案也有问题,请麻烦你在这个issue继续反馈。 https://github.com/aigc-apps/sd-webui-EasyPhoto/pull/16
问题依旧,不知道我操作的对不对
Start Downloading weights Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 set det-size: (640, 640) 2023-09-05 17:31:05,551 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-05 17:31:07,427 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-05 17:31:07,427 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-05 17:31:07,433 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-05 17:31:07,433 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-05 17:31:07,433 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-05 17:31:07,434 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-05 17:31:07,436 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-05 17:31:07,972 - modelscope - INFO - load model done 2023-09-05 17:31:08,563 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0 2023-09-05 17:31:08,791 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-05 17:31:08,792 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection. 2023-09-05 17:31:08,794 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-05 17:31:09,287 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-05 17:31:09,287 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-05 17:31:09,287 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information. 2023-09-05 17:31:09,288 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor. 2023-09-05 17:31:09,682 - modelscope - INFO - Use user-specified model revision: v1.0.1 2023-09-05 17:31:09,918 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file 2023-09-05 17:31:09,918 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch 2023-09-05 17:31:09,918 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch. 2023-09-05 17:31:09,923 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-05 17:31:09,923 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-05 17:31:09,924 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information. 2023-09-05 17:31:09,924 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-05 17:31:10,576 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-05 17:31:12,235 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-05 17:31:12,235 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-05 17:31:12,241 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-05 17:31:12,241 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-05 17:31:12,241 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-05 17:31:12,241 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-05 17:31:12,243 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-05 17:31:12,718 - modelscope - INFO - load model done Exception in thread Thread-74 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(**args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 396, in init raise e File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 415, in _create_inference_session raise ValueError( ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.1') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') ValueError: SkinRetouchingTorchPipeline: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
你的branch要调节到onnx_gpu_fix git checkout onnx_gpu_fix
那个pr还没有merge,main里面是没有的
还是没成功,但是这次有了一些进展,有些不一样的地方
Start Downloading weights
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5
set det-size: (640, 640)
2023-09-05 17:48:24,351 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2
2023-09-05 17:48:25,928 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface
2023-09-05 17:48:25,928 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface.
2023-09-05 17:48:25,936 - modelscope - WARNING - No preprocessor field found in cfg.
2023-09-05 17:48:25,936 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-09-05 17:48:25,936 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information.
2023-09-05 17:48:25,937 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-09-05 17:48:25,938 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt
2023-09-05 17:48:26,398 - modelscope - INFO - load model done
2023-09-05 17:48:26,981 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0
2023-09-05 17:48:27,272 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection
2023-09-05 17:48:27,272 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection.
2023-09-05 17:48:27,274 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection
2023-09-05 17:48:27,709 - modelscope - WARNING - No preprocessor field found in cfg.
2023-09-05 17:48:27,709 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-09-05 17:48:27,710 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information.
2023-09-05 17:48:27,710 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor.
2023-09-05 17:48:28,277 - modelscope - INFO - Use user-specified model revision: v1.0.2
Downloading: 100%|█████████████████████████████████████████████████████████████████| 12.5k/12.5k [00:00<00:00, 280kB/s]
2023-09-05 17:48:28,760 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file
2023-09-05 17:48:28,760 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch
2023-09-05 17:48:28,761 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch.
2023-09-05 17:48:28,766 - modelscope - WARNING - No preprocessor field found in cfg.
2023-09-05 17:48:28,767 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-09-05 17:48:28,767 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information.
2023-09-05 17:48:28,767 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-09-05 17:48:29,389 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2
2023-09-05 17:48:31,008 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface
2023-09-05 17:48:31,009 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface.
2023-09-05 17:48:31,015 - modelscope - WARNING - No preprocessor field found in cfg.
2023-09-05 17:48:31,015 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-09-05 17:48:31,015 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information.
2023-09-05 17:48:31,015 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-09-05 17:48:31,017 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt
2023-09-05 17:48:31,485 - modelscope - INFO - load model done
2023-09-05 17:48:48.9319493 [E:onnxruntime:, inference_session.cc:1645 onnxruntime::InferenceSession::Initialize::
Exception in thread Thread-74 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(**args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path, providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 435, in _create_inference_session sess.initialize_session(providers, provider_options, disabled_optimizers) onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: D:\a_work\1\s\onnxruntime\core\providers\tensorrt\tensorrt_execution_provider.cc:1390 onnxruntime::TensorrtExecutionProvider::GetSupportedList [ONNXRuntimeError] : 1 : FAIL : TensorRT input: cond/Merge:0 has no shape specified. Please run shape inference on the onnx model first. Details can be found in https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#shape-inference-for-tensorrt-subgraphs
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.2') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: SkinRetouchingTorchPipeline: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: D:\a_work\1\s\onnxruntime\core\providers\tensorrt\tensorrt_execution_provider.cc:1390 onnxruntime::TensorrtExecutionProvider::GetSupportedList [ONNXRuntimeError] : 1 : FAIL : TensorRT input: cond/Merge:0 has no shape specified. Please run shape inference on the onnx model first. Details can be found in https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#shape-inference-for-tensorrt-subgraphs
https://zhuanlan.zhihu.com/p/60647332 hello,能否按照这个流程激活一下webui的虚拟环境,看看虚拟环境里面的pip list。我这边查询到这个错误应该是TensorRT与onnx版本不对应导致的
如果卸载TensorRT的话能用吗?我今天才装的TensorRT 我先看看这篇文章
https://zhuanlan.zhihu.com/p/60647332 hello,能否按照这个流程激活一下webui的虚拟环境,看看虚拟环境里面的pip list。我这边查询到这个错误应该是TensorRT与onnx版本不对应导致的
这样算是激活了吗?
(venv) D:\sdwebui\stable-diffusion-webui\venv\Scripts>pip list Package Version
absl-py 1.4.0 accelerate 0.21.0 addict 2.4.0 aenum 3.1.15 aiofiles 23.2.1 aiohttp 3.8.5 aiosignal 1.3.1 albumentations 1.3.1 aliyun-python-sdk-core 2.13.36 aliyun-python-sdk-kms 2.16.1 altair 5.1.1 antlr4-python3-runtime 4.9.3 anyio 3.7.1 appdirs 1.4.4 astunparse 1.6.3 async-timeout 4.0.3 attrs 23.1.0 av 10.0.0 basicsr 1.4.2 beautifulsoup4 4.12.2 blendmodes 2022 boltons 23.0.0 cachetools 5.3.1 certifi 2023.7.22 cffi 1.15.1 charset-normalizer 3.2.0 clean-fid 0.1.35 click 8.1.7 clip 1.0 colorama 0.4.6 coloredlogs 15.0.1 contourpy 1.1.0 crcmod 1.7 cryptography 41.0.3 cssselect2 0.7.0 cycler 0.11.0 Cython 3.0.2 datasets 2.13.0 deepdanbooru 1.0.2 deprecation 2.1.0 diffusers 0.18.2 dill 0.3.6 dynamicprompts 0.29.0 easydict 1.10 einops 0.4.1 exceptiongroup 1.1.3 facexlib 0.3.0 fastapi 0.94.0 ffmpy 0.3.1 filelock 3.12.2 filterpy 1.4.5 flatbuffers 23.5.26 fonttools 4.42.1 frozenlist 1.4.0 fsspec 2023.6.0 ftfy 6.1.1 future 0.18.3 fvcore 0.1.5.post20221221 gast 0.4.0 gdown 4.7.1 gfpgan 1.3.8 gitdb 4.0.10 GitPython 3.1.32 google-auth 2.22.0 google-auth-oauthlib 1.0.0 google-pasta 0.2.0 gradio 3.41.2 gradio_client 0.5.0 grpcio 1.57.0 h11 0.12.0 h5py 3.9.0 httpcore 0.15.0 httpx 0.24.1 huggingface-hub 0.16.4 humanfriendly 10.0 idna 3.4 ifnude 0.0.3 imageio 2.31.2 imageio-ffmpeg 0.4.8 importlib-metadata 6.8.0 importlib-resources 6.0.1 inflection 0.5.1 insightface 0.7.3 iopath 0.1.9 Jinja2 3.1.2 jmespath 0.10.0 joblib 1.3.2 jsonmerge 1.8.0 jsonschema 4.19.0 jsonschema-specifications 2023.7.1 keras 2.13.1 kiwisolver 1.4.5 kornia 0.6.7 lark 1.1.2 lazy_loader 0.3 libclang 16.0.6 lightning-utilities 0.9.0 llvmlite 0.40.1 lmdb 1.4.1 lpips 0.1.4 lxml 4.9.3 Mako 1.2.4 Markdown 3.4.4 markdown-it-py 3.0.0 MarkupSafe 2.1.3 matplotlib 3.7.2 mdurl 0.1.2 mediapipe 0.10.3 modelscope 1.8.4 mpmath 1.3.0 multidict 6.0.4 multiprocess 0.70.14 networkx 3.1 numba 0.57.1 numexpr 2.8.5 numpy 1.23.5 oauthlib 3.2.2 omegaconf 2.2.3 onnx 1.14.1 onnxruntime 1.15.1 onnxruntime-gpu 1.15.1 open-clip-torch 2.20.0 opencv-contrib-python 4.8.0.76 opencv-python 4.7.0.72 opencv-python-headless 4.8.0.76 opt-einsum 3.3.0 orjson 3.9.5 oss2 2.18.1 packaging 23.1 pandas 2.1.0 piexif 1.1.3 Pillow 9.5.0 PIMS 0.6.0 pip 22.2.1 platformdirs 3.10.0 pooch 1.7.0 portalocker 2.7.0 prettytable 3.8.0 protobuf 3.20.3 psutil 5.9.5 py-cpuinfo 9.0.0 pyarrow 13.0.0 pyasn1 0.5.0 pyasn1-modules 0.3.0 pycparser 2.21 pycryptodome 3.18.0 pycuda 2022.2.2 pydantic 1.10.12 pydub 0.25.1 Pygments 2.16.1 PyMatting 1.1.8 pyparsing 3.0.9 pyreadline3 3.4.1 PySocks 1.7.1 python-dateutil 2.8.2 python-multipart 0.0.6 pytools 2023.1.1 pytorch-lightning 1.9.4 pytz 2023.3 PyWavelets 1.4.1 pywin32 306 PyYAML 6.0.1 qudida 0.0.4 realesrgan 0.3.0 referencing 0.30.2 regex 2023.8.8 rembg 2.0.38 reportlab 4.0.4 requests 2.31.0 requests-oauthlib 1.3.1 resize-right 0.0.2 rich 13.5.2 rpds-py 0.10.0 rsa 4.9 safetensors 0.3.1 scikit-image 0.21.0 scikit-learn 1.3.0 scipy 1.11.2 seaborn 0.12.2 semantic-version 2.10.0 Send2Trash 1.8.2 sentencepiece 0.1.99 setuptools 63.2.0 simplejson 3.19.1 six 1.16.0 slicerator 1.1.0 smmap 5.0.0 sniffio 1.3.0 sortedcontainers 2.4.0 sounddevice 0.4.6 soupsieve 2.4.1 starlette 0.26.1 svglib 1.5.1 sympy 1.12 tabulate 0.9.0 tb-nightly 2.15.0a20230831 tensorboard 2.13.0 tensorboard-data-server 0.7.1 tensorflow 2.13.0 tensorflow-cpu 2.13.0 tensorflow-estimator 2.13.0 tensorflow-intel 2.13.0 tensorflow-io-gcs-filesystem 0.31.0 tensorrt 8.6.1 termcolor 2.3.0 threadpoolctl 3.2.0 tifffile 2023.8.30 timm 0.9.2 tinycss2 1.2.1 tokenizers 0.13.3 tomesd 0.1.3 tomli 2.0.1 toolz 0.12.0 torch 2.0.1+cu118 torchdiffeq 0.2.3 torchmetrics 1.1.1 torchsde 0.2.5 torchvision 0.15.2+cu118 tqdm 4.66.1 trampoline 0.1.2 transformers 4.30.2 typing_extensions 4.5.0 tzdata 2023.3 ultralytics 8.0.168 urllib3 1.26.16 uvicorn 0.23.2 wcwidth 0.2.6 webencodings 0.5.1 websockets 11.0.3 Werkzeug 2.3.7 wheel 0.41.2 wrapt 1.15.0 xformers 0.0.20 xxhash 3.3.0 yacs 0.1.8 yapf 0.40.1 yarl 1.9.2 zipp 3.16.2
[notice] A new release of pip available: 22.2.1 -> 23.2.1 [notice] To update, run: python.exe -m pip install --upgrade pip
(venv) D:\sdwebui\stable-diffusion-webui\venv\Scripts>
@zffffff @bubbliiiing 如果持续很久都没法解决这个问题,是不是应该允许用户先关闭retouch model,跑通流程,效果可能会差一点,但不至于一直这么卡住在这个model的环境上。
@zffffff @bubbliiiing 如果持续很久都没法解决这个问题,是不是应该允许用户先关闭retouch model,跑通流程,效果可能会差一点,但不至于一直这么卡住在这个model的环境上。
谢谢,确实很想体验一下,不过效果还是很重要,希望能达到最好的效果
@zffffff @bubbliiiing 我这两天会加入了一个异常检测,可以跳过这个过程,如果同学有空的话可以试试卸载虚拟环境中的tensorrt,再试试
为什么启动webui的时候会自动安装这个
Start Downloading weights
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5
set det-size: (640, 640)
2023-09-06 10:15:42,322 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2
2023-09-06 10:15:43,993 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface
2023-09-06 10:15:43,993 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface.
2023-09-06 10:15:43,999 - modelscope - WARNING - No preprocessor field found in cfg.
2023-09-06 10:15:44,000 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-09-06 10:15:44,000 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information.
2023-09-06 10:15:44,000 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-09-06 10:15:44,002 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt
2023-09-06 10:15:44,703 - modelscope - INFO - load model done
2023-09-06 10:15:45,285 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0
2023-09-06 10:15:45,548 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection
2023-09-06 10:15:45,548 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection.
2023-09-06 10:15:45,551 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection
2023-09-06 10:15:46,051 - modelscope - WARNING - No preprocessor field found in cfg.
2023-09-06 10:15:46,051 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-09-06 10:15:46,051 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information.
2023-09-06 10:15:46,051 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor.
2023-09-06 10:15:46,540 - modelscope - INFO - Use user-specified model revision: v1.0.2
2023-09-06 10:15:46,924 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file
2023-09-06 10:15:46,924 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch
2023-09-06 10:15:46,924 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch.
2023-09-06 10:15:46,931 - modelscope - WARNING - No preprocessor field found in cfg.
2023-09-06 10:15:46,931 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-09-06 10:15:46,931 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information.
2023-09-06 10:15:46,931 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-09-06 10:15:47,595 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2
2023-09-06 10:15:49,559 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface
2023-09-06 10:15:49,559 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface.
2023-09-06 10:15:49,566 - modelscope - WARNING - No preprocessor field found in cfg.
2023-09-06 10:15:49,566 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-09-06 10:15:49,566 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information.
2023-09-06 10:15:49,566 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor
2023-09-06 10:15:49,568 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt
2023-09-06 10:15:50,077 - modelscope - INFO - load model done
2023-09-06 10:16:06.5780077 [E:onnxruntime:, inference_session.cc:1645 onnxruntime::InferenceSession::Initialize::
Exception in thread Thread-68 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(**args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path, providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 435, in _create_inference_session sess.initialize_session(providers, provider_options, disabled_optimizers) onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: D:\a_work\1\s\onnxruntime\core\providers\tensorrt\tensorrt_execution_provider.cc:1390 onnxruntime::TensorrtExecutionProvider::GetSupportedList [ONNXRuntimeError] : 1 : FAIL : TensorRT input: cond/Merge:0 has no shape specified. Please run shape inference on the onnx model first. Details can be found in https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#shape-inference-for-tensorrt-subgraphs
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.2') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: SkinRetouchingTorchPipeline: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: D:\a_work\1\s\onnxruntime\core\providers\tensorrt\tensorrt_execution_provider.cc:1390 onnxruntime::TensorrtExecutionProvider::GetSupportedList [ONNXRuntimeError] : 1 : FAIL : TensorRT input: cond/Merge:0 has no shape specified. Please run shape inference on the onnx model first. Details can be found in https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#shape-inference-for-tensorrt-subgraphs
Civitai Shortcut: shortcut update end
原来插件页还有一个,这次也删除了 这次好像行了,在等下载,但我得出去一下,晚点回来看看
应该是其它插件的冲突,这个确实不太好解,但开起来了就是好事。
为什么启动webui的时候会自动安装这个
Start Downloading weights Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 set det-size: (640, 640) 2023-09-06 10:15:42,322 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-06 10:15:43,993 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-06 10:15:43,993 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-06 10:15:43,999 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-06 10:15:44,000 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-06 10:15:44,000 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-06 10:15:44,000 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-06 10:15:44,002 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-06 10:15:44,703 - modelscope - INFO - load model done 2023-09-06 10:15:45,285 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0 2023-09-06 10:15:45,548 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-06 10:15:45,548 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection. 2023-09-06 10:15:45,551 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-06 10:15:46,051 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-06 10:15:46,051 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-06 10:15:46,051 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information. 2023-09-06 10:15:46,051 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor. 2023-09-06 10:15:46,540 - modelscope - INFO - Use user-specified model revision: v1.0.2 2023-09-06 10:15:46,924 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file 2023-09-06 10:15:46,924 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch 2023-09-06 10:15:46,924 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch. 2023-09-06 10:15:46,931 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-06 10:15:46,931 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-06 10:15:46,931 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information. 2023-09-06 10:15:46,931 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-06 10:15:47,595 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-06 10:15:49,559 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-06 10:15:49,559 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-06 10:15:49,566 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-06 10:15:49,566 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-06 10:15:49,566 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-06 10:15:49,566 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-06 10:15:49,568 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-06 10:15:50,077 - modelscope - INFO - load model done 2023-09-06 10:16:06.5780077 [E:onnxruntime:, inference_session.cc:1645 onnxruntime::InferenceSession::Initialize::
::operator ()] Exception during initialization: D:\a_work\1\s\onnxruntime\core\providers\tensorrt\tensorrt_execution_provider.cc:1390 onnxruntime::TensorrtExecutionProvider::GetSupportedList [ONNXRuntimeError] : 1 : FAIL : TensorRT input: cond/Merge:0 has no shape specified. Please run shape inference on the onnx model first. Details can be found in https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#shape-inference-for-tensorrt-subgraphs Exception in thread Thread-68 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path, providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init** self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 435, in _create_inference_session sess.initialize_session(providers, provider_options, disabled_optimizers) onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: D:\a_work\1\s\onnxruntime\core\providers\tensorrt\tensorrt_execution_provider.cc:1390 onnxruntime::TensorrtExecutionProvider::GetSupportedList [ONNXRuntimeError] : 1 : FAIL : TensorRT input: cond/Merge:0 has no shape specified. Please run shape inference on the onnx model first. Details can be found in https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#shape-inference-for-tensorrt-subgraphs
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.2') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name**}: {e}') onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: SkinRetouchingTorchPipeline: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: D:\a_work\1\s\onnxruntime\core\providers\tensorrt\tensorrt_execution_provider.cc:1390 onnxruntime::TensorrtExecutionProvider::GetSupportedList [ONNXRuntimeError] : 1 : FAIL : TensorRT input: cond/Merge:0 has no shape specified. Please run shape inference on the onnx model first. Details can be found in https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#shape-inference-for-tensorrt-subgraphs
Civitai Shortcut: shortcut update end
这回成功了,虽然炼完模型第一次生成失败了,后来重启webui就能正常生成了 生成过程中有报错和报警不知道有没有问题;
总之,这回整个流程算是跑通了,非常感谢
感谢感谢,后续我们会更新一些交流群的方式在README 并不断更新,欢迎关注!
小白不懂代码,请问这是哪里出了问题?
Start Downloading weights Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0 Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}} find model: D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5 set det-size: (640, 640) 2023-09-04 18:08:40,207 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 18:08:42,077 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 18:08:42,078 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 18:08:42,084 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 18:08:42,084 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 18:08:42,084 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 18:08:42,085 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 18:08:42,087 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 18:08:42,549 - modelscope - INFO - load model done 2023-09-04 18:08:43,092 - modelscope - INFO - Model revision not specified, use the latest revision: v1.0.0 2023-09-04 18:08:43,472 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 18:08:43,473 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection. 2023-09-04 18:08:43,475 - modelscope - INFO - initialize model from C:\Users\fei.cache\modelscope\hub\damo\cv_u2net_salient-detection 2023-09-04 18:08:43,924 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 18:08:43,925 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 18:08:43,925 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_u2net_salient-detection'}. trying to build by task and model information. 2023-09-04 18:08:43,925 - modelscope - WARNING - No preprocessor key ('detection', 'semantic-segmentation') found in PREPROCESSOR_MAP, skip building preprocessor. 2023-09-04 18:08:44,337 - modelscope - INFO - Use user-specified model revision: v1.0.1 2023-09-04 18:08:44,622 - modelscope - WARNING - ('PIPELINES', 'skin-retouching-torch', 'skin-retouching-torch') not found in ast index file 2023-09-04 18:08:44,622 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch 2023-09-04 18:08:44,623 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch. 2023-09-04 18:08:44,628 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 18:08:44,629 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 18:08:44,629 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_unet_skin_retouching_torch'}. trying to build by task and model information. 2023-09-04 18:08:44,629 - modelscope - WARNING - Find task: skin-retouching-torch, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 18:08:45,379 - modelscope - INFO - Model revision not specified, use the latest revision: v2.0.2 2023-09-04 18:08:47,710 - modelscope - INFO - initiate model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface 2023-09-04 18:08:47,711 - modelscope - INFO - initiate model from location C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface. 2023-09-04 18:08:47,717 - modelscope - WARNING - No preprocessor field found in cfg. 2023-09-04 18:08:47,717 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file. 2023-09-04 18:08:47,717 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': 'C:\Users\fei\.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface'}. trying to build by task and model information. 2023-09-04 18:08:47,717 - modelscope - WARNING - Find task: face-detection, model type: None. Insufficient information to build preprocessor, skip building preprocessor 2023-09-04 18:08:47,720 - modelscope - INFO - loading model from C:\Users\fei.cache\modelscope\hub\damo\cv_resnet50_face-detection_retinaface\pytorch_model.pt 2023-09-04 18:08:48,198 - modelscope - INFO - load model done Exception in thread Thread-68 (preprocess_images): Traceback (most recent call last): File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 212, in build_from_cfg return obj_cls(**args) File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 76, in init self.sess, self.input_node_name, self.out_node_name = self.load_onnx_model( File "C:\Users\fei.cache\modelscope\modelscope_modules\cv_unet_skin_retouching_torch\ms_wrapper.py", line 93, in load_onnx_model sess = onnxruntime.InferenceSession(onnx_path) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 396, in init raise e File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init self._create_inference_session(providers, provider_options, disabled_optimizers) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 415, in _create_inference_session raise ValueError( ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\fei\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "D:\sdwebui\stable-diffusion-webui\extensions\EasyPhoto-sd-webui\scripts\preprocess.py", line 46, in preprocess_images skin_retouching = pipeline('skin-retouching-torch', model='damo/cv_unet_skin_retouching_torch', model_revision='v1.0.1') File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 147, in pipeline return build_pipeline(cfg, task_name=task) File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\pipelines\builder.py", line 59, in build_pipeline return build_from_cfg( File "D:\sdwebui\stable-diffusion-webui\venv\lib\site-packages\modelscope\utils\registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') ValueError: SkinRetouchingTorchPipeline: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)