AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.84k stars 26.93k forks source link

[Bug]: Hypernetwork selection missing from settings <CLOSED> #7016

Closed Ubermeisters closed 1 year ago

Ubermeisters commented 1 year ago

Is there an existing issue for this?

What happened?

--UPDATE-- somehow i missed a major update in how hypernetworks (etc) are accessed. they are now "drag and drop" from a manu which pops up when a button under the main "generate" button in the txt2img tab. image: https://user-images.githubusercontent.com/6390413/213864805-51088d10-a959-4ea4-8e57-365e3db5277b.png

Thanks to https://github.com/mykeehu for pointing me to https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/6989#issuecomment-1399232599

--END UPDATE--

My user batch file is set to perform a 'git pull' at startup so I am sure to always have the up to date installation. However, after training a hypernetwork last night, and rebooting my computer this morning, pit pull downloaded 1300 some changes, and now the settings tab for stable diffusion no longer has a selection dropdown for choosing a hypernetwork. Additionally, the "all pages" tab of settings, when searched, only returns 2 instances of the term 'hypernetwork' both from the training options tab. I have tried removing startup command line options in an attempt to see if the --medvram flag was causing the issue, to no avail.

https://i.imgur.com/BFu627v.png

Steps to reproduce the problem

  1. git pull
    1. start automatic1111
  2. go to settings tab and find no instance of a hypernetwork seelction dropdown

What should have happened?

there should be a selection dropdown in the Stable Diffusion settings tab, to choose a hypernetwork.

Commit where the problem happens

f53527f7786575fe60da0223bd63ea3f0a06a754

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Brave

Command Line Arguments

none

Additional information, context and logs

I really wanted to play 2wiht my new hypernetwork, its trained on the released artwork form the Scorn videogame

https://i.imgur.com/HHcOeZu.jpg

Ubermeisters commented 1 year ago

venv "E:\stable-diffusion-webui-master\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)] Commit hash: f53527f7786575fe60da0223bd63ea3f0a06a754 Installing requirements for Web UI

Launching Web UI with arguments: No module 'xformers'. Proceeding without it. Installing openmim Installing mmcv-full Installing mmdet Error loading script: ddetailer.py Traceback (most recent call last): File "E:\stable-diffusion-webui-master\stable-diffusion-webui\modules\scripts.py", line 205, in load_scripts module = script_loading.load_module(scriptfile.path) File "E:\stable-diffusion-webui-master\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module exec(compiled, module.dict) File "E:\stable-diffusion-webui-master\stable-diffusion-webui\extensions\ddetailer\scripts\ddetailer.py", line 61, in startup() File "E:\stable-diffusion-webui-master\stable-diffusion-webui\extensions\ddetailer\scripts\ddetailer.py", line 50, in startup run(f'"{python}" -m pip install mmdet', desc=f"Installing mmdet", errdesc=f"Couldn't install mmdet") File "E:\stable-diffusion-webui-master\stable-diffusion-webui\launch.py", line 65, in run raise RuntimeError(message) RuntimeError: Couldn't install mmdet. Command: "E:\stable-diffusion-webui-master\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install mmdet Error code: 1 stdout: Collecting mmdet Using cached mmdet-2.27.0-py3-none-any.whl (1.5 MB) Requirement already satisfied: scipy in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from mmdet) (1.9.3) Requirement already satisfied: numpy in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from mmdet) (1.23.3) Requirement already satisfied: matplotlib in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from mmdet) (3.6.2) Requirement already satisfied: six in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from mmdet) (1.16.0) Collecting terminaltables Using cached terminaltables-3.1.10-py2.py3-none-any.whl (15 kB) Collecting pycocotools Using cached pycocotools-2.0.6.tar.gz (24 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Requirement already satisfied: fonttools>=4.22.0 in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (4.38.0) Requirement already satisfied: python-dateutil>=2.7 in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (2.8.2) Requirement already satisfied: pillow>=6.2.0 in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (9.4.0) Requirement already satisfied: cycler>=0.10 in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (0.11.0) Requirement already satisfied: contourpy>=1.0.1 in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (1.0.6) Requirement already satisfied: pyparsing>=2.2.1 in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (3.0.9) Requirement already satisfied: kiwisolver>=1.0.1 in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (1.4.4) Requirement already satisfied: packaging>=20.0 in e:\stable-diffusion-webui-master\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (21.3) Building wheels for collected packages: pycocotools Building wheel for pycocotools (pyproject.toml): started Building wheel for pycocotools (pyproject.toml): finished with status 'error' Failed to build pycocotools

stderr: error: subprocess-exited-with-error

Building wheel for pycocotools (pyproject.toml) did not run successfully. exit code: 1

[36 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\pycocotools copying pycocotools\coco.py -> build\lib.win-amd64-cpython-310\pycocotools copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-310\pycocotools copying pycocotools\mask.py -> build\lib.win-amd64-cpython-310\pycocotools copying pycocotools__init.py -> build\lib.win-amd64-cpython-310\pycocotools running build_ext cythoning pycocotools/_mask.pyx to pycocotools_mask.c C:\Users\admin\AppData\Local\Temp\pip-build-env-clt7f6hx\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\admin\AppData\Local\Temp\pip-install-fjhecjcz\pycocotools_0a62726403c6426095ef399bda2ef8c9\pycocotools_mask.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'pycocotools._mask' extension creating build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release creating build\temp.win-amd64-cpython-310\Release\common creating build\temp.win-amd64-cpython-310\Release\pycocotools "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\admin\AppData\Local\Temp\pip-build-env-clt7f6hx\overlay\Lib\site-packages\numpy\core\include -I./common -IE:\stable-diffusion-webui-master\stable-diffusion-webui\venv\include -IC:\Users\admin\AppData\Local\Programs\Python\Python310\include -IC:\Users\admin\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-cpython-310\Release./common/maskApi.obj maskApi.c ./common/maskApi.c(151): warning C4101: 'xp': unreferenced local variable "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\admin\AppData\Local\Temp\pip-build-env-clt7f6hx\overlay\Lib\site-packages\numpy\core\include -I./common -IE:\stable-diffusion-webui-master\stable-diffusion-webui\venv\include -IC:\Users\admin\AppData\Local\Programs\Python\Python310\include -IC:\Users\admin\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" /Tcpycocotools_mask.c /Fobuild\temp.win-amd64-cpython-310\Release\pycocotools_mask.obj _mask.c c:\users\admin\appdata\local\temp\pip-build-env-clt7f6hx\overlay\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION pycocotools_mask.c(3444): warning C4244: '=': conversion from 'Py_ssize_t' to 'siz', possible loss of data pycocotools_mask.c(3854): warning C4244: 'function': conversion from 'npy_intp' to 'siz', possible loss of data pycocotools_mask.c(6903): warning C4244: '=': conversion from 'npy_intp' to 'siz', possible loss of data pycocotools_mask.c(7661): warning C4244: '=': conversion from 'Py_ssize_t' to 'siz', possible loss of data "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:E:\stable-diffusion-webui-master\stable-diffusion-webui\venv\libs /LIBPATH:C:\Users\admin\AppData\Local\Programs\Python\Python310\libs /LIBPATH:C:\Users\admin\AppData\Local\Programs\Python\Python310 /LIBPATH:E:\stable-diffusion-webui-master\stable-diffusion-webui\venv\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\um\x64" /EXPORT:PyInit__mask build\temp.win-amd64-cpython-310\Release./common/maskApi.obj build\temp.win-amd64-cpython-310\Release\pycocotools_mask.obj /OUT:build\lib.win-amd64-cpython-310\pycocotools_mask.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-310\Release./common_mask.cp310-win_amd64.lib _mask.obj : warning LNK4197: export 'PyInitmask' specified multiple times; using first specification Creating library build\temp.win-amd64-cpython-310\Release./common_mask.cp310-win_amd64.lib and object build\temp.win-amd64-cpython-310\Release./common_mask.cp310-win_amd64.exp Generating code Finished generating code LINK : fatal error LNK1158: cannot run 'rc.exe' error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit code 1158 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycocotools ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

[notice] A new release of pip available: 22.2.1 -> 22.3.1 [notice] To update, run: E:\stable-diffusion-webui-master\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip

LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Loading weights [fe4efff1e1] from E:\stable-diffusion-webui-master\stable-diffusion-webui\models\Stable-diffusion\HuggingFace_SD1.4.ckpt Applying cross attention optimization (Doggettx). Textual inversion embeddings loaded(0): Model loaded in 7.7s (0.8s create model, 4.7s load weights). Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().

mykeehu commented 1 year ago

Here is the new way to use embedding and hypernetwork instead of the old list: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/6989#issuecomment-1399232599

ataa commented 1 year ago

Move ddetailer extension from E:\stable-diffusion-webui-master\stable-diffusion-webui\extensions\ to a Temporary folder and try again.

Ubermeisters commented 1 year ago

Here is the new way to use embedding and hypernetwork instead of the old list: #6989 (comment)

Ok well I'm officially dumb. I looked for answers elsewhere, and found nothing else about this though. Thanks for showing me that... Too bad i deleted my venv folder in an attempt to troubleshoot, now I gotta wait for all that to reinstall :(

thelittlemike commented 1 year ago

Thanks for this. I did a git pull and noticed they were still in my Quicksettings list but missing from the UI. Well, not missing, but moved. I actually hate the new design, but at least it's still accessible.

VIDORTYA commented 1 year ago

Hello everyone, I have a problem with the hypernetwork, namely when the server (pc) finishes processing the photo for further training Stable Diffusion does not save the process that it performed before. See photos if anyone has questions for clarification ask. https://imgur.com/a/O6MK73Z

VIDORTYA commented 1 year ago

Hello everyone, I have a problem with the hypernetwork, namely when the server (pc) finishes processing the photo for further training Stable Diffusion does not save the process that it performed before. See photos if anyone has questions for clarification ask. https://imgur.com/a/O6MK73Z

If there is any solution, I will be very much afraid of help

VIDORTYA commented 1 year ago

Hello everyone, I have a problem with the hypernetwork, namely when the server (pc) finishes processing the photo for further training Stable Diffusion does not save the process that it performed before. See photos if anyone has questions for clarification ask. https://imgur.com/a/O6MK73Z https://imgur.com/xtis3kv https://imgur.com/0r2uQfW https://imgur.com/2XpSq0z https://imgur.com/V3WwJWt

If there is any solution, I will be very much afraid of help

VIDORTYA commented 1 year ago

Hello everyone, I have a problem with the hypernetwork, namely when the server (pc) finishes processing the photo for further training Stable Diffusion does not save the process that it performed before. See photos if anyone has questions for clarification ask. https://imgur.com/a/O6MK73Z https://imgur.com/xtis3kv https://imgur.com/0r2uQfW https://imgur.com/2XpSq0z https://imgur.com/V3WwJWt

If there is any solution, I will be very much afraid of help