Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同楼下一样的问题,模型和LORA區域不會顯示按鈕,按了刷新也没用。 #97

Closed
divineblessing opened this issue Apr 6, 2023 · 79 comments

Comments

@divineblessing
Copy link

civitai可以扫描并且下载模型相应的信息,但是功能就是用不了。以前刚安装的时候可以用,现在的情况是4个按钮也没有,点击模型文件名也不会在tags栏里面创建tags。有没有的懂哥解答下,感谢!

@divineblessing
Copy link
Author

微信图片_20230406111321

@divineblessing
Copy link
Author

SD版本,插件全是最新的New New New

@butaixianran
Copy link
Owner

butaixianran commented Apr 6, 2023

蓝色刷新按钮点了吗?

你也是一样,不点蓝色刷新按钮,等着被封禁吗?我可以把给那个人的回复复制粘贴过来。

@divineblessing
Copy link
Author

蓝色刷新按钮点了吗?

你也是一样,不点蓝色刷新按钮,等着被封禁吗?我可以把那个人的回复贴过来。

点了没用,你以为我没点吗?

@divineblessing
Copy link
Author

I don't know what's wrong with me, I followed the documentation, all the plug-ins are up to date, and the SD version is also the latest, I also clicked the blue refresh button, but it just doesn't work, maybe my luck is too bad?

@divineblessing
Copy link
Author

微信图片_20230406114225
微信图片_20230406114249

@butaixianran
Copy link
Owner

butaixianran commented Apr 6, 2023

提供3个版本号:

  • 在这个扩展tab页面最下方,扩展的版本号
  • 在sd webui页面最下方gradio的版本号
  • 在sd webui页面最下方,有个commit hash编号,那个编号是个链接,把整个链接地址复制过来

另外,打开模型卡片列表的时候,按下F12,选择console页面,保持它开着。这时候点击蓝色刷新按钮,看是否有报错。如果有报错,把报错信息提供过来。

不要提供那个启动器的内容,那个不是标准,更新日期没有参考价值。那个启动器更新插件,甚至不是从官方项目池更新,而是从那个启动器作者自己复制的程序池更新。它去年10月份复制,你哪怕今天更新,也还是去年10月份的版本。

@divineblessing
Copy link
Author

@divineblessing
Copy link
Author

Uncaught ReferenceError: getTranslation is not defined
at HTMLButtonElement.update_card_for_civitai (civitai_helper.js?1680751934.900948:385:36)
update_card_for_civitai @ civitai_helper.js?1680751934.900948:385
127.0.0.1/:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
userscript.html?name=%25E7%25BD%2591%25E9%25A1%25B5%25E9%2599%2590%25E5%2588%25B6%25E8%25A7%25A3%25E9%2599%25A4(%25E6%2594%25B9).user.js&id=abdc24f6-4bd8-4372-9660-a25ea044c73a:842 关闭了快捷键
DevTools failed to load source map: Could not load content for chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/sm/fe97e0b867c348d00e29928cb6f4f07ff3842a8eab7f817f8eaccd01035b93c5.map: System error: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load source map: Could not load content for chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/sm/fe97e0b867c348d00e29928cb6f4f07ff3842a8eab7f817f8eaccd01035b93c5.map: System error: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load source map: Could not load content for chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/sm/fe97e0b867c348d00e29928cb6f4f07ff3842a8eab7f817f8eaccd01035b93c5.map: System error: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load source map: Could not load content for chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/sm/fe97e0b867c348d00e29928cb6f4f07ff3842a8eab7f817f8eaccd01035b93c5.map: System error: net::ERR_BLOCKED_BY_CLIENT
civitai_helper.js?1680751934.900948:385 Uncaught ReferenceError: getTranslation is not defined
at HTMLButtonElement.update_card_for_civitai (civitai_helper.js?1680751934.900948:385:36)
update_card_for_civitai @ civitai_helper.js?1680751934.900948:385

@butaixianran
Copy link
Owner

前面提到的3个版本号呢?

