Closed Hearcharted closed 9 months ago
You are no longer allowed to use Auto1111 and ComfyUI on Colab
The free tier got nuked, but I'm using the paid one.
scroll down till you see Fooocus Colab (Official Version) https://github.com/lllyasviel/Fooocus
Got ya, I'm already using it on Google Colab. But, I need to install it on Google Drive, just like you install Comfy and Auto1111. I need it to start "Living Inside Google Drive" Forever and Ever (O_O) Thank you...
Hearcharted: Then you'll have to modify the Colab as per your requirement, which could be as easy as this:
from google.colab import drive
drive.mount('/content/drive')
%cd /content/drive/MyDrive/
!git clone https://github.com/lllyasviel/Fooocus
!pip install pygit2==1.12.2
!python /content/drive/MyDrive/Fooocus/entry_with_update.py --share
If you didn't notice camenduru wrote the codes for Colab. Try contacting camenduru at https://github.com/camenduru/Fooocus-colab
@TimothyAlexisVass @barepixels
Thank you, I'm going to save this trick...
Figured this out. I wrote some code in colab and did a quick tutorial on YouTube
Thank you, Kitson! I wanted to start running Fooocus on cloud GPUs and this seems like a great way to do it.
Thank you @KitsonBroadhurst, I duplicated your notebook in Colab, but the following error occurs:
Error Unexpected token '<', " <!DOCTYPE "... is not valid JSON
And then the runtime crashes warning an error similar to "Not allowed code/operation has been detected"...
What could it be?
@MXTcomunica please use the officially supported playbook in https://colab.research.google.com/github/lllyasviel/Fooocus/blob/main/fooocus_colab.ipynb
Yeah I already used the official Fooocus playbook @mashb1t, but the one provided by @KitsonBroadhurst allows you to mount your Gdrive to have persistent data, so to not lose your generated images, to use your own custom settings/wildcards, and to use your own models/loras without the need to re-download them every time.
It would be nice if the official playbook also provided a similar wrapper.
Got it, thx. When you ran https://colab.research.google.com/drive/18zNcbJV9r2Rxkb4UkY0YhjzMvj1wFMy0 you might just have encountered a timeout and the console log may give you more information about the status.
Hi, can we install Fooocus on Google Drive / Colab just like Auto1111 and ComfyUI ?
As far as I can see, Foocus is running in this "per Session" base, so when you end the Session you lose every uploaded file...
Many thanks in advance...
@lllyasviel