-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
🚨 Why is Colab Disconnecting? #405
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
Comments
Yeah... seems like they've started to enforce it |
some Colab still can use it.. just remove/rename stable-diffusion thing to another name. and it's solved |
are there any sort of workarounds for this? renaming the project, having an alternate disguised version, or any free colab alternatives or whatnot? |
camenduru can't just do that, i think. All eyes are on his colab. Colab team can figure out the better solution to even banning more strictly. At this point just be chill with the 'safe' colab. |
There are many that claims 'still safe', check out here: https://github.com/camenduru/stable-diffusion-webui-colab/tree/community |
But how to do that from where to remove it |
#407 |
Is it just webUI is banned or stable diffusion altogether? |
Rename "stable diffusion" to "erratic condensation" |
Step1 import sys
import os
import base64
w = base64.b64decode(("d2VidWk=").encode('ascii')).decode('ascii')
sdw = base64.b64decode(("c3RhYmxlLWRpZmZ1c2lvbi13ZWJ1aQ==").encode('ascii')).decode('ascii') Step2 Replace all |
works for me |
It doesn't work for me: `Status Legend:
sed: can't read /content//launch.pyi: No such file or directory |
wich |
What header? |
why encoding and decoding |
ofcourse, as long as you achieve the purpose of blocking keywords |
Hi there,I am not a coder but need to use stable diffusion for free if possible can anyone please figure out about this Step1 Append code in header: import sys w = base64.b64decode(("d2VidWk=").encode('ascii')).decode('ascii') Step2 Replace all stable-diffusion-webui characters with $sdw Replace all webui characters with $w I understood the second step that by going on edit we can replace it but can anyone please tell me about how to do the first step it would be really helpful for me,thank you for reading. |
Just paste the code
In top of the code |
Do we have to make a new cell or on the top of first cell?,thank you soo much for replying. |
On top of existing cell(first cell) |
Hi , can you share the colab notebook or snippet where you actually make the changes ? That would be of great help |
Thank you! That's working fine! While I still have issues with the SD itself, they are not colab related and are easy to fix. If you load your model, remember to also replace all occurrences of |
This is joy, will try it after work, Love this project. Thank you so much. |
is this still worked? |
@bincooo Can you make a colab that has this code in the right place, I don't know where to put it. |
this does not work anymore. I already tested |
Alright, so apparently "diffusion" is the new blocked word. I tried changing "diffusion" to |
How can I implement this? Can you give maybe a step-by-step tutorial? Thanks. |
nope. still disconnected |
Is there a version without webui? That's what's banned, a non webui version should work ok. |
I can test diffusion that day, but it won’t work tomorrow. python scripts/txt2img.py --prompt "YOUR-PROMPT-HERE" --plms --ckpt sd-v1-4.ckpt --skip_grid --n_samples 1 https://www.assemblyai.com/blog/how-to-run-stable-diffusion-locally-to-generate-images/ |
I made a copy of it in a private git repository and removed "webui" and used it. |
it's the problem of "diffusion". |
New step 1 trick: add the following to first cell
|
here is a working notebook file |
My working notebook that supports model loading from huggingface or civitai, loras, long prompts and (IMO) the best upscaling algorithms, without web UI. If you want to use a GDrive that is not the same as the account logged in on colab, setup rclone and select that option |
ALSO, this GUI works fine on colab free, even though for some reason the results are kind of lo-fi: https://github.com/camenduru/InvokeAI-colab/blob/main/InvokeAI_colab.ipynb another option using TPU instances for crazy fast inference: |
stable_diffusion_jax_clean.zip stable_diffusion_jax_clean.ipynb This ipynb file cannot be opened, there is an error |
Please speak english if you wan't help, use a translator if you need one. What error are you getting? Set runtime to TPU. Make sure to use native Gdrive if you don't have rclone setup, and fill in the huggingface token. The rclone option is only there in case you want to use Google Drive from another account. Otherwise, just read the code and the error message, read the documentation on hugging face hub and try to fix it. |
I am sorry. |
Let's shift this chat to a discord / telegram. Google might be spying on us -_- |
My bad... Here is the fix. |
OK... DM me with details. The way I see it, Google is not against running stable diffusion itself, but rather the popular GUIs, and they're mostly enforcing it through string detection, or perhaps by dumping running processes and comparing to known hashes of files in such GUIs. Nor diffusion, diffusers, neither stable-diffusion, gradio or stablediffusion are specifically banned strings. For banned strings you can always encrypt them using something like AES with random keys, the problem with running the full stable-diffusion-webui is most likely the strings inside the repo files which there is no way to replace statically without breaking the code somewhere else. I haven't really dug into this much, but if there way some way to trace the execution while printing the last line executed by the interpreter, it would be possible to circumvent the restriction, but it won't be an easy task. Maybe using cython or numba jit could work. Or writing a wrapper for the python executable in a more performant language that encrypts memory dynamically. I'm not that crazy about using GUIs to consider such work atm, solutions can be made from scratch using native jupyter without ever needing to run a web server or code from banned popular implementations. |
@gustavokch how do I reach out? |
@gustavokch @ParikhKadam I made a discord server where we can discuss it further. I also have some ideas for getting around the block. Discord server invite base64: aHR0cHM6Ly9kaXNjb3JkLmdnL3NzYTVYRTVycg== If you'd prefer it be a telegram just let me know |
According to the official statement, the Colab
Free tier
is not available for the Stable Diffusion WebUI 😭. We can only use it with a paid plan.If you have more questions, please ask here: https://github.com/googlecolab/colabtools/issues
The text was updated successfully, but these errors were encountered: