-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Can the extension function without the web UI? #47
Comments
Of course it is supported, and almost all functions can be used normally. git clone https://github.com/zanllp/sd-webui-infinite-image-browsing.git
cd sd-webui-infinite-image-browsing
pip install -r requirements.txt
python app.py --port=7888 --sd_webui_config="your sd_webui config path"
sd_webui_config
You can pass the You can also pass partial parameters, like this: {
"outdir_txt2img_samples": "C:\\Users\\zanllp\\Desktop\\sd-remote-save\\txt2img-images",
"outdir_img2img_samples": "C:\\Users\\zanllp\\Desktop\\sd-remote-save\\img2img-images",
"outdir_extras_samples": "C:\\Users\\zanllp\\Desktop\\sd-remote-save\\extras-images",
} Also, you can choose not to pass this parameter, but then you will need to manually open each folder, and the image search feature will not be available to you The plugin will scan the values corresponding to these keys in the configuration file.
|
Standalone mode is very cool! Love being able to specify a custom json. In addition to the instructions above, I also needed to pip install pillow |
The issue indeed exists if Pillow is not installed, but since it is widely used, I did not include it in requirements.txt. I will add it later. |
@Loli-Kyn So, the code is
Second, when using on Colab, you need |
@Loli-Kyn You can use multi-thread from google.colab.output import serve_kernel_port_as_iframe, serve_kernel_port_as_window
from threading import Thread
!git clone https://github.com/zanllp/sd-webui-infinite-image-browsing.git
%cd sd-webui-infinite-image-browsing
!pip install -r requirements.txt
port = 7888 # your port
config_file = "your sd_webui config path"
def run_app():
!python app.py --port={port} --sd_webui_config={config_file}
thread = Thread(target=run_app)
thread.start()
serve_kernel_port_as_iframe(port)
# thread.join() # if you want execute synchronously |
@WSH032 |
Hello,
but I met the black page when open it in browser
My CMD output:
The log.log file in the app folder stays empty so nothing is there. Any suggestions? Thank you! |
Can you please refer to the image below and open the browser's console to see if there are any error messages? |
Hi, IIB inside A1111 web ui works fine. |
A strange error, perhaps due to dependency version issue. You could try using venv to see if it helps. git clone https://github.com/zanllp/sd-webui-infinite-image-browsing.git
cd sd-webui-infinite-image-browsing
python -m venv venv
venv\Scripts\activate.bat # or venv/bin/Activate.ps1 , source venv/bin/activate ...
pip install -r requirements.txt
python app.py --port=7888 --sd_webui_config="your sd_webui config path" If all else fails, you can try using the desktop app version of IIB. https://github.com/zanllp/sd-webui-infinite-image-browsing/releases/tag/v0.2.0 |
Hello, @zanllp Thank you for the suggestions. This is strange indeed. So I tried to setup venv, from clean folders, at both office and home. But it still has same error as before I also tried the desktop version, but it triggered virus warning for some reason.
Is this a known issue? Thanks |
@pto2k |
@pto2k I had the same issue. worked for me after updating windows registry per - https://stackoverflow.com/questions/64013643/failed-to-load-module-script-the-server-responded-with-a-non-javascript-mime-ty |
@ore- Thank you very much! That works. |
where is the --listen,I learned to call the server all the way. |
Hi, great job on the extension! I just wanted to know if this extension can run separately and independently from the web UI, like ImJoy_Elfinder or FiftyOne? Thanks!
The text was updated successfully, but these errors were encountered: