Want to use Fooocus AI without needing a powerful GPU or even running it locally? In this 2024 tutorial, I’ll show you how to set up and run Fooocus for FREE on Google Colab—no GPU or high-end computer needed! This guide is perfect for those who want to access AI art and creative content generation on any device using Google Colab’s cloud-based resources.
🔗 Links & Resources:
https://github.com/lllyasviel/Fooocus?tab=readme-ov-file#colab
🔔 As a small channel, please like the video if you found it helpful, subscribe if you want to see more tutorials in the future, and comment if you need any help! See you in the next one 🚀
Subscribe: @igxtutorials
#fooocus #aiart #googlecolab #ImageManipulation #CreativeTools
Show More Show Less View Video Transcript
0:00
hi guys welcome back in this video I am
0:02
going to show you how to set up and run
0:04
focus on Google collab focus is a great
0:08
and easy to ous interface for stable
0:10
diffusion and for those who may not have
0:12
a powerful enough computer Google collab
0:15
allows you to use it for
0:18
free go to the first link I provided in
0:21
the description we'll be needing it to
0:22
get started using
0:25
cab then scroll down to the collab
0:28
section
0:30
the first thing we want to do after
0:31
we've gone over everything is click on
0:33
the open in collab link once you do this
0:36
it will open it up in collab but we
0:38
don't want to just use it from here you
0:40
could but if we make any changes which
0:43
I'm going to show you how to do they
0:44
won't save and you'll have to keep
0:46
putting those
0:48
in the best way is to click on copy to
0:52
drive
1:01
you'll see it's now showing up as copy
1:03
of focus
1:06
collab I can come in here and just click
1:08
on that and open it
1:16
again at this point we can just go ahead
1:20
hit the Run button and everything would
1:22
run and we'd be running
1:24
Focus I'm going to show you more
1:26
information on what you can do to
1:28
customize or change some of those things
1:29
things because you're probably going to
1:32
want to do that at some point maybe not
1:34
the first time you run it the first
1:37
thing to understand is how this works
1:39
when you hit that run button these first
1:41
four lines tell it to set up the
1:43
environment and it clones Focus from
1:46
GitHub into the folder on
1:48
collab every time you go to use this it
1:51
has to go through that process of
1:53
cloning bringing everything in
1:56
downloading any models or anything like
1:58
that it doesn't say all that so just
2:01
remember any folders any files those
2:05
things will be destroyed but when it's
2:07
completely done when you're done using
2:09
it they won't be there the last line
2:12
tells it to launch focus with the
2:15
settings that it has here in the
2:18
flags if you want to change those if you
2:21
want to use just the built-in presets
2:23
all you need to do is go from the GitHub
2:26
page you can use these just copy these
2:29
presets and paste
2:44
it you can click on the code button to
2:47
add more lines once the lines are
2:50
created paste the presets there you can
2:53
add multiple presets but you can run one
2:55
at a single time
3:03
so for example you could take the anime
3:05
style preset from their GitHub page and
3:07
paste it in as well as the realistic
3:10
option
3:22
preset and now depending on which one I
3:24
want to run when it comes time I could
3:26
run the standard one or I could run the
3:28
anime one here
3:30
so a lot of the questions I see people
3:32
asking is how do you get a specific
3:35
checkpoint onto collab the easiest way
3:38
to do is to add the code there and run
3:40
it just paste the code I provided in the
3:43
description and you are good to
3:46
go so in here we want it in the content
3:49
folder in Focus then in the models
3:51
folder then in checkpoints and then the
3:53
file name that's how you'd set up the
3:56
saving of the file where it's going to
3:58
save it and the name
4:00
then you put a space and then we we're
4:02
going to have the actual address for
4:04
where we're going to download
4:16
from now we're on here you do not copy
4:20
just the address from up top because
4:23
that's not the address that you want if
4:25
we look here you'll notice they're
4:27
totally different so the easiest way to
4:30
do this that I find if you first want to
4:33
get the file name to use you can just
4:35
click on here click download copy that
4:38
hit cancel because we don't want to
4:40
download it onto our computer and we can
4:42
go into here and that's where I would
4:44
paste in the file name I could just
4:47
paste it in there or you can just type
4:48
it in up to you and then in here we go
4:51
on the download button we can write
4:53
click and copy link address and we go in
4:56
here I would just go ahead and paste it
4:58
and that's it
5:06
now when we run that it's going to go
5:08
ahead and download that it starts
5:10
cloning the focus now remember each time
5:13
we do this and run this if I come back
5:15
the next day I'm going to have to do
5:17
this again and it's going to have to go
5:19
through this process again now this
5:21
usually only takes maybe 15 to 30
5:24
seconds to do in my experience okay it's
5:28
completed so now Focus has been cloned
5:31
and it's set up on collab if we go over
5:33
to our folders here you'll see there's a
5:35
focus folder see we're in the content
5:37
folder already and in the focus folder
5:39
you have all the standard stuff for
5:41
focus in here and I will show you you
5:44
can interact with these files okay so
5:47
now that we have it cloned if we were to
5:49
start it now just by clicking on one of
5:51
these it'll go ahead and download what
5:53
we need for that and download the
5:56
default models but the default models
5:59
are not necessarily what we want so
6:02
let's say we wanted to have other models
6:04
available to us well we've Now set up
6:07
this checkpoint once everything is
6:09
completed you can hit on
6:12
run once you've hit run sometimes it
6:15
will not show the downloads taking place
6:17
in the background but you can see at the
6:19
bottom of the window that it is
6:21
executing the
6:24
command I'll just skip ahead until it's
6:26
nearly completed
6:33
now it's showing it's completed we can
6:36
verify this by going to the left hand
6:38
side and selecting the folder icon go to
6:41
models and then checkpoints you should
6:43
see these two folders
6:44
there yes you can see that the models
6:47
are added in the checkpoint
6:50
folder as the checkpoint is added now we
6:53
try running the anime preset code
7:09
as you can see it started running it
7:11
will take some time for it to
7:13
run keep in mind that every 48 to 72
7:17
hours these will automatically delete if
7:20
you're using the free version of collab
7:23
so you will need to rerun these commands
7:26
the next time you use it
7:29
[Music]
7:45
once the execution is completed you will
7:47
see a gradio link you need to open that
7:51
link you need to use the link that says
7:53
running on public URL
8:07
you can see that the link is working
8:09
perfectly but it is showing some error
8:12
we will verify whether this is working
8:14
or not you can play around with the
8:16
settings available there
8:31
in the model section you can see that
8:34
the Juggernaut files are downloaded
8:36
successfully but I still wonder why the
8:38
code execution doesn't show up anyways
8:42
we will check whether the link is
8:43
working or
8:46
not just enter your desired prompt here
8:49
and click on generate
9:04
as I have set the preset to anime I am
9:07
using a prompt related to anime
9:09
character once you hit the generate
9:12
button it will take some time to
9:14
generate the images
9:27
[Music]
9:29
you can see that the images are
9:37
[Music]
9:49
generated now we will close the link
9:52
even after closing the link you can
9:54
still see that the codes are running to
9:57
close the process click on the stop
9:59
button
10:00
the button in which a circle keeps on
10:02
going it will take a few seconds to
10:11
stop I like to clean that up I'll close
10:16
those okay now for Laura how do you
10:19
install those well it's the same idea
10:22
just copy and paste the code I have
10:24
provided in the description and you are
10:26
good to go
10:38
[Music]
10:49
[Music]
10:53
this is the easiest method to install
10:55
Laura but if you want to install them
10:57
manually you can do that too
11:02
just open the files in the focus find
11:04
the Laura option under the model section
11:06
and open
11:08
it now you would drag and upload the
11:11
Laura files here as this is not an
11:13
efficient way to go about it I do not
11:15
have the files downloaded but this is
11:17
just simply what you do if you did also
11:21
as we are manually uploading these files
11:23
to the folder it will take more time to
11:26
update as the files will be large it
11:28
depends on your internet speed also like
11:31
the same way you can also upload files
11:34
related to wild
11:41
cards files related to Styles and files
11:44
related to the
11:50
presets as it takes a lot of time to
11:52
upload the files I will prefer the code
11:55
method always once the code is entered
11:58
click on it and and run the
12:02
code it will also take some time to
12:14
run once the execution is completed you
12:17
can see that the file is saved to the
12:19
path we
12:24
provided now to check whether the lur is
12:27
installed or not click on any preset
12:29
style you want and run it previously I
12:32
have used anime preset but for now I
12:35
want to use realistic
12:40
preset while everything is downloading
12:43
you'll get this error message telling
12:45
you that the GPU is not in use and that
12:48
you should switch types you can safely
12:50
ignore this
13:02
once the code is run successfully you
13:04
will get the gradio link which we have
13:06
used earlier click on the link and open
13:17
it now click on Advanced and click on
13:20
models in the Laura one you can see the
13:22
name leather armor it is the name of the
13:25
folder we have created for Laura
13:29
this means that Laura is successfully
13:31
downloaded now we will try to create a
13:34
realistic image I'm giving the same
13:37
prompt as I used
13:46
earlier once the prompt is entered click
13:49
on the generate button and wait for some
13:58
time e
14:30
while the image is being generated you
14:32
can see the entire process in the collab
14:35
also you can see how much disk space and
14:38
how much RAM it is using for this
14:40
process
15:07
the images are now generated you can see
15:09
that these images are looking like
15:11
realistic
15:22
images now we will change the model and
15:25
check whether the focus is working
15:27
correctly or not
15:29
I have set the model here to anime
15:31
pencil model and I am using the same
15:33
prompt for this image too
16:23
the images are generated successfully
16:26
you can see that these images are
16:27
looking like anime artist images so this
16:30
shows that our models are working
16:40
correctly you can click on the images
16:42
and click on the download option to
16:44
download these
16:52
images you can also use another method
16:55
to download the images for this you need
16:58
to open the folder and click on output
17:01
in the output folder you can see the
17:03
folder with the date of the image
17:05
creation open the folder and you can
17:07
find the list of the images that are
17:09
created on the specific date right click
17:12
on the image and click on the download
17:14
option to download the
17:26
image I will prefer the first method
17:29
anyways as it is easy so this is how we
17:32
set up and run focus on Google collab if
17:36
you find this video helpful then like
17:38
share and subscribe if you have any
17:41
questions let me know in the comments I
17:42
will see you in the next video thanks
17:45
bye
