ComfyUI Local Install and ComfyUI Manager On Apple Silicon M1/M2/M3 Mac Full Tutorial

Chukwubuikem Oguagha
7 Dec 202329:44

Summary

TLDRビデオでは、MacにComfy UIをインストールし、その操作方法を紹介しています。Comfy UIは、より高度なAI画像生成ソフトウェアで、多くのオプションを提供し、ビデオ生成にも対応しています。インストールにはHomebrewとPythonが必要ですが、手順は比較的簡単です。Comfy UIを起動し、モデルを読み込む方法や、ポジティブ・ネガティブプロンプトを接続して画像生成を行うプロセスが解説されています。さらに、Comfy UIマネージャーを使用して、モデルのインストールや更新、ワークフローの再現も可能です。

Takeaways

  • 😀 コミュイ(Comfy UI)はMacにインストールすることで、より高度なAI画像生成ソフトウェアとして自動1111を超越することができる。
  • 🛠️ MacにComfy UIをインストールするには、HomebrewとPythonが必要なセットアッププロセスを経て、ターミナルを通じてコマンドを実行する必要がある。
  • 🔗 安定性拡散(Stable Diffusion)を使用する場合、pytorchというディープラーニングフレームワークが必要なため、Macにインストールする必要がある。
  • 📚 Comfy UIは複数のオプションと機能を提供しており、画像生成において高い柔軟性と制御が可能である。
  • 🎥 Comfy UIはビデオ拡散にも対応しており、今後ビデオに関する説明動画が提供される予定である。
  • 💻 Comfy UIはMac上で直接実行でき、Windowsと比較して異なるインストールプロセスを経る。
  • 🔄 Comfy UIマネージャーを通じて、モデルのインストールや更新、欠落しているカスタムノードのインストールが可能である。
  • 🖼️ Comfy UIを使用することで、特定の画像を再現するためのワークフローを視覚化し、再現性を高めることができる。
  • 🔍 Comfy UIは高度な設定オプションを提供しており、ユーザーはそれらを調整して生成される画像の品質やスタイルを制御することができる。
  • 🌐 Comfy UIに関するリソースとして、GitHub、Reddit、チュートリアルウェブサイトなどのコミュニティとサポートが存在する。

Q & A

  • なぜMacでComfyUIをインストールする必要があるのですか?

    -ComfyUIは、Mac用の画像生成ソフトウェアとして非常に優れており、Automatic 1111よりも多くの制御オプションを提供します。

  • ComfyUIのインストールを始める前に必要なものは何ですか?

    -HomebrewとPythonが必要です。

  • Homebrewをインストールする方法を教えてください。

    -Homebrewの公式サイト(brew.sh)にアクセスし、提供されるコマンドをターミナルに貼り付けて実行します。

  • Pythonをインストールする際に推奨されるバージョンは何ですか?

    -Python 3.10または3.11が推奨されます。

  • PyTorchのインストール手順を教えてください。

    -PyTorch公式サイト(pytorch.org)にアクセスし、プレビュー・ナイトリー版を選択してインストールコマンドをターミナルで実行します。

  • ComfyUIのインストール方法を教えてください。

    -ターミナルでgit cloneコマンドを使用してComfyUIをクローンし、ディレクトリ内でpip3 install -r requirements.txtコマンドを実行します。

  • モデルをComfyUIに読み込む方法は?

    -モデルファイルをComfyUIディレクトリ内のチェックポイントフォルダに移動し、ComfyUIを再起動します。

  • ComfyUIで画像生成を開始するにはどうすればよいですか?

    -ターミナルでpython3 main.pyコマンドを実行し、表示されるHTTPアドレスをブラウザに入力してComfyUIにアクセスします。

  • ComfyUIのノードとは何ですか?

    -ノードは、チェックポイント、プロンプト、サンプラーなどの画像生成に必要な各種設定を表す要素です。

  • ComfyUIマネージャーの役割は何ですか?

    -ComfyUIマネージャーは、モデルやノードのインストール・管理を容易にし、プログラムの機能を拡張します。

  • ComfyUIを他のシステムと共有する方法は?

    -ComfyUIで作成した画像をドラッグ&ドロップしてワークフローを表示し、他のユーザーが同じ設定で画像を生成できるようにします。

  • ComfyUIでモデルパスを変更する方法は?

    -テキストエディタでextra_model_paths.yaml.exampleファイルを開き、適切なパスに変更して保存します。

  • ComfyUIのアップデート方法を教えてください。

    -ComfyUIマネージャーで「Update ComfyUI」または「Update All」を選択してアップデートします。

  • ComfyUIでノードをインストールする方法は?

    -ComfyUIマネージャーの「Install Custom Nodes」を使用して、必要なノードをインストールします。

  • ComfyUIの設定を変更するにはどうすればよいですか?

    -ComfyUIの設定メニューで、使用するカラースキームやその他の設定を変更できます。

Outlines

00:00

😊 ComfyUI for Mac Installation Overview

In this introductory paragraph, Chuku Bum explains the advantages of using ComfyUI over other AI image generation software on Mac, such as Automatic 1111 and Mid Journey. He highlights ComfyUI's robustness, control over image generation, and simplicity despite initial intimidation.

05:02

🔧 Installing Homebrew and Python

This paragraph guides users through installing Homebrew on their Mac, explaining the steps to download and verify the installation using the terminal. It also covers installing Python, recommending additional tools like cmake and git to support future use of Automatic 1111 alongside ComfyUI.

10:02

💻 Installing PyTorch and Cloning ComfyUI

Chuku Bum explains how to install PyTorch, a crucial framework for deep learning models, necessary for running ComfyUI. He then walks through cloning the ComfyUI repository into a preferred directory on the Mac, making it accessible and ready for further configuration.

15:04

📂 Configuring and Running ComfyUI

The paragraph details the process of setting up ComfyUI by installing required dependencies and running the main script to launch the interface. Chuku Bum emphasizes the need for a model checkpoint to generate images and demonstrates how to download and place the stable diffusion model in the appropriate directory.

20:04

📈 Understanding ComfyUI's Interface

Chuku Bum provides a crash course on using ComfyUI, explaining the roles of different nodes (e.g., checkpoint, prompt, sampler) and how to connect them. He discusses using the ComfyUI Manager for downloading models and custom nodes, showcasing the interface's flexibility and control.

25:04

🔄 Advanced Features and Resources

The final paragraph highlights advanced features like importing workflows, updating ComfyUI, and integrating models from Automatic 1111. Chuku Bum suggests resources for further learning, including GitHub, Reddit, and specific websites, encouraging users to explore and optimize their AI image generation setup.

Mindmap

Keywords

💡ComfyUI

ComfyUIは、Macで動作するAI画像生成ソフトウェアです。ビデオでは、このソフトが他の画像生成ツール、例えばAutomatic1111やMidJourneyよりも優れている理由について説明しています。ComfyUIは、画像生成の制御がしやすく、多くのオプションを提供しています。

💡Homebrew

Homebrewは、MacOS用のパッケージマネージャーです。ビデオでは、ComfyUIのセットアップに必要な最初のステップとしてHomebrewをインストールする方法が説明されています。

💡Python

Pythonは、プログラミング言語の一つで、ComfyUIやその他のAIツールの実行に必要です。ビデオでは、Homebrewを使ってPythonをインストールする手順が詳しく説明されています。

💡PyTorch

PyTorchは、深層学習モデルを構築するためのフレームワークです。ビデオでは、ComfyUIを動作させるためにPyTorchをインストールする方法が説明されています。PyTorchは、ChatGPTやStable DiffusionのようなAIの基盤となる技術です。

💡Terminal

Terminalは、MacOSのコマンドラインインターフェースです。ビデオでは、HomebrewやPythonのインストール、ComfyUIのセットアップにTerminalを使用する方法が示されています。

💡Git

Gitは、バージョン管理システムであり、ソースコードを管理するために使用されます。ビデオでは、ComfyUIをインストールするためにGitを使ってリポジトリをクローンする方法が説明されています。

💡Models

Models(モデル)は、AI画像生成のテンプレートです。ビデオでは、Stable Diffusion v1.5モデルをComfyUIにインストールする方法が説明されており、モデルが画像生成の基盤となることが強調されています。

💡Nodes

Nodes(ノード)は、ComfyUIの構成要素であり、各ノードが異なる機能を持っています。ビデオでは、プロンプトノード、サンプラーノードなど、画像生成に必要な各ノードの役割が説明されています。

💡Custom Nodes

Custom Nodes(カスタムノード)は、ComfyUIの機能を拡張するための追加要素です。ビデオでは、Custom Nodesをインストールし、ComfyUIの機能を強化する方法が説明されています。

💡Sampler

Sampler(サンプラー)は、画像生成のプロセスを制御するノードです。ビデオでは、サンプラーが画像の生成方法を決定する重要な役割を果たすことが説明されています。

Highlights

Chuku bum introduces Comfy UI as a superior AI image generation software for Mac, offering more control and options compared to Automatic 1111.

Comfy UI enables stable video diffusion and various other features, setting it apart from competitors like mid Journey.

The presenter emphasizes Comfy UI's ease of use and long-term learning benefits over Automatic 1111.

A step-by-step guide begins with the installation of Homebrew and Python, prerequisites for Comfy UI.

Instructions are provided for downloading Homebrew from brew.sh and installing it via the terminal.

The tutorial recommends installing additional tools like cmake, protuff, rust, and git for broader capabilities.

PyTorch, a framework for deep learning models, is highlighted as essential for Comfy UI's functionality.

Detailed steps are given for installing PyTorch from pytorch.org using the appropriate command in the terminal.

Comfy UI can be easily installed on Mac by cloning the repository, differing from the Windows installation process.

The presenter shares a personal challenge with the installation process and credits AI animation for assistance.

Comfy UI's interface is explored, explaining the nodes and their functions in the image generation workflow.

A demonstration of generating an image using Comfy UI is provided, showcasing the software's capabilities.

The importance of selecting the right model and its impact on VRAM usage is discussed.

The process of adding a model to Comfy UI and using it to generate an image is explained.

Comfy UI Manager is introduced as a tool for organizing and enhancing the software's capabilities.

The ability to install models and custom nodes directly through Comfy UI Manager is demonstrated.

Comfy UI's potential for real-time image generation with the addition of certain models like sdxl turbo is highlighted.

The presenter guides on how to use Comfy UI Manager to import and replicate previous workflows.

An overview of Comfy UI's settings and customization options is provided, including color schemes.

Resources for further learning and community engagement with Comfy UI are shared.

The video concludes with a summary of Comfy UI's benefits and a call to action for likes and subscriptions.

Transcripts

play00:00

what is going on ladies and gentlemen

play00:01

it's your boy chuku bum and I am here to

play00:04

talk to you about how we're going to get

play00:06

comfy UI installed on Mac and why would

play00:09

you need comfy UI installed on Mac well

play00:11

first off it's a much better AI image

play00:13

generation software than automatic 1111

play00:17

for Mac it's a very robust and probably

play00:20

the best image generation software for

play00:23

Mac as of right now you have way more

play00:25

control over the types of images that

play00:27

get created and allows for even more

play00:29

options when it comes to image

play00:31

generation let alone stable video

play00:32

diffusion which you can expect a video

play00:34

on very soon plus so many other options

play00:37

for you that make it way better than

play00:39

just using automatic 1111 or you know

play00:42

maybe mid Journey or whatever the case

play00:44

and it'll be right here on your Mac it's

play00:46

just a win-win and although it can seem

play00:48

a little daunting at first it's actually

play00:50

very simple to use and in the long term

play00:53

way better to get to learn than even

play00:54

automatic 1111 would be so let's just

play00:57

hop right into this and get started the

play00:59

setup is going to be very similar to

play01:00

what we did with automatic 1111 for Mac

play01:03

with stable diffusion you're going to

play01:04

need Homebrew and you're going to need

play01:06

python so first we need to download home

play01:08

brew so we're going to go to brew. sh

play01:11

boom now you're at home brew and then

play01:12

what's going to happen is you're going

play01:13

to take this right here you could just

play01:15

click this little copy button right here

play01:16

you're going to take this copy button

play01:18

and you're going to head to your

play01:18

terminal if you don't know how to head

play01:19

to your terminal you can click f4 on

play01:21

your Mac and then you can type terminal

play01:23

and then you'll get over there very

play01:25

quickly and all you're going to do

play01:27

you're just going to command V your this

play01:29

bad boy you're going to paste it right

play01:31

into here now I already have Homebrew so

play01:33

it's pretty much just going to stay

play01:34

installed but um you're just going to

play01:36

run it and then you're going to say

play01:37

checking for pseudo access D so you're

play01:39

going to put in your laptop's password

play01:43

it says this script will

play01:45

install and then you press enter that's

play01:47

perfectly fine now like I said I already

play01:49

have it so it's going to just update

play01:52

everything pretty much installation was

play01:53

successful and all it did was update two

play01:56

tabs but for you it would be a whole

play01:58

thing like it would be like and then if

play02:00

you want to make sure that you have home

play02:01

brew you would just type Brew doctor

play02:03

after you type in Brew doctor and then

play02:06

it'll let you know if you have home brew

play02:08

so he says your system is ready to brew

play02:11

so that's cool that even they have a

play02:13

nice sense of humor because you know

play02:14

Brewing brewing a beer a brew you get it

play02:18

now that we've installed Brew it's time

play02:20

to install python now you could install

play02:23

python alone that would be perfectly

play02:25

fine and you would be able to get comfy

play02:27

UI up and running with the next steps

play02:29

that we provide but I want to give you

play02:31

guys a little bit extra because you may

play02:34

also in the long run want automatic 1111

play02:37

so what I'm actually going to recommend

play02:39

to you guys is that you come over to

play02:40

this website right here the link will be

play02:41

in the description below and what you're

play02:43

going to do you're going to do Brew

play02:45

install cmake protuff rust and python U

play02:49

see this python is 3.10 you could always

play02:52

do 3.11 that's the newest python that's

play02:54

the newest stable python version and

play02:57

then you know um Brew install git and

play02:58

Brew install w G now these are all

play03:01

things that actually will give you the

play03:03

ability to run automatic 1111 rather

play03:05

than just installing Python and then all

play03:08

you can do is comfy UI so I'm definitely

play03:11

trying to give you a little bit more

play03:12

than what you would normally get but if

play03:14

this is a little bit Overkill you could

play03:15

just get rid of everything here and just

play03:17

do Brew install python at 3.10 or 3.11

play03:21

or you could just leave the threes alone

play03:22

and just Brew install Python and you

play03:24

would get Python and you could still

play03:26

continue on with this tutorial but I

play03:29

definitely do recommend that you take

play03:31

this whole thing right here so I'm going

play03:33

to take this whole thing and just to

play03:34

show you what I mean when I say that you

play03:36

can always just get rid of the rest

play03:38

right if you want you could literally

play03:41

just do Brew install python if you run

play03:43

this that'll be perfectly fine in fact

play03:45

I'll do it really quickly if we do Brew

play03:47

install python see I already have python

play03:49

so it's going to say python 3.11 more

play03:52

specifically 3.1.6 one is already

play03:55

installed and up todate so I don't need

play03:57

to install anything it's asking me if I

play03:59

would want to reinstall I don't need to

play04:00

do that but you could run that and you'd

play04:02

be good to go but me I'm going to run

play04:04

the whole thing just to show you guys

play04:06

again Brew install cmake Proto and

play04:08

everything else because again just

play04:11

python will work for comfy UI but if you

play04:13

install everything else you'll also be

play04:15

able to use automatic 1111 if you ever

play04:17

decide to have that so I always like to

play04:19

say better to have and not need than to

play04:21

need and not have so we're going to run

play04:23

this again Brew install C make Proto

play04:25

above everything and again I already

play04:27

have everything so it's just going to be

play04:29

you know reinstall reinstall reinstall

play04:31

but you guys would get like this long

play04:32

list of stuff that's what you guys would

play04:34

get and then you'd be good to go so now

play04:36

that you've installed python along with

play04:37

other things now it's time to install

play04:39

pytorch and pytorch well look at it

play04:41

right here pytorch is a fully featured

play04:44

framework for building deep learning

play04:45

models basically meaning that this is

play04:48

what helps create chat gbt stable

play04:50

diffusion mid Journey claw Bing AI all

play04:54

these different AIS that we're getting

play04:55

more and more used to seeing on a daily

play04:56

basis it's built a lot by using py P

play04:59

torch and so we need pytorch on our Mac

play05:01

in order to get comfy UI up and running

play05:03

now in order to get pytorch you're going

play05:04

to come here to py torch. org get

play05:08

started SL locally you're going to come

play05:09

over here and you're going to click

play05:11

preview nightly that's the type of pie

play05:13

torch that we need that's going to run

play05:15

on Mac so now we have preview nightly

play05:17

again the OS is Mac the package is PIP

play05:20

um the language will be Python and the

play05:23

compute platform will be default I mean

play05:25

it's pretty much already selected for

play05:27

you the only thing that you got to

play05:28

change is nightly and then once you have

play05:30

this you're going to make sure that

play05:31

you're going to uh take this right

play05:34

you're going to take this code right

play05:36

here copy it however you'd like and

play05:38

you're going to come into this terminal

play05:40

after you've run everything and you're

play05:41

going to put pyour just like that and

play05:44

it's going to run okay now again I have

play05:47

it already I don't know I'm G that's

play05:50

there going to be a theme in this video

play05:51

I already have that so it says already

play05:54

already installed already satisfied um

play05:57

you guys would get something different

play05:58

you get you guys would get like a whole

play06:00

bunch of loading things and everything

play06:01

like that but with me I'm getting

play06:02

already satisfied so now we have Brew

play06:05

Python and pytorch so we're just about

play06:07

ready to get the ball rolling now that

play06:09

we have everything that we need we're

play06:10

going to install com fui onto our

play06:12

MacBook and unlike trying to install com

play06:14

fui on a Windows where you would have to

play06:16

get clone comfy UI onto your windows and

play06:19

then use a seven zip extractor to get it

play06:21

out and do all this stuff with U Mac

play06:24

it's actually really simple what you're

play06:25

going to do you're just going to copy

play06:26

this git clone right here and you're

play06:28

going to pretty much CD into whichever

play06:30

directory that you want to be in so

play06:32

right now by default in my terminal I'm

play06:33

in the root of my Mac so you can see you

play06:35

could tell that by this little sign

play06:37

right here this little like curvy sign I

play06:39

forgot what that's called but if you

play06:40

want to know where you are in your Mac

play06:42

all you do is type

play06:44

PWD and it'll show you I'm in the users

play06:47

chukua directory right but what's in

play06:49

that directory all you would do is type

play06:51

LS and it will list everything that's in

play06:54

that directory now me personally I'm

play06:56

going to clone comfi onto my desktop you

play06:59

can do do it into your downloads you can

play07:00

do it into your documents folder you can

play07:02

do whatever you'd like but I personally

play07:04

love to put things on my desktop because

play07:05

it's just easy access quick access so

play07:07

I'm going to now move into that

play07:10

directory by typing in CD and then

play07:13

desktop boom now I'm in desktop and

play07:16

again you can always check by doing PWD

play07:18

and it says it right there users chub

play07:20

Maga desktop so now we're going to get

play07:24

clone comei onto our desktop and all you

play07:26

have to do is command V now if you want

play07:29

to make it more sturdy people would

play07:31

probably get clone comi into another

play07:33

folder because sometimes you may want

play07:36

like all your AI stuff in one folder

play07:37

like let's say automatic 11 comfy UI all

play07:41

within an AI image generation folder but

play07:43

for now I want to keep it simple and

play07:45

just come and just clone it right there

play07:46

onto my desktop so now that we have it

play07:48

in our terminal we're in our desktop

play07:50

we're going to say get clone we're going

play07:51

to press enter and it's going to start

play07:54

cloning in and it's pretty quick and you

play07:55

could tell that it's there now because

play07:57

you'll see comfy UI right here now that

play08:00

we have comfy UI installed we're going

play08:02

to need to run one more command but

play08:03

before we do that I do want to show you

play08:05

guys what the comfy UI would look like

play08:07

so again if you open the comfy UI folder

play08:10

you're going to see all these things and

play08:11

this might say look a little daunting at

play08:13

first but they all mean something and

play08:14

it's not that hard I I'll teach you guys

play08:16

and we'll walk through it but before we

play08:18

go through all this there is one command

play08:20

that needs to be run and I'm not going

play08:21

to lie I actually had a hard time once I

play08:23

got to this part of the installation

play08:26

process and I would have to shout out AI

play08:30

animation they really helped me with a

play08:32

lot of this stuff right here AI

play08:34

animation great YouTube channel talks

play08:36

about all types of AI stuff and um they

play08:38

actually literally they they actually

play08:40

pretty much solved the issue here there

play08:42

weren't a lot of there wasn't a lot of

play08:44

info about how to get past this part or

play08:46

at least get past this part correctly

play08:49

and these guys really help me figure

play08:51

that out so this this video probably

play08:52

wouldn't even be possible as soon as

play08:54

it's being made if not for AI animation

play08:56

so definitely go show them some love I

play08:57

got to really appreciate them but now

play08:59

because of them we have the next step

play09:01

and we're going to get even deeper like

play09:02

I said now we have com fui here on our

play09:04

desktop so now we need a CD into desktop

play09:07

so we're going to CD into

play09:09

desktop great we've cded into desktop

play09:12

and what's funny is that as we're moving

play09:14

through each folder path you'll see this

play09:18

top part change it'll change into

play09:20

wherever you are so that's a good way of

play09:21

knowing where you are along with the PWD

play09:24

command so now we're going to uh CD into

play09:27

comfy UI you don't have to worry about

play09:29

capitalization or anything it'll

play09:31

automatically just go straight into that

play09:32

one so CD into comi but again if you

play09:35

never know it says it right here comi

play09:38

and you see how I didn't have to worry

play09:39

about capitalization uh Capital C

play09:41

Capital UI it's it's the same exact

play09:44

thing there and again if you ever want

play09:46

to know where you are PWD and you'll

play09:48

find it right there and you know one

play09:50

more tip and trick if you type in CD

play09:52

Dash it'll take you back into the

play09:55

previous directory so now I'm back in

play09:57

the desktop directory and you can see

play09:58

that at at the top right here uh

play10:00

reflecting that chain but we're going to

play10:02

go back into com fui and we have to run

play10:04

this command pip 3 install dasr

play10:07

requirements. text now what does this

play10:09

command do well if you go back into this

play10:11

comfy UI folder you'll actually see it

play10:13

right here requirements. text and if you

play10:15

open that up it'll show you what is

play10:18

actually needed to run comfy UI and

play10:20

basically all that is going to do is

play10:22

that once you run that command it's

play10:24

going to run that script to get what's

play10:27

needed for comfy UI so again we're just

play10:29

going to ex out out of that and we're

play10:30

going to run the command simple as that

play10:32

so you see now again like I said I've

play10:35

run this all before so you're going to

play10:37

I'm getting requirement already

play10:38

satisfied um but because it's already on

play10:41

my Mac but some but you guys would get

play10:42

like long loading things and everything

play10:44

like that but it's still not that long

play10:46

usually takes about a minute or two so

play10:48

now we have comfy UI on our laptop Mac

play10:53

whatever and let's run it while still

play10:56

being in this directory you're going to

play10:58

type in Python on 3

play11:03

main.py okay now that that's just

play11:06

activating this file right here that

play11:09

actually runs comfyi so once you press

play11:12

enter on this command it's going to

play11:15

activate comfyi it's going to take a

play11:17

little bit of time but it's going to

play11:18

activate comfi and once comfyi is

play11:21

activated you're going to take this HTTP

play11:23

address right here you're going to copy

play11:25

that bad boy you're going to paste that

play11:26

bad boy right here and boom you have

play11:30

comfyi ready to go oh actually not

play11:34

really you don't have comfy UI ready to

play11:35

go because you actually don't have any

play11:38

models to use so look if you click right

play11:41

here you need to load a checkpoint a

play11:44

Model A Safe tensor you need this in

play11:46

order for it to work and as you can see

play11:49

right now it says undefined so if I try

play11:51

to queue a prompt it will not work it'll

play11:53

actually give me prompt outputs failed

play11:55

validation so we need to go get a model

play11:57

now when it comes to models different

play11:59

models will actually require different

play12:00

levels of vram so I'm actually going to

play12:02

get like a nice chill model so that we

play12:05

can run this very fast and very

play12:06

effectively so the model we're going to

play12:08

download for this one is a very chill

play12:09

very usable stable diffusion v15 model

play12:13

um obviously there are much better

play12:14

models but it's it's just a nice stable

play12:16

model that typically does not give a

play12:17

hard time and it's still very fast to

play12:19

use across all systems and we're going

play12:21

to download the v15 pruned emo only safe

play12:25

tensors be very wary about downloading

play12:28

models with checkpoints checkpoints are

play12:30

pretty much safe tensors they're pretty

play12:32

much the same thing it's just that

play12:33

checkpoints can carry malicious viruses

play12:36

it can C it can carry malware and you

play12:38

really do not want that so you want to

play12:40

take the safe tensor route normally and

play12:43

yeah you would just take that and you're

play12:44

going to download it it'll take some

play12:46

time a couple of minutes and once it's

play12:47

downloaded I'll show you what to do next

play12:49

awesome so now that it's downloaded

play12:51

what's going to happen is that we're

play12:52

going to open two finder windows or you

play12:55

can open one I mean you can kind of do

play12:56

however you want but here we have the

play12:58

down downloads folder right you you're

play13:00

going to navigate to where the downloads

play13:02

folder is on one of them and you can see

play13:04

where we have it v15 pruned Emil only

play13:07

save tensors right now I need you to

play13:09

navigate to your comfy UI folder and

play13:12

then in that folder you're going to get

play13:13

into the models folder and in that model

play13:15

folder you're going to get into the

play13:17

checkpoints folder and right here you're

play13:18

going to say put checkpoints here now

play13:20

again just to clear up any confusion a

play13:22

checkpoint and a model and a save tensor

play13:24

are all the same they're just templates

play13:26

that stable diffusion uses to base the

play13:28

images that you're generating off of it

play13:30

can get much deeper than that but that's

play13:32

basically what it is and you're just

play13:33

going to move

play13:34

this this into that there you have it so

play13:37

now we have it in our checkpoints okay

play13:40

great now you're going to come back to

play13:42

where comfy UI is now you're going to

play13:45

need to refresh this so you could this

play13:48

is literally a web page so you could

play13:49

literally um you know command R and

play13:51

refresh it or you could click refresh

play13:53

here perfectly fine either way that you

play13:55

want to do it and now you'll see that

play13:57

v15 uh prune EMA only save tensors is in

play14:01

there so now we finally have a model and

play14:04

we have our prompt beautiful scenery

play14:06

nature glass bottle landscape purple

play14:08

Galaxy bottle and then we have our

play14:09

negative prompt which is text Watermark

play14:12

now just to show you a little bit of how

play14:13

this works well actually before I get

play14:15

into how this works let's actually run

play14:16

the prompt now that we've run the prompt

play14:18

a few things that you can know is that

play14:19

if you you can always just grab the

play14:20

screen and move it around um on your

play14:23

MacBook using your trackpad you just you

play14:25

know scroll up and down to zoom up and

play14:27

down comfyi typically much faster than

play14:30

if you were to use automatic 1111 but

play14:32

still know that Mac in general when it

play14:34

comes to stable diffusion is a lot

play14:36

slower than a good PC so there's still a

play14:39

ways to go when it comes to stable

play14:41

diffusion on Mac but using com fyuui

play14:43

will on average be a lot faster than

play14:46

trying automatic 11-11 and look wow look

play14:49

at that look at what we got you know

play14:51

look we got this nice little thing and

play14:53

boom now you've generated your first

play14:55

ever image so this is really great um

play14:58

you don't have to just scroll in like

play14:59

that you can also click on this and then

play15:01

extend the image like so now we have our

play15:03

first ever image but there's a few

play15:05

things that you need to know about comfi

play15:07

so this is going to turn into a little

play15:08

bit of a crash course so first and

play15:10

foremost this is where you load in your

play15:12

checkpoint and your model from your

play15:14

checkpoint and your model you have to

play15:16

connect it to a prompt a positive prompt

play15:19

and a negative prompt and you connect it

play15:21

using these noodles so all you have to

play15:23

do is take this little dot you would

play15:24

click it and then you would connect it

play15:26

to here or connect it to there and stuff

play15:28

like that and that's basically what

play15:29

happens with the clip the clip connects

play15:31

to the positive and the negative prompt

play15:33

and then the positive and the negative

play15:35

prompt they connect well well

play15:38

technically speaking neither of these

play15:40

prompts are actually positive or

play15:42

negative they're not determined until

play15:44

these prompts are connected to the

play15:47

positive and negative sources in this

play15:49

sampler so you take this and it would

play15:52

connect to negative and you would take

play15:54

that and connect to positive so you can

play15:55

actually literally see this I can

play15:56

actually disconnect it so you see I just

play15:59

disconnected it so now again they're

play16:01

just prompts you don't they don't mean

play16:03

anything until you finally connect it to

play16:05

a positive or negative and you can

play16:06

connect the bottom to positive or the

play16:08

bottom to negative it doesn't really

play16:09

matter just obviously for organizational

play16:12

purposes negative is on the bottom

play16:14

positive is on top then you have the

play16:16

model now the model ption portion of

play16:18

this connects to the sampler itself and

play16:21

the sampler is what runs your image

play16:24

generation the sampler is what kind of

play16:26

creates the code and the process that

play16:28

creates the image that we're seeing over

play16:30

here right that's what the sampler does

play16:33

and it has a lot of different settings

play16:34

to it that oh we need not go into right

play16:37

now but the sampler has a lot of

play16:38

different settings and the more that you

play16:39

adjust these settings the more that you

play16:41

get and then you also have this latent

play16:43

image and all this does is determine the

play16:45

size of the image so if I change this

play16:48

from you know uh 10 to 1080 you know

play16:51

1080 by 1080 you would get a much bigger

play16:54

picture of course but we're not going to

play16:55

do that either right now and then this

play16:58

connect to the decode and the decode is

play17:00

what takes all the information and make

play17:02

and packages it nicely to create the

play17:04

image and place it right here so that's

play17:07

kind of what this whole process is and

play17:09

it's a set of noodles and all these are

play17:11

called nodes by the way so they're

play17:13

different nodes this is a checkpoint

play17:15

node a prompt node a sampler node but

play17:18

they're all nodes just for you to know

play17:20

and com fui can get way more Swifty but

play17:22

in order for it to get more shwifty

play17:24

you're going to need one more thing

play17:26

which is the comfy UI manager that helps

play17:28

organize this whole stuff and add much

play17:31

more to this and make this a much more

play17:33

robust program than what we're seeing

play17:35

right now so let's get into that so

play17:36

you're going to come over to this link

play17:38

and again everything in the video will

play17:40

be linked down below the way that we're

play17:42

going to do it there's a couple ways to

play17:44

do it um but I like this way the most

play17:46

cuz again when you learn the terminal

play17:48

it's even better um what happen is that

play17:50

you're going to CD into custom nodes so

play17:52

we're going to actually show you another

play17:53

nice way to do this see custom nodes let

play17:56

me show you where custom nodes is custom

play17:58

nodes is just another folder in your

play18:00

comfy UI directory so you got to get

play18:02

into custom nodes right now the thing is

play18:04

that in order to get into custom nodes

play18:06

yes you could do the CD into CD into CD

play18:09

to get there but what you could do also

play18:11

is that you can go to this terminal

play18:13

right now what we're going to do

play18:15

actually we're going to open up a new

play18:17

terminal window just open up a new

play18:19

window and what's going to happen now

play18:22

you could now again you could actually

play18:23

close the com UI if you want but I'm

play18:26

just going to leave it running and we're

play18:27

going to open up a new window and what's

play18:30

going to happen is that we're going to

play18:31

type CD so we're going to change

play18:34

directory that's what CD stands for

play18:35

change directory and you're going to

play18:37

drag custom nodes in here and it's

play18:39

actually going to copy the path file so

play18:42

um or rather the path name and then you

play18:45

just click enter and now you have cded

play18:47

into custom nodes and again you can see

play18:49

it right here custom nodes is right here

play18:52

and you're going is going to go back to

play18:53

the link and you're going to take this

play18:54

whole thing get clone you're going to

play18:56

get this whole thing get clone HTTP

play18:59

GitHub and then now that you're in here

play19:01

you're going to get clone it into custom

play19:03

nose that

play19:05

folder and you see it's going to clone

play19:07

comfy UI into it so remember we still

play19:09

have comfy UI running so now that we've

play19:11

cloned The Comfy UI manager into comfy

play19:13

UI you are going to need to stop the

play19:15

comfy UI software from running and then

play19:17

restart it so in order to do that all

play19:19

you got to do is just X Out the terminal

play19:21

that is running in pretty simple you

play19:23

just exit out and that will terminate

play19:25

comfy UI like as you can see right here

play19:27

you'll see that it now turns into into

play19:28

reconnecting because the terminal is no

play19:31

is no longer running so we just got to

play19:32

make our way back into the comfyi folder

play19:35

so you again you can use the same method

play19:37

CD into comy UI like I just did I

play19:39

dragged and dropped it over there and

play19:40

then we're going to do Python 3

play19:45

main.py again and it's going to start

play19:47

running everything up just like normal

play19:49

and you're going to take that link and

play19:51

you can you can actually highlight this

play19:53

then double click it and then um open

play19:55

link and it'll just open default into

play19:57

the same same thing and then boom now

play19:59

you're going to see something different

play20:00

you're going to see manager and now

play20:03

we're cooking with oil cuz check this

play20:05

out now that you have the comf UI

play20:07

manager there's going to be a lot of

play20:08

things that you can do so first off you

play20:10

can install models so you see how we

play20:12

were taking models before we had to go

play20:14

to hugging face or civid AI in order to

play20:16

get models you don't need to do that

play20:18

anymore at least for some models and

play20:21

some nodes and some ups scalers and

play20:22

things of that nature you can literally

play20:24

just download them into comfy UI and

play20:28

them from there so for example right

play20:30

let's close this for a second as you can

play20:32

see let's close this as you can see we

play20:34

only have one model to use v15 pruned

play20:38

okay great when you go into

play20:41

manager and you click install models

play20:45

right there are different types here

play20:47

there's upscale models that's for making

play20:49

the the the face better there's face

play20:52

restore models that help to rebuild the

play20:54

face if the AI gets it wrong and so on

play20:56

and so forth and then there are

play20:57

checkpoint points this one is for stable

play20:59

diffusion video models which we will get

play21:01

into um on another video but then there

play21:03

are some St some regular ones like

play21:05

checkpoints that you can use like sdxl

play21:07

turbo there's also control net there's a

play21:09

lot of things that you can do here but

play21:10

for now we're actually going to keep it

play21:12

very very simple we're going to download

play21:13

just another version of a model so check

play21:16

this out all you would have to do let's

play21:18

see sdxl turbo we would install that and

play21:21

if you want to learn how to use sdxl

play21:23

turbo which allows for realtime image

play21:25

generation you can actually go check out

play21:27

this video here where I talk about it

play21:29

and set it up with you so it's pretty

play21:31

big stuff and by the way if you're

play21:32

liking the video so far and I've been

play21:33

able to help you please remember to like

play21:35

And subscribe it takes this channel to a

play21:37

whole another level and I'd really

play21:38

appreciate it thank you so now you can

play21:41

see that it's installing sdxl turbo one

play21:43

it'll take some time but once it's

play21:45

installed it'll just say installed and

play21:47

then we can move forward and you'll see

play21:48

it right there in the model checkpoint

play21:50

and boom now it's installed to apply the

play21:51

installed model please click the refresh

play21:54

button on the main menu so we're just

play21:55

going to click close then we're going to

play21:57

again and close this we're going to

play21:59

click refresh now that it's been

play22:01

refreshed if you click on this you see

play22:03

sdxl turbo and we could change it but

play22:05

we're not going to use that right now

play22:06

we're going to stick with the uh v15

play22:08

safe tensors so that's how you're now

play22:10

able to install models into your system

play22:12

another cool thing that you could do

play22:13

when it comes to comfy UI you can bring

play22:15

images that were created in comfy UI

play22:18

into your own comf UI and it will

play22:20

literally show the workflow that made

play22:22

that so I'm going to show you right now

play22:24

with one of the images that I made a

play22:26

while back ago so here I have an

play22:28

attractive black woman that I had made

play22:29

and so if I drag and drop this into the

play22:32

UI you see that it just changed the

play22:34

whole workflow you can literally see

play22:36

what I did to create the black woman

play22:38

you'll see that it used what I created

play22:39

to make the prompt you'll see that uh it

play22:42

had dream Shapers which I don't have

play22:44

right now this is a different comy UI um

play22:47

you see that I also had used an upscaler

play22:50

and up I had used a couple ups scalers

play22:52

and stuff now if I cue The Prompt it

play22:54

won't work because look see prompt

play22:56

outputs validation you know the

play22:58

checkpoint loader it doesn't have that

play23:00

checkpoint and so on and so forth so as

play23:02

a result it can't use it I'll need to

play23:04

download these things now the beautiful

play23:07

thing is that it shows you what you need

play23:08

to download so I would just need to get

play23:10

the dream shaper safe tensors and says

play23:12

value not en list model name forx anime.

play23:15

paath so I would need to get this as

play23:17

well and then you know once you're able

play23:20

to get those you would be able to move

play23:21

forward so that's the beauty of it you

play23:23

can bring an image that was made in

play23:25

comfi into your own comfyi so that you

play23:27

can see the workflow that was used to

play23:30

create that same exact image and try to

play23:32

replicate it yourself which is very

play23:34

powerful when you're trying to have as

play23:35

much control as possible over the images

play23:37

that you're trying to create another

play23:38

thing about the comfy UI manager is that

play23:40

whenever you want to update comfy UI

play23:42

itself you can literally just say update

play23:44

com UI or update all meaning that you

play23:46

would update the nodes the models

play23:48

everything which can also help you out a

play23:50

lot you can also install missing custom

play23:52

nodes basically meaning that whenever

play23:54

you do take someone's workflow and it

play23:56

has all types of nodes um that you don't

play23:59

have you can install it doing that way

play24:01

and if you already have automatic 1111

play24:03

here's a nice cool tip that you could

play24:04

use instead of R downloading every model

play24:07

from hugging face or civid AI if you

play24:09

already have a folder where you keep all

play24:11

of your models you can redirect the path

play24:14

of comfy UI that looks for models to

play24:17

another folder and this is how you would

play24:19

do it you see how in comfy UI there's

play24:21

this thing called extra modore paths.

play24:24

yl. example what you're going to do is

play24:27

that you're going to rename this

play24:29

file rename it and you're just going to

play24:31

get rid of the example part so get rid

play24:34

of example press enter and then it says

play24:36

use. yo now that you've renamed it

play24:39

you're going to need to open this up in

play24:40

a text editor now I don't know what your

play24:42

default text editor is but for many of

play24:44

us we could really just use um text edit

play24:47

that comes with Mac if not text edit

play24:49

maybe notes or whatever but you know and

play24:51

there's all types of text editors you

play24:52

can use brackets Visual Studio code you

play24:54

can see I even have X code by default

play24:56

but we're just going to use text edit

play24:57

for now

play24:58

and what happens is if you already have

play25:01

automatic 1111 you can actually go you

play25:04

can actually set the path to wherever

play25:06

you're keeping your models in that

play25:08

folder so let me show you what I mean by

play25:11

that as you can see where I keep my

play25:14

automatic 1111 is in my home directory

play25:16

and then you would go to stable

play25:17

diffusion D webui then you would scroll

play25:20

down and I would go to models and then

play25:22

boom I would go to stable diffusion and

play25:24

here are all my models right but you're

play25:26

not going to actually give it that whole

play25:28

path what you're going to do you're just

play25:30

going to come to where you have stable

play25:31

diffusion D webui and you're going to

play25:34

right click on this and then you're

play25:35

going to hold down option and then

play25:37

you're going to see copy stable Das

play25:40

diffusion webui as path name and you're

play25:43

going to click that okay then you're

play25:45

going to come over here where it says

play25:46

base path you're going to remove this

play25:51

and you're going to copy the path that's

play25:53

there great then you're going to save

play25:55

file save boom now the extra models path

play25:59

is saved now that you've changed the

play26:01

path you will have to restart comfy UI

play26:04

so again you're just going to come over

play26:06

here you're going to ex out this bad boy

play26:09

pretty simple stuff then you're going to

play26:10

open up another terminal you're going to

play26:12

CD your way into that folder but you can

play26:14

literally just drag this folder into

play26:16

there and then boom now you've cded your

play26:18

way in and you're going to do Python 3

play26:23

main.py and it's going to start it up

play26:25

again like normal you're going to head

play26:27

over over to that

play26:28

link open

play26:31

link and now when you when you look it

play26:33

up boom you see all the models that I

play26:37

already had in my automatic 1111 can now

play26:40

be used here so let's try out dream

play26:42

shaper right this is where we had the

play26:44

dream shaper remember we didn't have the

play26:46

dream shaper before so now that we have

play26:48

the dream shaper now the only thing that

play26:51

we don't have is this upscale model but

play26:54

we could just delete those for a little

play26:56

bit right now let's delete those and

play26:58

we're just going to put the image here

play27:00

and let's see what dream Shapers gives

play27:01

us and the beautiful thing is that while

play27:03

you're waiting on this if you look in

play27:05

the terminal you can actually see the

play27:07

percentage you can also see it here

play27:09

about what's loading up um you know the

play27:11

green bar is also showing you what's

play27:13

loading up but if you want to see a more

play27:14

specific version it says 65% 70% in the

play27:18

terminal itself so that's always cool to

play27:20

know to see how long it's taking for you

play27:22

and then it's going to go into the

play27:23

decoder and again you know it's loading

play27:25

one new model and everything and in a

play27:27

few seconds we should have it

play27:29

ooh not

play27:33

bad definitely leave a like definitely

play27:36

subscribe your boy Chelli just made his

play27:39

wife like this is not bad this is not

play27:42

bad now of course you could always take

play27:44

this to another level right add some

play27:45

upscaler add some different you know um

play27:48

features that you would want with this

play27:49

but here we have it here we have it this

play27:52

is what kyui is able to create and it's

play27:55

in our control and that's the Beauty and

play27:58

it wasn't that hard now was it now again

play28:00

if you have a M2 or an M3 MacBook the

play28:04

generation will be a little faster

play28:06

especially if you have like a M3 Max and

play28:07

things like that the generation will be

play28:09

faster but um this is comfi in a

play28:12

nutshell there are definitely some comfi

play28:13

resources that you can use you see

play28:15

comfyi examples it shows you like you

play28:17

know image to image what that would look

play28:19

like and how you would go through it

play28:21

hyper networks all that types of stuff

play28:23

it's pretty impressive stuff um there's

play28:25

also the GitHub the GitHub also shows

play28:27

you a lot of what you can do here and

play28:28

also redddit as you can see here a few

play28:30

examples of my comfyi look at them look

play28:32

at this and you know this you know

play28:33

Reddit is always a budding Community for

play28:35

anyone who's trying to learn anything

play28:36

right we already know this so you have

play28:38

Reddit there's definitely a lot of

play28:39

things that you can look at um but yeah

play28:41

you know there's a lot going on here you

play28:43

look a beginner's guide to come for UI I

play28:45

personally like this website a lot

play28:46

stable diffusion dart.com um a link will

play28:49

be in the description really good

play28:51

website it kind of gets you up to date

play28:53

and kind of gets the ball rolling for a

play28:54

lot of AI image generation oh and you

play28:56

know what here's also also the settings

play28:58

shows you a little a lot of different

play28:59

settings I personally you don't really

play29:01

need to mess around too much with these

play29:02

settings but there's definitely a lot of

play29:04

things in the settings that you could

play29:05

look over like um it does show you

play29:07

different colors that you could use so

play29:09

if you use solariz and things like that

play29:11

or Nord you know there's definitely

play29:13

different colors me personally I just

play29:14

use dark by default and there's

play29:16

definitely other things here you can

play29:17

always play around with this stuff but

play29:18

for the most part um not not much that's

play29:21

really going to change anything and um

play29:23

there's definitely other stuff here but

play29:25

that is the bulk of com fui for Mac I

play29:27

genuinely appreciate you guys for

play29:29

watching please stay tuned for more

play29:31

videos about com fui sdxl stable

play29:33

diffusion AI in general if you really

play29:35

appreciate it remember to like And

play29:36

subscribe I will appreciate that in

play29:39

return and please have a great day chuku

play29:41

buam Chelli out

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
ComfyUIインストールMac対応AI画像生成自動1111MidJourneyチュートリアルPythonHomebrewStable Diffusion
¿Necesitas un resumen en inglés?