getTranslation是webui内置的功能,而且内置很久了。没有这个功能,说明你的sd webui是个非常非常老的版本。

而你却一口咬定你都是最新版。

@divineblessing
Copy link
Author

版本号在截图第一张最下面那一排,getTranslation我不知道什么。对于写代码你是内行,我是外行。我用的是B站秋叶的最新整合包至少是今年2月份或者3月份的,我不知道这个版本有多老。但是我确实是无法使用你这个插件,至少现在不能,之前可以用的。

@butaixianran
Copy link
Owner

你这个版本非常老,你还在咬定是新的。升级你的SD webui吧。

@divineblessing
Copy link
Author

微信图片_20230406134643

@divineblessing
Copy link
Author

这个算老吗?

@butaixianran
Copy link
Owner

butaixianran commented Apr 6, 2023

我前面明确说了吧,你这个更新时间根本不算数。你是在这个启动器作者复制的程序池更新。它去年10月份复制,你哪怕今天更新,也还是去年10月份的内容。我前面难道没有说一模一样的话吗

@divineblessing
Copy link
Author

誒,既然用了你的插件,那我作为你的用户,站在用户角度说下吧。专业的东西,你才是专业的,能解决问题才是你最关心的问题。我相信秋叶的启动器会与时俱进,你在及时回复我也说明你在认真对待用户。感谢你耐心解答,我没问题了。

@butaixianran
Copy link
Owner

butaixianran commented Apr 6, 2023

我让你提供完整的commit链接过来,你也不提供。让你提供本扩展的版本号,你也不提供。明确告诉你了,原因是你的sd版本太旧,原因前面也告诉你了,你还要拿启动器截图来当证据。

如果你不是想解决问题,只是想一口咬定启动器都是对的,那你可以留在启动器的圈子,让那边解决。你就把启动器当个和官方不一样的独立软件。

@divineblessing
Copy link
Author

commit链接 上面不是提供了吗?

@divineblessing
Copy link
Author

微信图片_20230406135607

在sd webui页面最下方,有个commit hash编号,那个编号是个链接,把整个链接地址复制过来:AUTOMATIC1111/stable-diffusion-webui@a9fed7c

@divineblessing
Copy link
Author

在这个扩展tab页面最下方,扩展的版本号。这个在哪个位置?我没看懂

@butaixianran
Copy link
Owner

你可以去SDwebui的目录下面,打开这个文件:
stable-diffusion-webui\javascript\localization.js

看里面第56行左右,有没有
function getTranslation(text)
这个内容

@butaixianran
Copy link
Owner

你可以在这个文件里面搜索,看有没有function getTranslation(text)这一行

@divineblessing
Copy link
Author

微信图片_20230406140203

@butaixianran
Copy link
Owner

butaixianran commented Apr 6, 2023

有这一行,那就说明你的SD webui在启动的时候,就出错了。根本没有完成启动,所以插件才找不到这个方法。

那就重启你的SD webui,盯着它的命令行窗口,看它启动的时候,报了什么错误。

@divineblessing
Copy link
Author

微信图片_20230406140533

@butaixianran
Copy link
Owner

我测试了你这个版本,是可以正常加载这个getTranslation内置功能的,没有任何问题。

需要你提供两个东西:

  • 去Civitai助手 的 标签页面,最下面,有个版本号,复制过来
  • 去设置页面,有个“重启webui”的大按钮。先打开F12,console页面,一直开着。然后点击这个重启按钮。
    接下来,在重启的时候,看console页面有报什么错误。把错误复制过来。

@divineblessing
Copy link
Author

127.0.0.1-1680761981156.log

Civitai助手 的 标签页面版本号:version:1.6.2

@butaixianran
Copy link
Owner

你用的什么翻译插件?你的翻译插件,抢在系统内置功能加载之前报错了,所以后面的东西都没有加载

@butaixianran
Copy link
Owner

你用的这个是什么东西,还不光是翻译,他在修改SDwebui,而且出错了
https://github.com/qxinGitHub/Remove-web-limits-
userscript.html

@divineblessing
Copy link
Author

Tampermonkey油猴的插件 : chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/options.html#nav=a9ecdc0d-7940-4a10-a27b-caa6aa371c0f+editor

@butaixianran
Copy link
Owner

说了不是启动器,为什么老要盯着启动器呢。浏览器按下F12,console面板里面

@divineblessing
Copy link
Author

是在浏览器按下F12,console面板里面看的 看了几遍跟搜索关键字了

@divineblessing
Copy link
Author

@butaixianran
Copy link
Owner

butaixianran commented Apr 6, 2023

如果没有,那就是运行环境被改了,这不是任何扩展能改的,只有那个启动器能做到。

你必须成功使用webui-user.bat运行。

按下ctrl+R,输入cmd,打开windows命令行窗口,在里面输入:
python --version
回车,看会不会输出python版本号

不会,就说明你的python环境没有配置正确。把这个东西弄对了,再用webui-user.bat运行。

@divineblessing
Copy link
Author

正在解决python不存在的问题

@butaixianran
Copy link
Owner

你是用conda安装的python吗?

@divineblessing
Copy link
Author

谢谢你的帮忙,我晚上回去重装电脑,远程操作家里的电脑有点吃力。如果有最新的进展,我会回来留言

@divineblessing
Copy link
Author

我是直接从python官网上下载的python-3.10.8-amd64,然后运行安装并且勾选了安装到环境

@butaixianran
Copy link
Owner

不要搞重装系统这种事。没有必要。装python就行了。

另外,你可以用记事本打开 webui-user.bat 这个文件,看看里面每一行的 等于 符号 后面,有哪些参数。如果有参数,复制过来。尤其是set COMMANDLINE_ARGS= 这一行。

@divineblessing
Copy link
Author

问题是我已经安装了,检查了环境,也有python路径在上面。真玄。

@echo off

if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")

set ERROR_REPORTING=FALSE

mkdir tmp 2>NUL

%PYTHON% -c "" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :check_pip
echo Couldn't launch python
goto :show_stdout_stderr

:check_pip
%PYTHON% -mpip --help >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :start_venv
if "%PIP_INSTALLER_LOCATION%" == "" goto :show_stdout_stderr
%PYTHON% "%PIP_INSTALLER_LOCATION%" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :start_venv
echo Couldn't install pip
goto :show_stdout_stderr

:start_venv
if ["%VENV_DIR%"] == ["-"] goto :skip_venv
if ["%SKIP_VENV%"] == ["1"] goto :skip_venv

dir "%VENV_DIR%\Scripts\Python.exe" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv

for /f "delims=" %%i in ('CALL %PYTHON% -c "import sys; print(sys.executable)"') do set PYTHON_FULLNAME="%%i"
echo Creating venv in directory %VENV_DIR% using python %PYTHON_FULLNAME%
%PYTHON_FULLNAME% -m venv "%VENV_DIR%" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv
echo Unable to create venv in directory "%VENV_DIR%"
goto :show_stdout_stderr

:activate_venv
set PYTHON="%VENV_DIR%\Scripts\Python.exe"
echo venv %PYTHON%

:skip_venv
if [%ACCELERATE%] == ["True"] goto :accelerate
goto :launch

:accelerate
echo Checking for accelerate
set ACCELERATE="%VENV_DIR%\Scripts\accelerate.exe"
if EXIST %ACCELERATE% goto :accelerate_launch

:launch
%PYTHON% launch.py %*
pause
exit /b

:accelerate_launch
echo Accelerating
%ACCELERATE% launch --num_cpu_threads_per_process=6 launch.py
pause
exit /b

:show_stdout_stderr

echo.
echo exit code: %errorlevel%

for /f %%i in ("tmp\stdout.txt") do set size=%%~zi
if %size% equ 0 goto :show_stderr
echo.
echo stdout:
type tmp\stdout.txt

:show_stderr
for /f %%i in ("tmp\stderr.txt") do set size=%%~zi
if %size% equ 0 goto :show_stderr
echo.
echo stderr:
type tmp\stderr.txt

:endofscript

echo.
echo Launch unsuccessful. Exiting.
pause

@butaixianran
Copy link
Owner

你看错文件了,是 webui-user.bat,不是webui.bat

另外,如果你知道你的python运行文件在哪个目录,你可以在webui-user.bat里面设置:
set python=你的python程序路径

@divineblessing
Copy link
Author

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=

call webui.bat

@divineblessing
Copy link
Author

! 我试下

@butaixianran
Copy link
Owner

你确定你安装了python的话,就可以设置
set PYTHON=你的python路径,不需要重装python

@divineblessing
Copy link
Author

801ccb4749b7215fad01eda027d483b

@butaixianran
Copy link
Owner

@butaixianran
Copy link
Owner

这个清晰一点:
https://lanlan2017.github.io/blog/be9b7855/

@butaixianran
Copy link
Owner

butaixianran commented Apr 6, 2023

另外,从你的描述和出错看,你的python应该是安装在了虚拟环境中,直接运行是运行不了的。要先启动那个虚拟环境,才能使用python。猜测你是对着网上教程,用anaconda安装的python,但不会用conda。

@divineblessing
Copy link
Author

根据你上面的关闭之后 没问题了 C:\Users\Administrator>python
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

@butaixianran
Copy link
Owner

运行webui-user.bat,不适用启动器

@divineblessing
Copy link
Author

cf0fe86877008a1473869308fe6b113

@divineblessing
Copy link
Author

大兄弟,我还是不耽误你的时间了,层层报错。我晚上还是直接重装系统,全部重新装一遍吧

@divineblessing
Copy link
Author

::>_<::

@butaixianran
Copy link
Owner

所以说了,你的python应该是安装在了虚拟环境中,要先启动虚拟环境。

没有任何必要重装系统,直接从python官网,安装个新的python,然后把这个新的python,添加到环境变量。不要使用conda。

@divineblessing
Copy link
Author

晚上我回去严谨的重新装一遍,待我后续

@butaixianran
Copy link
Owner

找到原因了,秋叶启动器里面,有个同名的"localization.js"文件,把原版的覆盖了。这个文件里,他把"getTranslation"方法,修改之后,塞到了一个封装函数里面,于是只有它自己能用,别人用不了。

你继续折腾吧,我原因找到了,也不是本插件的问题,不在乎了。

@butaixianran
Copy link
Owner

butaixianran commented Apr 6, 2023

你勾选了秋叶启动器的"云端汉化"功能是吧。就是这个造成的。

查了这么长时间,多次提到翻译,出错的命令还是getTranslation。你都没有想到你自己勾选了“云端汉化”?你勾选的时候,启动器那么一大段警告,你都没有印象,这个可能造成问题?
Snipaste_2023-04-06_17-09-31

@butaixianran
Copy link
Owner

这个问题关闭,以后你再因为你用启动器做了什么关键操作你自己忘了,跑来说我们的插件不起作用,就直接封禁。

@butaixianran
Copy link
Owner

butaixianran commented Apr 7, 2023

你因为在另一個issue低素质的谩骂,所以被封禁了。

这里给其他人解释一下警告的原因:
警告这个divineblessing,并不是因为他忘了自己做了什么操作。而是因为,他在本issue中的行为,构成了找茬行为, 所以被警告。在被警告后,他低素质的谩骂,构成了恶意行为,所以被封禁。

事件的描述参见:
#96 (comment)

看客不要觉得他这是忘了。在我们如此多次的正面提问、正面强调下,不是忘了就能混过去的。期间,他甚至对关键提问,给出完全错误的回答,让查错过程变得更加麻烦。

不管是忘了,还是他认为秋叶启动器100%是对的,其他东西都应该适应启动器。不管心理活动是哪种,只要在行为上,和恶意找茬相同,那么,就是恶意找茬。

就像开车闯了红灯,造成事故,不是一句你忘了踩刹车就等于你没有违规。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants