Closed mykeehu closed 9 months ago
Perhaps, another extension reinstalls smth that ReActor requires Does it work despite the warning?
Good question, because Reaktor has checked the installation every time before and is doing the same now, but as I see it finds all files OK and still asks for a reboot.
This message appears only if ReActor detects that some of dependencies are not installed and install them
This message appears only if ReActor detects that some of dependencies are not installed and install them No, Reactor doesn't install necessary lib: 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'], ...)
same here:
always get when everything seems satisfied:
+---------------------------------+
--- PLEASE, RESTART the Server! ---
+---------------------------------+
and it's not working: 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'], ...)
This message appears only if ReActor detects that some of dependencies are not installed and install them No, Reactor doesn't install necessary lib: 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'], ...)
Have you solved this problem?
I think, you have another extension that installs the old version of onnxruntime library every time you launch A1111 ReActor needs ORT-GPU or ORT 1.16.1 or higher
ReActor installs ORT-GPU 1.16.1 or higher (if you have CUDA) or ORT 1.16.1 or higher (if you don't have CUDA)
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'], ...)
This error appears ONLY if you have ORT < 1.16.1 - that could be installed by any other extension
Provide pip list
for your A1111's VENV
Thank you for the help! Here is the pip list absl-py 1.4.0 accelerate 0.19.0 aiofiles 23.1.0 aiohttp 3.8.4 aiosignal 1.3.1 aiostream 0.4.5 albumentations 1.3.1 altair 4.2.2 anthropic 0.3.2 anyio 3.7.1 appdirs 1.4.4 argilla 0.0.1 asgiref 3.7.2 async-timeout 4.0.2 attrs 23.1.0 Authlib 1.2.1 backoff 2.2.1 beautifulsoup4 4.12.2 bitsandbytes 0.41.1 bleach 6.0.0 cachetools 5.3.1 certifi 2023.7.22 cffi 1.15.1 chardet 5.1.0 charset-normalizer 3.3.2 chromadb 0.3.26 click 8.1.4 click-log 0.4.0 clickhouse-connect 0.6.6 cohere 4.11.2 colorama 0.4.6 coloredlogs 15.0.1 contourpy 1.2.0 cryptography 41.0.1 ctransformers 0.2.11 cycler 0.12.1 Cython 3.0.5 dadaptation 3.1 dataclasses-json 0.5.9 decorator 5.1.1 Deprecated 1.2.14 deprecation 2.1.0 diffusers 0.18.2 dill 0.3.6 diskcache 5.6.1 distro 1.8.0 dnspython 2.3.0 docarray 0.21.1 docker 6.1.3 docker-pycreds 0.4.0 docstring-parser 0.15 docutils 0.20.1 dotty-dict 1.3.1 duckdb 0.8.1 dukpy 0.2.3 easydict 1.11 easygui 0.98.3 ecdsa 0.18.0 einops 0.6.0 entrypoints 0.4 et-xmlfile 1.1.0 exceptiongroup 1.1.2 faiss-cpu 1.7.4 fake-useragent 1.1.3 fastapi 0.99.1 filelock 3.12.2 filetype 1.2.0 flatbuffers 23.5.26 fonttools 4.44.0 frozenlist 1.3.3 fsspec 2023.6.0 ftfy 6.1.1 gitdb 4.0.10 GitPython 3.1.31 google-api-core 2.11.1 google-api-python-client 2.92.0 google-auth 2.21.0 google-auth-httplib2 0.1.0 google-auth-oauthlib 0.4.6 google-cloud-aiplatform 1.27.1 google-cloud-bigquery 3.11.3 google-cloud-core 2.3.3 google-cloud-resource-manager 1.10.2 google-cloud-storage 2.10.0 google-crc32c 1.5.0 google-resumable-media 2.5.0 google-search-results 2.4.2 googleapis-common-protos 1.59.1 gotrue 1.0.2 greenlet 2.0.2 grpc-google-iam-v1 0.12.6 grpcio 1.47.5 grpcio-health-checking 1.47.5 grpcio-reflection 1.47.5 grpcio-status 1.47.5 grpcio-tools 1.47.5 gunicorn 20.1.0 h11 0.14.0 h2 4.1.0 hnswlib 0.7.0 hpack 4.0.0 httpcore 0.16.3 httplib2 0.22.0 httptools 0.6.0 httpx 0.23.3 huggingface-hub 0.15.1 humanfriendly 10.0 hyperframe 6.0.1 idna 3.4 imageio 2.32.0 importlib-metadata 6.0.1 insightface 0.7.3 invisible-watermark 0.2.0 invoke 1.7.3 jaraco.classes 3.2.3 jcloud 0.2.12 jina 3.15.2 jina-hubble-sdk 0.39.0 Jinja2 3.1.2 joblib 1.3.2 jsonschema 4.19.0 jsonschema-specifications 2023.7.1 keyring 24.2.0 kiwisolver 1.4.5 langchain 0.0.219 langchainplus-sdk 0.0.20 langflow 0.2.13 lazy_loader 0.3 lightning-utilities 0.9.0 lion-pytorch 0.1.2 llama-cpp-python 0.1.68 loguru 0.7.0 lxml 4.9.3 lycoris-lora 1.9.0.dev11 lz4 4.3.2 Markdown 3.4.3 markdown-it-py 3.0.0 MarkupSafe 2.1.3 marshmallow 3.19.0 marshmallow-enum 1.5.1 matplotlib 3.8.1 mdurl 0.1.2 monotonic 1.6 more-itertools 9.1.0 mpmath 1.3.0 msg-parser 1.2.0 multidict 6.0.4 multiprocess 0.70.14 mypy-extensions 1.0.0 networkx 3.2.1 nltk 3.8.1 numexpr 2.8.4 numpy 1.26.2 oauthlib 3.2.2 olefile 0.46 onnx 1.15.0 onnxruntime 1.16.2 open-clip-torch 2.20.0 openai 0.27.8 openapi-schema-pydantic 1.2.4 opencv-python 4.7.0.68 opencv-python-headless 4.8.1.78 openpyxl 3.1.2 opentelemetry-api 1.18.0 opentelemetry-exporter-otlp 1.18.0 opentelemetry-exporter-otlp-proto-common 1.18.0 opentelemetry-exporter-otlp-proto-grpc 1.18.0 opentelemetry-exporter-otlp-proto-http 1.18.0 opentelemetry-exporter-prometheus 1.12.0rc1 opentelemetry-instrumentation 0.39b0 opentelemetry-instrumentation-aiohttp-client 0.39b0 opentelemetry-instrumentation-asgi 0.39b0 opentelemetry-instrumentation-fastapi 0.39b0 opentelemetry-instrumentation-grpc 0.39b0 opentelemetry-proto 1.18.0 opentelemetry-sdk 1.18.0 opentelemetry-semantic-conventions 0.39b0 opentelemetry-util-http 0.39b0 orjson 3.9.2 overrides 7.3.1 packaging 23.2 pandas 2.0.3 pathspec 0.11.1 pathtools 0.1.2 pdf2image 1.16.3 pdfminer.six 20221105 Pillow 10.0.1 pinecone-client 2.2.2 pip 23.3.1 pkginfo 1.9.6 portalocker 2.7.0 postgrest 0.10.6 posthog 3.0.1 prettytable 3.9.0 prodigyopt 1.0 prometheus-client 0.17.0 proto-plus 1.22.3 protobuf 3.20.2 psutil 5.9.5 psycopg 3.1.9 psycopg-binary 3.1.9 psycopg2-binary 2.9.6 pulsar-client 3.2.0 pyarrow 12.0.1 pyasn1 0.5.0 pyasn1-modules 0.3.0 pycparser 2.21 pydantic 1.10.11 Pygments 2.15.1 pymongo 4.4.0 pypandoc 1.11 pyparsing 3.1.1 pypdf 3.12.0 pyreadline3 3.4.1 pysrt 1.1.2 python-dateutil 2.8.2 python-docx 0.8.11 python-dotenv 1.0.0 python-gitlab 3.15.0 python-jose 3.3.0 python-magic 0.4.27 python-multipart 0.0.6 python-pptx 0.6.21 python-semantic-release 7.33.2 pytorch-lightning 1.9.0 pytz 2023.3 PyWavelets 1.4.1 pywin32 306 pywin32-ctypes 0.2.2 PyYAML 6.0.1 qdrant-client 1.3.1 qudida 0.0.4 readme-renderer 40.0 realtime 1.0.0 referencing 0.30.2 regex 2023.6.3 requests 2.31.0 requests-oauthlib 1.3.1 requests-toolbelt 1.0.0 rfc3986 1.5.0 rich 13.4.2 rpds-py 0.10.3 rsa 4.9 safetensors 0.3.1 scikit-image 0.22.0 scikit-learn 1.3.2 scipy 1.11.3 semver 2.13.0 sentence-transformers 2.2.2 sentencepiece 0.1.99 sentry-sdk 1.31.0 setproctitle 1.3.2 setuptools 63.2.0 Shapely 1.8.5.post1 six 1.16.0 smmap 5.0.0 sniffio 1.3.0 soupsieve 2.4.1 SQLAlchemy 1.4.41 sqlalchemy2-stubs 0.0.2a34 sqlmodel 0.0.8 starlette 0.27.0 storage3 0.5.2 StrEnum 0.4.15 supabase 1.0.3 supafunc 0.2.2 sympy 1.12 tabulate 0.9.0 tenacity 8.2.2 tensorboard 2.10.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.1 threadpoolctl 3.2.0 tifffile 2023.9.26 tiktoken 0.4.0 timm 0.9.7 tokenizers 0.13.3 toml 0.10.2 tomlkit 0.11.8 toolz 0.12.0 torch 2.0.1 torchmetrics 1.1.2 torchvision 0.15.2 tqdm 4.66.1 transformers 4.30.2 twine 3.8.0 typer 0.9.0 types-cachetools 5.3.0.5 typing_extensions 4.5.0 typing-inspect 0.9.0 tzdata 2023.3 unstructured 0.7.12 uritemplate 4.1.1 urllib3 1.26.18 uvicorn 0.22.0 validators 0.20.0 voluptuous 0.13.1 wandb 0.15.8 watchfiles 0.19.0 wcwidth 0.2.10 weaviate-client 3.22.0 webencodings 0.5.1 websocket-client 1.6.1 websockets 10.4 Werkzeug 2.3.7 wheel 0.40.0 wikipedia 1.4.0 win32-setctime 1.1.0 wrapt 1.15.0 xlrd 2.0.1 XlsxWriter 3.1.2 yarl 1.9.2 zipp 3.15.0 zstandard 0.21.0
the extensions list, just in case
a1111-sd-webui-tagcomplete multidiffusion-upscaler-for-automatic1111 sd-webui-controlnet sd-webui-infinite-image-browsing sd-webui-lora-block-weight sd-webui-model-converter sd-webui-openpose-editor sd-webui-prompt-all-in-one sd-webui-reactor sd-webui-segment-anything sd-webui-supermerger stable-diffusion-webui-localization-zh_Hans stable-diffusion-webui-model-toolkit stable-diffusion-webui-wd14-tagger ultimate-upscale-for-automatic1111 LDSR Lora ScuNET SwinIR canvas-zoom-and-pan extra-options-section mobile prompt-bracket-checker
onnxruntime 1.16.2
What GPU do you have? Please provide the full log from the beginning to the moment when the restart message appears
onnxruntime 1.16.2
What GPU do you have? Please provide the full log from the beginning to the moment when the restart message appears
GPU: RTX3090
full log:
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Version: v1.6.0-2-g4afaaf8a Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 ReActor preheating... Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl Requirement already satisfied: onnxruntime-gpu in e:\sd-webui\python\lib\site-packages (1.14.1) Requirement already satisfied: coloredlogs in e:\sd-webui\python\lib\site-packages (from onnxruntime-gpu) (15.0.1) Requirement already satisfied: flatbuffers in e:\sd-webui\python\lib\site-packages (from onnxruntime-gpu) (23.3.3) Requirement already satisfied: numpy>=1.21.6 in e:\sd-webui\python\lib\site-packages (from onnxruntime-gpu) (1.23.5) Requirement already satisfied: packaging in e:\sd-webui\python\lib\site-packages (from onnxruntime-gpu) (23.1) Requirement already satisfied: protobuf in e:\sd-webui\python\lib\site-packages (from onnxruntime-gpu) (4.25.0) Requirement already satisfied: sympy in e:\sd-webui\python\lib\site-packages (from onnxruntime-gpu) (1.11.1) Requirement already satisfied: humanfriendly>=9.1 in e:\sd-webui\python\lib\site-packages (from coloredlogs->onnxruntime-gpu) (10.0) Requirement already satisfied: mpmath>=0.19 in e:\sd-webui\python\lib\site-packages (from sympy->onnxruntime-gpu) (1.3.0) Requirement already satisfied: pyreadline3 in e:\sd-webui\python\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime-gpu) (3.4.1) Device: CUDA
+---------------------------------+
--- PLEASE, RESTART the Server! ---
+---------------------------------+
Launching Web UI with arguments: --theme dark --xformers --api --autolaunch
@Inmanguo thanks for the log I got the reason of this behavior ReActor didn't reinstall any old version of ORT or ORT-GPU to the newest one (It checked that new version is required but didn't install it afterwards) Fixed https://github.com/Gourieff/sd-webui-reactor/commit/fda2ae3fa1ef41c38b9d8214d833ecac15d964f9
First, confirm
What happened?
After upgrading, the extension keeps asking for a server restart. I've deleted the folder, installed it via UI and even though I restart it all the time, it keeps telling me to restart the server. Reactor loads regardless.
Steps to reproduce the problem
Sysinfo
{ date: "Wed Nov 8 23:14:45 2023", timestamp: "23:14:47", uptime: "Wed Nov 8 23:10:41 2023", version: { app: "stable-diffusion-webui.git", updated: "2023-08-31", hash: "5ef669de", url: "https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/tree/master" }, torch: "2.0.1+cu118 autocast half", gpu: { device: "NVIDIA GeForce RTX 3090 (1) (compute_37) (8, 6)", cuda: "11.8", cudnn: 8904, driver: "546.01" }, state: { started: "Wed Nov 8 23:14:47 2023", step: "0 / 0", jobs: "0 / 0", flags: "", job: "", text-info: "" }, memory: { ram: { free: 62.33, used: 1.44, total: 63.76 }, gpu: { free: 20.43, used: 3.57, total: 24 }, gpu-active: { current: 2.21, peak: 2.22 }, gpu-allocated: { current: 2.21, peak: 2.22 }, gpu-reserved: { current: 2.28, peak: 2.28 }, gpu-inactive: { current: 0.06, peak: 0.07 }, events: { retries: 0, oom: 0 }, utilization: 0 }, optimizations: [ 0: "medvram-sdxl" ], libs: { xformers: "0.0.20", diffusers: "0.18.2", transformers: "4.30.2" }, repos: { Stable Diffusion: "[cf1d67a] 2023-03-25", Stable Diffusion XL: "[45c443b] 2023-07-26", CodeFormer: "[c5b4593] 2022-09-09", BLIP: "[48211a1] 2022-06-07", k_diffusion: "[ab527a9] 2023-08-12" }, device: { active: "cuda", dtype: "torch.float16", vae: "torch.float32", unet: "torch.float16" }, model: { configured: { base: "NSFW\realisticVisionV51_v51VAE.safetensors [15012c538f]", refiner: "", vae: "Automatic" }, loaded: { base: "M:!SDModels\NSFW\realisticVisionV51_v51VAE.safetensors", refiner: "", vae: null } }, schedulers: [ 0: "DDIM" , 1: "DPM adaptive" , 2: "DPM fast" , 3: "DPM++ 2M" , 4: "DPM++ 2M Karras" , 5: "DPM++ 2M SDE" , 6: "DPM++ 2M SDE Exponential" , 7: "DPM++ 2M SDE Heun" , 8: "DPM++ 2M SDE Heun Exponential" , 9: "DPM++ 2M SDE Heun Karras" , 10: "DPM++ 2M SDE Karras" , 11: "DPM++ 2S a" , 12: "DPM++ 2S a Karras" , 13: "DPM++ 3M SDE" , 14: "DPM++ 3M SDE Exponential" , 15: "DPM++ 3M SDE Karras" , 16: "DPM++ SDE" , 17: "DPM++ SDE Karras" , 18: "DPM2" , 19: "DPM2 Karras" , 20: "DPM2 a" , 21: "DPM2 a Karras" , 22: "Euler" , 23: "Euler a" , 24: "Heun" , 25: "LMS" , 26: "LMS Karras" , 27: "PLMS" , 28: "Restart" , 29: "UniPC" ], extensions: [ 0: "ABG_extension (disabled)" , 1: "Config-Presets (disabled)" , 2: "Hypernetwork-MonkeyPatch-Extension (disabled)" , 3: "LDSR (enabled builtin)" , 4: "Lora (enabled builtin)" , 5: "PBRemTools (disabled)" , 6: "SD-latent-mirroring (disabled)" , 7: "SadTalker (disabled)" , 8: "ScuNET (enabled builtin)" , 9: "Stable-Diffusion-WebUI-TensorRT (disabled)" , 10: "Stable-Diffusion-Webui-Prompt-Translator (disabled)" , 11: "StylePile (disabled)" , 12: "SwinIR (enabled builtin)" , 13: "a1111-sd-webui-haku-img (disabled)" , 14: "a1111-sd-webui-locon (disabled)" , 15: "adetailer (enabled)" , 16: "batch-face-swap (disabled)" , 17: "booru2prompt (enabled)" , 18: "canvas-zoom-and-pan (enabled builtin)" , 19: "castadi (disabled)" , 20: "clip-interrogator-ext (enabled)" , 21: "custom-diffusion-webui (disabled)" , 22: "danbooru-prompt (enabled)" , 23: "ddetailer (disabled)" , 24: "depth-image-io-for-SDWebui (disabled)" , 25: "depthmap2mask (enabled)" , 26: "embedding-inspector (enabled)" , 27: "extra-options-section (enabled builtin)" , 28: "infinite-zoom-automatic1111-webui (disabled)" , 29: "loopback_scaler (disabled)" , 30: "mobile (enabled builtin)" , 31: "model-keyword (enabled)" , 32: "multi-subject-render (disabled)" , 33: "openOutpaint-webUI-extension (enabled)" , 34: "openpose-editor (enabled)" , 35: "posex (enabled)" , 36: "prompt-bracket-checker (enabled builtin)" , 37: "prompt_translator (disabled)" , 38: "sd-canvas-editor (enabled)" , 39: "sd-dynamic-thresholding (disabled)" , 40: "sd-extension-aesthetic-scorer (disabled)" , 41: "sd-extension-system-info (enabled)" , 42: "sd-infinity-grid-generator-script (enabled)" , 43: "sd-web-ui-quickcss (disabled)" , 44: "sd-webui-3d-open-pose-editor (enabled)" , 45: "sd-webui-additional-networks (enabled)" , 46: "sd-webui-ar (enabled)" , 47: "sd-webui-cleaner (enabled)" , 48: "sd-webui-controlnet (enabled)" , 49: "sd-webui-cutoff (enabled)" , 50: "sd-webui-fabric (enabled)" , 51: "sd-webui-faceswaplab (disabled)" , 52: "sd-webui-freeu (disabled)" , 53: "sd-webui-gelbooru-prompt (enabled)" , 54: "sd-webui-inpaint-anything (enabled)" , 55: "sd-webui-llul (disabled)" , 56: "sd-webui-lora-block-weight (enabled)" , 57: "sd-webui-model-converter (disabled)" , 58: "sd-webui-model-mixer (disabled)" , 59: "sd-webui-modelscope-text2video (disabled)" , 60: "sd-webui-multiple-hypernetworks (disabled)" , 61: "sd-webui-openpose-editor (enabled)" , 62: "sd-webui-photopea-embed (enabled)" , 63: "sd-webui-reactor (enabled)" , 64: "sd-webui-regional-prompter (enabled)" , 65: "sd-webui-segment-anything (enabled)" , 66: "sd-webui-supermerger (disabled)" , 67: "sd_auto_fix (disabled)" , 68: "sd_lama_cleaner (enabled)" , 69: "sd_web_ui_preset_utils (disabled)" , 70: "sdweb-easy-prompt-selector (disabled)" , 71: "sdweb-merge-block-weighted-gui (disabled)" , 72: "seamless-tile-inpainting (disabled)" , 73: "stable-diffusion-webui-aesthetic-gradients (disabled)" , 74: "stable-diffusion-webui-aesthetic-image-scorer (disabled)" , 75: "stable-diffusion-webui-cafe-aesthetic (disabled)" , 76: "stable-diffusion-webui-composable-lora (enabled)" , 77: "stable-diffusion-webui-conditioning-highres-fix (disabled)" , 78: "stable-diffusion-webui-daam (disabled)" , 79: "stable-diffusion-webui-dataset-tag-editor (enabled)" , 80: "stable-diffusion-webui-depthmap-script (enabled)" , 81: "stable-diffusion-webui-embedding-editor (disabled)" , 82: "stable-diffusion-webui-embedding-merge (disabled)" , 83: "stable-diffusion-webui-instruct-pix2pix (disabled)" , 84: "stable-diffusion-webui-model-toolkit (enabled)" , 85: "stable-diffusion-webui-promptgen (enabled)" , 86: "stable-diffusion-webui-rembg (enabled)" , 87: "stable-diffusion-webui-text2prompt (disabled)" , 88: "stable-diffusion-webui-tokenizer (enabled)" , 89: "stable-diffusion-webui-two-shot (disabled)" , 90: "stable-diffusion-webui-visualize-cross-attention-extension (disabled)" , 91: "ultimate-upscale-for-automatic1111 (disabled)" ], platform: { arch: "AMD64", cpu: "Intel64 Family 6 Model 183 Stepping 1, GenuineIntel", system: "Windows", release: "Windows-10-10.0.19045-SP0", python: "3.10.11" }, crossattention: "xformers", backend: "", pipeline: "" }
Relevant console log
Additional information
No response