-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error using colab. Image unable to be transferred back to krita with 'BadZipFile' error. #51
Comments
I'm also hitting this same error, haven't found a solution for it yet. |
make sure you are copying the correct endpoint url and are adding something like "/api/img2img" |
I am also having the same problem |
Same issue for me... |
I have double checked and I have been doing this. Sorry I can't shed any more light on what might be causing the issue. |
Hi, don't know if this issue is still relevant, but I had the same problem and managed to solve it. |
hey! do you think you could open a PR to fix this? @qqmok would be a great help :) |
im am pretty noob in this things, what did you say is that i have to change import torch the following line is specific to remote environments (like google colab)from flask_ngrok import run_with_ngrok Load the model for use (this may take a minute or two...or three)secho("Loading Model...", fg="yellow") pipe = StableDiffusionImg2ImgPipeline.from_pretrained( secho("Finished!", fg="green") Start setting up flaskapp = Flask(name) Define a function to help us "control the randomness"def seed_everything(seed: int):
def get_name(prompt, seed): Define one endpoint "/api/img2img" for us to communicate with@app.route("/api/img2img", methods=["POST"])
run_with_ngrok(app) it didnt work for me but didnt know why |
Hello. I am new to Krita and Koi. just installed using colab, and getting this badZipFIle error. is this thread still active? is there a fix for this? Any way to help? much appreciated in advance :) |
Same error, but that's just what you see in the "frontend". The actual error I think is this on the server:
The code causing the issue is this:
I don't know how to fix it. Same issue: |
Bing helped me change the script a little bit to make it work:
|
Tried running the example notebook to use colab for the GPU compute. Setup of the server works just fine, opened fresh install of krita, pasted in the address for the server and clicked 'dream' with the default mountain landscape prompt. An error on colab and krita was produced (see below).
It seems that the inference runs fine so the stable diffusion code and connection to krita seems to work. The error seems to occur when the generated image is passed back to krita. Running on krita version 5.1.1 (AppImage) and my OS is Fedora 36 with linux kernel 5.19. The colab notebook is an unmodified copy of that included in the koi repo (https://github.com/nousr/koi/blob/main/koi_colab_backend.ipynb).
I note that in the krita error message it is using the miniconda python installed on my system, could that be an issue?
Any help appreciated!
Colab error message:
And then this error on krita:
The text was updated successfully, but these errors were encountered: