fenneishi / Fooocus-ControlNet-SDXL

add more control to fooocus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't fully work on Colab

UttejK opened this issue · comments

I'm not completely sure what the problem is but making the following changes at least helps to get the web UI to start

!pip install pygit2==1.12.2
!pip install einops # This wouldnt get installed from the requirements, so I just added it here.
%cd /content
!git clone https://github.com/fenneishi/Fooocus-Control.git /content/Fooocus/ # to be moving into the Fooocus folder, it should exist first, 
%cd /content/Fooocus # so I am cloning the repo into the fooocus folder
!cp colab_fix.txt user_path_config.txt
# for FooocusControl(follow Fooocus) Realistic Edition.
!python entry_with_update.py --preset realistic --share 
# for FooocusControl(follow Fooocus) Anime Edition.
# !python entry_with_update.py --preset anime  --share 

Even after this, I have to run the cell twice to get it to work. I use python rarely so I'm probably not the best person to dig too deep into the existing code, but I'll see if I can figure out where the problem actually lies when I find some spare time. Good Luck!!!

I divided the colab in two code cells:
The first cell:

!pip install pygit2==1.12.2
!pip install einops # This wouldnt get installed from the requirements, so I just added it here.
%cd /content
!git clone https://github.com/fenneishi/Fooocus-Control.git /content/Fooocus/ # to be moving into the Fooocus folder, it should exist first, 

The second:

!cp /content/Fooocus/colab_fix.txt user_path_config.txt 
# for FooocusControl(follow Fooocus) Realistic Edition.
!python /content/Fooocus/entry_with_update.py --preset realistic --share 
# for FooocusControl(follow Fooocus) Anime Edition.
# !python entry_with_update.py --preset anime  --share