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

Doesn't fully work on Colab #15

Open
UttejK opened this issue Nov 5, 2023 · 1 comment
Open

Doesn't fully work on Colab #15

UttejK opened this issue Nov 5, 2023 · 1 comment

Comments

@UttejK
Copy link

UttejK commented Nov 5, 2023

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!!!

@vensu-art
Copy link

vensu-art commented Nov 25, 2023

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 

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

2 participants