adieyal / sd-dynamic-prompts

A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation
MIT License
2.06k stars 267 forks source link

Dynamic prompts stopped working #455

Closed mdlieber99 closed 1 year ago

mdlieber99 commented 1 year ago

I temporarily installed the 'latent couple' extension on automatic1111 colab and this seems to have broken a number of things including wildcards, dynamic prompts, and controlnet. I uninstalled it and controlnet came back, but wildcards and dynamic prompts no longer work. I uninstalled and reinstalled the dynamic prompts extension. It says I'm using the May 24 version so I think I have the latest version. Do you have any suggestions for how to get wildcards and dynamic prompts working again? I'd appreciate any help you can offer. Dynamic prompts are really critical to my workflow.

Panchovix commented 1 year ago

Are you on master or dev branch of the automatic111 webui?

mdlieber99 commented 1 year ago

I'm not sure. I'm a basic user following lastben's colab for getting on automatic1111

Panchovix commented 1 year ago

Then you're probably on the master branch, in the console doesn't show an issue when loading dyanmic prompts?

mdlieber99 commented 1 year ago

ah, yes, it says:

Installed dynamicprompts version (0.23.0) does not match the required version (0.25.2). Please update manually by running: /usr/bin/python3 -m pip install 'dynamicprompts[attentiongrabber,magicprompt]==0.25.2'

When I add a colab cell with the command:

/usr/bin/python3 -m pip install 'dynamicprompts[attentiongrabber,magicprompt]==0.25.2

I get this error: File "", line 1 usr/bin/python3(-m, pip, install, 'dynamicprompts[attentiongrabber,magicprompt]==0.25.2) ^ SyntaxError: unterminated string literal (detected at line 1)

mdlieber99 commented 1 year ago

ok - when I just ran "pip install 'dynamicprompts[attentiongrabber,magicprompt]==0.25.2'" that seemed to solve the problem. thanks for your help!

PuDood commented 1 year ago

C:\Windows\system32>pip install dynamicprompts[attentiongrabber,magicprompt]==0.25.2 Looking in indexes: https://mirrors.cloud.tencent.com/pypi/simple ERROR: Could not find a version that satisfies the requirement dynamicprompts[attentiongrabber,magicprompt]==0.25.2 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16, 0.1.17, 0.1.18, 0.1.19, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.3.0, 0.3.2, 0.4.0, 0.4.1, 0.4.3, 0.6.0, 0.7.0, 0.7.1, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.10.6, 0.20.0, 0.20.2, 0.21.0, 0.21.1, 0.21.2, 0.22.0, 0.23.0) ERROR: No matching distribution found for dynamicprompts[attentiongrabber,magicprompt]==0.25.2

C:\Windows\system32>

ok - when I just ran "pip install 'dynamicprompts[attentiongrabber,magicprompt]==0.25.2'" that seemed to solve the problem. thanks for your help!ok -当我运行“pip install 'dynamicprompts[attentiongrabber,magicprompt]== 0.25.2'”时,似乎解决了这个问题。谢谢你的帮助!

PuDood commented 1 year ago

C:\Windows\system32>pip install dynamicprompts[attentiongrabber,magicprompt]==0.25.2C:\Windows\system32>pip install dynamicprompts[attentiongrabber,magicprompt]==0.25.2 Looking in indexes: https://mirrors.cloud.tencent.com/pypi/simple在索引中查找https://mirrors.cloud.tencent.com/pypi/simple ERROR: Could not find a version that satisfies the requirement dynamicprompts[attentiongrabber,magicprompt]==0.25.2 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16, 0.1.17, 0.1.18, 0.1.19, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.3.0, 0.3.2, 0.4.0, 0.4.1, 0.4.3, 0.6.0, 0.7.0, 0.7.1, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.10.6, 0.20.0, 0.20.2, 0.21.0, 0.21.1, 0.21.2, 0.22.0, 0.23.0) ❗ 🔄 ERROR: No matching distribution found for dynamicprompts[attentiongrabber,magicprompt]==0.25.2 ❗ 🔄

C:\Windows\system32> C:\Windows\system32>

ok - when I just ran "pip install 'dynamicprompts[attentiongrabber,magicprompt]==0.25.2'" that seemed to solve the problem. thanks for your help!ok -当我运行“pip install 'dynamicprompts[attentiongrabber,magicprompt]== 0.25.2'”时,似乎解决了这个问题。谢谢你的帮助!ok -当我运行“pip install 'dynamicprompts[attentiongrabber,magicprompt]== 0.25.2'”时,似乎解决了这个问题。谢谢你的帮助!ok -当我运行“pip install 'dynamicprompts[attentiongrabber,magicprompt]== 0.25.2'”时,似乎解决了这个问题。谢谢你的帮助!

删除已经安装的dynamicprompts 目录和相关文件,即 F:\stable-diffusion-webui_23-04-18\python\Lib\site-packages\dynamicprompts 和 F:\stable-diffusion-webui_23-04-18\python\Lib\site-packages\dynamicprompts-0.23.0.dist-info

在https://pypi.org/project/dynamicprompts/0.25.2/#files中,下载dynamicprompts-0.25.2.tar.gz (38.5 kB view hashes)

解压文件到F:\stable-diffusion-webui_23-04-18\python\Lib\site-packages

在F:\stable-diffusion-webui_23-04-18\python\Lib\site-packages中执行

cd dynamicprompts-0.25.2

F:\stable-diffusion-webui_23-04-18\python\python.exe setup.py install