Skip to content
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

colab keeps disconnecting (again) #70

Open
PixelHaru opened this issue Sep 7, 2023 · 39 comments
Open

colab keeps disconnecting (again) #70

PixelHaru opened this issue Sep 7, 2023 · 39 comments

Comments

@PixelHaru
Copy link

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

@martecolini
Copy link

It disconnects after 8 minutes :(

@tyoshi777
Copy link

nolanaatama Please come back!

@Skybloard
Copy link

Same unu

@doogyhatts
Copy link

doogyhatts commented Sep 8, 2023

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

@dsinkerii
Copy link

dsinkerii commented Sep 9, 2023

using steps from camenduru/stable-diffusion-webui-colab#405 (comment) (and modifying it a little) on this notebook fixes the issue for me

@tina-hello
Copy link

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

@dsinkerii
Copy link

@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
Copy link

#73 (comment)

@ssolikhin
Copy link

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
Copy link

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
Copy link

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
Copy link

dreamscapeai commented Sep 10, 2023

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
Copy link

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
Copy link

I hope Nolan is okay

@Domqwerty
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

ssolikhin commented Sep 11, 2023

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
Copy link

D-usk commented Sep 11, 2023

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

@dsinkerii
Copy link

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

@Anon1216
Copy link

Anon1216 commented Sep 11, 2023

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
Copy link

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
Copy link

ssolikhin commented Sep 11, 2023

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
Copy link

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

@thenameistaken1
Copy link

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
Copy link

ssolikhin commented Sep 13, 2023

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
Copy link

F

@ssolikhin
Copy link

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
Copy link

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

@D-usk
Copy link

D-usk commented Sep 13, 2023

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
Copy link

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
Copy link

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

@tina-hello
Copy link

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
Copy link

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
Copy link

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
Copy link

%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
Copy link

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
Copy link

is this fixed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests