Last active
April 4, 2023 03:20
-
-
Save ha1t/101573dbc454b9cae53878b8f05012a5 to your computer and use it in GitHub Desktop.
Stable Diffusionの run.bat に cscript local_ip.vbs を追加することで、自分のIP付きのURLを出せる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") | |
Set colItems = objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled = True") | |
For Each objItem in colItems | |
If Not IsNull(objItem.IPAddress) Then | |
For Each strIPAddress in objItem.IPAddress | |
WScript.Echo "IP Address: http://" & strIPAddress & ":7860" | |
Next | |
End If | |
Next | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cscript local_ip.vbs | |
call environment.bat | |
cd %~dp0webui | |
call webui-user.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set PYTHON= | |
set GIT= | |
set VENV_DIR= | |
set COMMANDLINE_ARGS=--xformers --listen | |
call webui.bat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WindowsファイアウォールでTCPポート 7860 の開放を忘れない。