fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

gdrive support for v2 please

Open maxixa opened this issue 3 years ago • 4 comments

it is greate it google drive enabled in free v2

maxixa avatar Nov 28 '22 02:11 maxixa

it is greate it google drive enabled in free v2

Just create a cell and put this:

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

Maxxxwell62 avatar Nov 28 '22 02:11 Maxxxwell62

if you use gdrive, you won't be able to run the V2 in free colab, as it takes too much RAM.

TheLastBen avatar Nov 28 '22 09:11 TheLastBen

how to save images to gdrive after created as zip? just upload the zip to gdrive

maxixa avatar Nov 28 '22 10:11 maxixa

once you gathered all the images, run this in a new cell :

!mv /content/gdrive /content/gdrivevm
from google.colab import drive
drive.mount('/content/gdrive')

then drag and drop the files into your gdrive

after doing this you won't be able to use the Webui until you disconnect and reconnect.

TheLastBen avatar Nov 28 '22 10:11 TheLastBen

once you gathered all the images, run this in a new cell :

!mv /content/gdrive /content/gdrivevm
from google.colab import drive
drive.mount('/content/gdrive')

then drag and drop the files into your gdrive

after doing this you won't be able to use the Webui until you disconnect and reconnect.

I got curious, so I looked it up, you actually CAN unmount Google Drive using the below code.

from google.colab import drive
drive.flush_and_unmount()

Weird that Colab has a button to add a cell to mount Drive, but not a button to do the same for unmounting it.

Daviljoe193 avatar Nov 29 '22 15:11 Daviljoe193