nolanaatama / sd-1click-colab

1.09k stars 487 forks source link

colab keeps disconnecting (again) #70

Open PixelHaru opened 1 year ago

PixelHaru commented 1 year ago

just the tittle, colab keeps disconnecting after a few minutes of use, sometimes even before finishing downloading the resources

martecolini commented 1 year ago

It disconnects after 8 minutes :(

tyoshi777 commented 1 year ago

nolanaatama Please come back!

Skybloard commented 1 year ago

Same unu

doogyhatts commented 1 year ago

I have the same problem now. It appears that I get disconnected very quickly, even if I don't do anything.

dsinkerii commented 1 year ago

using steps from https://github.com/camenduru/stable-diffusion-webui-colab/issues/405#issuecomment-1561207734 (and modifying it a little) on this notebook fixes the issue for me

tina-hello commented 1 year ago

@dsinkerii can you clarify the changes? Or just fork the project and show your working version

dsinkerii commented 1 year ago

@dsinkerii can you clarify the changes? Or just fork the project and show your working version

sure, i will try to fork it rq and submit a pr

dsinkerii commented 1 year ago

https://github.com/nolanaatama/sd-1click-colab/pull/73#issue-1888729024

ssolikhin commented 1 year ago

My work around solution is just:

  1. Encode the whole code into base64
  2. Replace it into variable 'a' in code below
  3. run it

import base64 a = 'ZWNobyAnaGVsbG8gd29ybGQhJw==' p = base64.b64decode(a).decode('utf-8') x =''.join([i[i[0] in ['!','%']:] for i in p.splitlines(True)]) !eval $x

medievalCode commented 1 year ago

My work around solution is just:

  1. Encode the whole code into base64
  2. Replace it into variable 'a' in code below
  3. run it

import base64 a = 'ZWNobyAnaGVsbG8gd29ybGQhJw==' p = base64.b64decode(a).decode('utf-8') x =''.join([i[i[0] in ['!','%']:] for i in p.splitlines(True)]) !eval $x

Nice workaround, simpler than the others. Sadly, I still get kicked out after a few minutes.

dsinkerii commented 1 year ago

My work around solution is just:

  1. Encode the whole code into base64
  2. Replace it into variable 'a' in code below
  3. run it

import base64 a = 'ZWNobyAnaGVsbG8gd29ybGQhJw==' p = base64.b64decode(a).decode('utf-8') x =''.join([i[i[0] in ['!','%']:] for i in p.splitlines(True)]) !eval $x

Nice workaround, simpler than the others. Sadly, I still get kicked out after a few minutes.

after a bit of checking i think its either because colab quickly noticed the fix and now you cant use any base64 workarounds rn, or either they are starting to check the file names

dreamscapeai commented 1 year ago

The encoding also worked for few minutes for me. But I think I found the workaround by making a hybrid of camen and nolan. Just uploaded a video and the colab https://youtu.be/4JEtJ7bTaHE?si=A4on3BlLaI53E6yX Let me know if this works for you. Nolan, whenever you comeback, will do my best to keep your 1-Click spirit alive.

Anon1216 commented 1 year ago

I fixed it, it seems that Google banned our boy's name from Colab, apart some other small things. All I had to do was change links, but now it works. It's the same code.

And btw, fuck Google

https://colab.research.google.com/drive/1JPVz-NWrU5TODy4eqSKrLSLx8FyK4APa#scrollTo=f1pBw_ViDULQ

Anon1216 commented 1 year ago

I hope Nolan is okay

Domqwerty commented 1 year ago

Ho risolto il problema, sembra che Google abbia bandito il nome del nostro ragazzo da Colab, a parte alcune altre piccole cose. Tutto quello che dovevo fare era cambiare i collegamenti, ma ora funziona. E' lo stesso codice.

E comunque, fanculo Google

https://colab.research.google.com/drive/1JPVz-NWrU5TODy4eqSKrLSLx8FyK4APa#scrollTo=f1pBw_ViDULQ

great job, it works

dsinkerii commented 1 year ago

I fixed it, it seems that Google banned our boy's name from Colab, apart some other small things. All I had to do was change links, but now it works. It's the same code.

And btw, fuck Google

https://colab.research.google.com/drive/1JPVz-NWrU5TODy4eqSKrLSLx8FyK4APa#scrollTo=f1pBw_ViDULQ

great stuff, ill try to make some sort of a way to select models so you can actually control what you want and what you dont, without having it to edit the code

medievalCode commented 1 year ago

Ho risolto il problema, sembra che Google abbia bandito il nome del nostro ragazzo da Colab, a parte alcune altre piccole cose. Tutto quello che dovevo fare era cambiare i collegamenti, ma ora funziona. E' lo stesso codice. E comunque, fanculo Google https://colab.research.google.com/drive/1JPVz-NWrU5TODy4eqSKrLSLx8FyK4APa#scrollTo=f1pBw_ViDULQ

great job, it works

I still get disconnected after around 20 min. It lasts longer, but still google is kicking us out. I'll try some other workarounds to see if I can avoid getting kicked out.

dsinkerii commented 1 year ago

i had an idea that im not 100% sure will work but theres a chance, what if you encode the entire code with AES so the code will be encrypted with random stuff every time, and change hosts to ip's? again, not sure if that will work, so correct me if im wrong, since i dont fully understand whats triggering the colab warnings, but i hope this can resolve the issue atleast for now

ssolikhin commented 1 year ago

i had an idea that im not 100% sure will work but theres a chance, what if you encode the entire code with AES so the code will be encrypted with random stuff every time, and change hosts to ip's? again, not sure if that will work, so correct me if im wrong, since i dont fully understand whats triggering the colab warnings, but i hope this can resolve the issue atleast for now

agree.. encryption using AES + key so everyone has unique ciphertext. i think uniqueness is the thing we need to defeat it, cause we all run the same code.. i think it worth to try..

D-usk commented 1 year ago

if we take pro colab (11€/month) do you think they will still blacklist SD ?

dsinkerii commented 1 year ago

i've heard from another repo getting a paid plan defeats the problem

Anon1216 commented 1 year ago

i had an idea that im not 100% sure will work but theres a chance, what if you encode the entire code with AES so the code will be encrypted with random stuff every time, and change hosts to ip's? again, not sure if that will work, so correct me if im wrong, since i dont fully understand whats triggering the colab warnings, but i hope this can resolve the issue atleast for now

That's interesting. Can you make a colab like that & share the link? I know that the name "nolanaatama" associated with Github links & terms like "a1111, sd-webui, stable-diffusion", etc are blacklisted.

dsinkerii commented 1 year ago

i had an idea that im not 100% sure will work but theres a chance, what if you encode the entire code with AES so the code will be encrypted with random stuff every time, and change hosts to ip's? again, not sure if that will work, so correct me if im wrong, since i dont fully understand whats triggering the colab warnings, but i hope this can resolve the issue atleast for now

update: after a bit of thinking, came to the conclusion that if you try this, you will technically just convert code into encrypted code, and then back into the same code, rendering it useless

you technically can download the same code every time, and then running it like normal, but then you will have to upload a new file every time google block it

so its time to turn on our brains and think of new ideas

ssolikhin commented 1 year ago

i had an idea that im not 100% sure will work but theres a chance, what if you encode the entire code with AES so the code will be encrypted with random stuff every time, and change hosts to ip's? again, not sure if that will work, so correct me if im wrong, since i dont fully understand whats triggering the colab warnings, but i hope this can resolve the issue atleast for now

update: after a bit of thinking, came to the conclusion that if you try this, you will technically just convert code into encrypted code, and then back into the same code, rendering it useless

you technically can download the same code every time, and then running it like normal, but then you will have to upload a new file every time google block it

so its time to turn on our brains and think of new ideas

i think still can be done.. the encryption would be manual outside the Colab, use AES encryption website for example. And Colab provide only the decryption and render.. and if blocked just encrypt with different key.. or i miss something?

dsinkerii commented 1 year ago

image image well guys, last backup account banned, so i cant help no more

thenameistaken1 commented 1 year ago

I fixed it, it seems that Google banned our boy's name from Colab, apart some other small things. All I had to do was change links, but now it works. It's the same code.

And btw, fuck Google

https://colab.research.google.com/drive/1JPVz-NWrU5TODy4eqSKrLSLx8FyK4APa#scrollTo=f1pBw_ViDULQ

Not working anymore, sadly. Disconnects very quickly, sometimes even when the links aren't ready.

ssolikhin commented 1 year ago

image image well guys, last backup account banned, so i cant help no more

Screenshot 2023-09-13 105618 Yeah i'm done.. this is mine just last night.. careful everyone.. consider this post

dsinkerii commented 1 year ago

F

ssolikhin commented 1 year ago

For the warrior:

  1. Encode the whole code into base32
  2. Encode the encoded text again (do it multiple times)
  3. Replace it into variable 'a' in code below
  4. run it

import base64 as www a = '''

JJFEYRKZKJJUMS2ZLJDEKURSJ5FFUQ2VI5KVGS2LLJCVMTKSINLEWNKHKRCVES2LJNNEKRKJKNFVMSSOIRKVKTSDGJFVERCWJNGVGUCKJZDEKVKWJNEEWRSGKZKVEMSPJJDEGVCJKYZFGS2OIVKEWUSTKVETKTCFI5LFGSSLLJBFMTKTJNLEUSJSKVIVMSSXJNIVURBSKBFDK===

''' while 'content' not in a: a = www.b32decode(a.strip()).decode('utf-8') x =''.join([i[i[0] in ['!','%']:] for i in a.splitlines(True)]) !eval $x

dsinkerii commented 1 year ago

you technically can also use aes encryption on your local pc to encrypt the code and then using the key decrypt it

D-usk commented 1 year ago

I might subscribe to the Collab pro i think, or maybe trying to re-create a build in Paperspace for 8€ (but it's linux and I suck at linux :s )

ssolikhin commented 1 year ago

you technically can also use aes encryption on your local pc to encrypt the code and then using the key decrypt it

i have an idea: what if we just copy the after downloaded /content/ into our drive. and run only the tunnel.

do you think it could work?

kirimaseiichi commented 1 year ago

Is there no way but wait for being solved this issue by somebody?

tina-hello commented 1 year ago

you technically can also use aes encryption on your local pc to encrypt the code and then using the key decrypt it

i have an idea: what if we just copy the after downloaded /content/ into our drive. and run only the tunnel.

do you think it could work?

Drive as in your local drive? Then it means you're using your own GPU, no point in using Colabs then.

ssolikhin commented 1 year ago

you technically can also use aes encryption on your local pc to encrypt the code and then using the key decrypt it

i have an idea: what if we just copy the after downloaded /content/ into our drive. and run only the tunnel. do you think it could work?

Drive as in your local drive? Then it means you're using your own GPU, no point in using Colabs then.

no, drive as in our googledrive. and we run also in colab..

and the only code which we run would just look like this: (i have use this for second times and its fine.. i dont know for the third):

from google.colab import drive drive.mount('/content/drive')

%cd /content/drive/MyDrive/trying/microsoftexcel

!apt -y update -qq %env LD_PRELOAD=/content/drive/MyDrive/trying/libtcmalloc_minimal.so.4 !pip install pip install pydantic==1.8.2

!COMMANDLINE_ARGS="--disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --cloudflared" REQS_FILE="requirements.txt" python launch.py

tina-hello commented 1 year ago

When mounted colab can still read the content (obviously, since otherwise it can't run it). They might going to kill this workaround once enough people are using it.

tyoshi777 commented 1 year ago

%cd /content/drive/MyDrive/trying/microsoftexcel

!apt -y update -qq %env LD_PRELOAD=/content/drive/MyDrive/trying/libtcmalloc_minimal.so.4 !pip install pip install pydantic==1.8.2

!COMMANDLINE_ARGS="--disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --cloudflared" REQS_FILE="requirements.txt" python launch.py

Where do I add this command so I can use it?

tina-hello commented 11 months ago

If any of you considering to pay for Colabs, check out other freemium services first. I've been using the SeaArt, while it disallow explicit NSFW content, it's still far more convenient and relatively cheap compared to paying for Colabs. I'm sure other freemium services would have similar pricing.

mannapijush1coretech commented 11 months ago

is this fixed ?