Fooocus 2.2.0 Update – Prompt Array | Metadata | & More! (Stable Diffusion)

Jump Into AI
3 Mar 202409:14

Summary

TLDRこの動画は、Focus更新プログラムの重要な変更点について説明しています。主な変更点は、出力ファイル形式の選択肢が増えたこと、Loraのオン/オフ切り替えが簡単になったこと、Loraの重み付け範囲が拡大されたこと、中間結果の非表示オプションが追加されたこと、固定シードでの連続生成がしやすくなったことなどです。また、プロンプトにおける配列入力のサポート、メタデータの画像への埋め込み機能、モデルとLoraのパスを複数指定できるようになった点も紹介されています。これらの改善により、ユーザーの利便性が大幅に向上したことがわかります。

Takeaways

  • 📌 このビデオでは、Focus更新プログラムの重要な改善点について説明しています。
  • 🖼️ 新しい出力フォーマット(PNG、JPG、WebP)がサポートされるようになりました。
  • ✅ LORAsのチェックボックスが追加され、簡単にオン/オフできるようになりました。
  • ➕ デフォルトのMax LORAsの重みを+/-2を超えて設定できるようになりました。
  • ⭐ プリセットを使って設定を保存・変更することが推奨されています。
  • 🚫 「disable intermediate results」を有効にすると、複数画像の生成中に完了した画像が表示されなくなります。
  • 📝 「disable seed increment」を有効にすると、配列プロンプトを使って同一シードで複数の画像をレンダリングできます。
  • 💾 「save metadata to images」を有効にすると、メタデータが画像に保存され、後で設定を復元できます。
  • 📂 モデルとLORAsの追加パスを設定ファイルに追加できるようになりました。
  • 📝 設定ファイルの変更は、プリセットを使って行うことが推奨されています。

Q & A

  • この動画では、どのようなアップデートについて説明されていますか?

    -この動画では、Focus (AI画像生成ツール) の新しいアップデートについて説明されています。特に、要求の多かった重要な改善点に焦点を当てています。

  • 新しいアウトプットフォーマットはどのようなものですか?

    -以前はPNG形式のみでしたが、新しくJPGとWebPの出力フォーマットがサポートされました。これにより、ファイルサイズを小さくすることができます。

  • LORAsを有効/無効にする新機能について説明してください。

    -LORAsの横にチェックボックスが追加され、LORAsを簡単に有効または無効にできるようになりました。これにより、LORAsの重みを0にする必要がなくなり、より手軽に切り替えられます。

  • 最大LORAs重みの設定範囲が拡張されたのはどのような理由からですか?

    -一部のLORAsが+3や-3などの高い重みを必要とするため、従来の範囲では不十分でした。この変更により、そうしたLORAsを完全に活用できるようになりました。

  • プリセットの作成方法について説明されていますか?

    -はい、プリセットの作成方法が簡単に説明されています。config ファイルを直接編集するのではなく、プリセットを作成して設定を変更することが推奨されています。

  • 新しい「disable intermediate results」機能の目的は何ですか?

    -この機能を有効にすると、複数の画像を生成する際、現在生成中の画像のみが表示され、完了した画像はプロセス終了までサイドに表示されなくなります。

  • 「disable seed increment」機能と新しい配列プロンプトの関係を説明してください。

    -この機能を有効にすると、同じシードで配列プロンプトを使って複数の画像を生成できます。これにより、色やテキストの変化のみを比較することができます。

  • メタデータの保存機能についてどのように説明されていますか?

    -生成した画像にメタデータ (使用した設定など) を埋め込むことができるようになりました。この機能は長らく要求されていましたが、プライバシーの観点から搭載が遅れていました。

  • 複数の場所にあるモデルやLORAsをどのように扱えるようになりましたか?

    -config ファイルにパスを追加することで、複数の場所にあるモデルやLORAsを登録できるようになりました。この変更により、より柔軟な運用が可能になります。

  • この動画全体を通して、どのような主なメリットが強調されていますか?

    -この動画では、長年要望されていた機能が実装されたことで、ユーザーの利便性が大幅に向上したことが強調されています。ツールの柔軟性と効率性が高まったと言えるでしょう。

Outlines

00:00

👨‍💻 Focus 更新で追加された主な新機能

この動画では、Focus の最新アップデートで追加された主な新機能について説明しています。まず、画像出力形式として PNG に加えて JPG や WebP が選択できるようになりました。次に、Loras のチェックボックスが追加され、Loras の有効/無効を簡単に切り替えられるようになりました。また、Loras のデフォルト最大重み付けが +/- 2 を超えて設定可能になり、高い値の Loras の活用が可能になりました。さらに、複数の Loras を使用できる上限値を増やすこともできます。

05:01

🔧 その他の新機能と設定

この動画の後半では、その他の新機能と設定変更方法について説明しています。新しい「disable intermediate results」と「disable seed increment」の設定が追加され、中間結果の表示方法やシード値のインクリメントをコントロールできるようになりました。また、テキストプロンプト内で配列構文を使って、一度に複数のバリエーションを生成することが可能になりました。さらに、画像メタデータの保存機能が追加され、画像生成時の設定を画像に埋め込むことができるようになりました。最後に、モデルとLoras の複数のパスを設定ファイルで指定する方法を紹介しています。

Mindmap

Keywords

💡出力フォーマット

画像の保存形式のことを指します。スクリプトでは、従来のPNG形式に加え、JPGまたはWebPを選択できるようになったことが説明されています。PNG形式は無損失で高品質ですが、ファイルサイズが大きくなる傾向があり、JPGやWebPはファイルサイズを小さくできる代わりに、多少の画質劣化があります。ユーザーの用途に合わせて選択できるようになったことが、この新機能の主なメリットです。

💡Aura

画像生成AIモデルにおける、追加の制御用パラメータのことを指します。Auraを有効/無効化することで、画像生成の細かな調整が可能になります。スクリプトでは、Auraのオン/オフを素早く切り替えられるようになった点が、この更新の改善点として挙げられています。複数のAuraを使用する場合には、この機能が便利だと説明されています。

💡最大/最小重み

Auraの強さを調整するための数値のことです。従来は-2から+2の範囲に制限されていましたが、この更新により、その範囲を広げることができるようになりました。詳細ツィーカーなどの一部のAuraは、これまでの範囲を超える値が想定されていたため、新しい範囲設定により、そうしたAuraを最大限活用できるようになりました。

💡プリセット

設定を保存して後から呼び出せる機能のことです。様々な設定を試行錯誤する際に、プリセットを使えば設定の切り替えが容易になります。スクリプトでは、設定ファイルを直接編集するのではなく、プリセットを使うことが推奨されています。プリセットを使えば設定ファイルが上書きされるリスクを回避できるためです。

💡デバッグ機能

プログラムのエラーを発見・修正するための機能です。このソフトウェアでは、複数の画像生成時の中間結果の表示/非表示や、シード値の固定/増分を選択できるようになりました。中間結果の表示はユーザーエクスペリエンスに影響し、シード固定は同一の設定で違う画像を生成する際に使えます。

💡配列プロンプト

プロンプトに組み込む新しい書式のことです。中括弧{}内にコンマ区切りで複数の単語やフレーズを入力することで、それらの組み合わせで画像を生成できます。例えば{赤,青,緑}のTシャツを着た人物のイメージを、赤、青、緑のTシャツの3種類で生成できます。この新機能により、ワイルドカードを使うよりも柔軟で直感的にバリエーションのある画像を生成できるようになりました。

💡シード固定

通常、異なる画像を生成する際にはランダムなシード値が割り当てられますが、この機能を有効にすると、同じシード値を使い続けることができます。配列プロンプトと組み合わせると、設定を変えつつほぼ同一の背景で異なる被写体を生成できるので、違いを比較しやすくなります。シード固定なしだとランダム性が高く、画像間の差が大きくなります。

💡メタデータ保存

生成した画像にその設定情報を埋め込む機能です。これにより画像からその生成条件を読み取り、後からその設定を再現できるようになります。従来はこの機能がないため、設定を手動で記録する必要がありましたが、この新機能で作業効率が上がります。プライバシー保護の観点から任意で有効/無効を選べます。

💡パス指定

モデルやAuraのファイルパスを指定できるようになった機能です。これにより、複数の保存場所にあるファイルをまとめて使えるようになります。スクリプトでは設定ファイルにパスを追加する方法が説明されており、この機能でファイル管理が容易になります。

💡更新の必要性

スクリプト全体を通して、この回のソフトウェア更新が、長らく要望されていた機能改善を実装したことが強調されています。ユーザーからのフィードバックに基づいて使いやすさが向上し、柔軟性と生産性が高まったことが、この更新のメインメッセージといえます。定期的な改善は、ソフトウェアを進化させ、ユーザーニーズに応えていくために重要です。

Highlights

The Focus update introduced important improvements that have been requested for a while.

New output formats like JPG and WebP were added in addition to PNG.

Checkboxes were added to easily activate or deactivate LORA without changing weights.

Max weights for LORAs can now go beyond +/- 2.

Presets can be used to modify config settings like max LORA weights and number of LORAs.

New option to disable intermediate results and only show the current generation image.

New option to disable seed increment, allowing generation of multiple images on the same seed.

Support for arrays in prompts, enabling generation of multiple unique images with variations.

Arrays in prompts can be used with disabled seed increment to compare variations on the same seed.

New option to save metadata to images, allowing easy reloading of settings from the image.

Metadata includes more information than the history log.

Multiple paths for models and LORAs can now be added to the config file.

Instructions on modifying the config file for presets and adding multiple paths.

Explanation of how arrays in prompts work and examples of their usage.

Recommendation to create and modify presets instead of directly editing the config file.

Transcripts

play00:00

in this video I want to talk about the

play00:01

new Focus update I normally don't cover

play00:03

the updates but this made some important

play00:05

improvements that have been requested

play00:07

for a while and I felt it was worth

play00:09

going over there are several small

play00:11

changes that won't concern or even be

play00:14

noticed by most but we do have a few

play00:16

nice quality of life improvements that

play00:18

we have been waiting for if you want to

play00:20

look at the official release notes I

play00:22

will leave that link in the description

play00:24

and you can check those out on the

play00:25

GitHub page now let's open up our focus

play00:28

and go into the advanced tab first major

play00:30

change is the new output format before

play00:32

we only had PNG option but now you can

play00:34

also select jpg or webp while we could

play00:38

have a whole other conversation on which

play00:40

one of these to use if you don't know

play00:42

yourself then PNG will be fine unless

play00:44

you are really concerned about file

play00:46

sizes as it is a lossless format meaning

play00:49

there is no compression jpg and webp are

play00:52

compressed and will be smaller but lose

play00:54

some detail and if you are downloading 6

play00:57

gig models without concern then using

play00:59

PNG will be fine moving on to the model

play01:02

tab we will see checkboxes next to the

play01:04

ls has been added now we can easily

play01:06

activate or deactivate Aur without

play01:08

having to remove it or turn the weight

play01:09

to zero if we wanted to shut it off a

play01:12

very helpful change when you want to

play01:14

quickly deactivate and then reactivate

play01:16

Aura without losing your weight settings

play01:19

this could get tedious when dealing with

play01:20

multiple luras when trying to test

play01:22

things out now another change here is

play01:25

the ability to have the default Max

play01:28

weights for Laura's go Beyond positive

play01:30

and negative2 most of the time you

play01:32

wouldn't want to go beyond these numbers

play01:34

but there are luras created out there

play01:36

that do go higher a big example is the

play01:39

detail tweaker Xcel it is designed to go

play01:41

as far as plus or minus three so up

play01:44

until now we couldn't utilize it

play01:46

entirely but we will have to change

play01:48

these settings ourselves manually in the

play01:51

past I would change the config text file

play01:52

directly but I would recommend creating

play01:55

and making changes in presets only now

play01:57

mostly because the config file

play01:59

occasionally gets overwritten plus it is

play02:01

good to leave the default settings alone

play02:03

if you don't know about presets I will

play02:05

add a video in the description showing

play02:07

how to create those so I have my old and

play02:09

new custom preset here which is just a

play02:11

copy of the default settings with my

play02:13

changes you can see some new lines that

play02:15

I have added for the new min max Laur

play02:18

settings we have these two lines here

play02:20

just to make it easier you can copy

play02:21

these lines from the config modification

play02:24

tutorial text file in your focus folder

play02:27

so you don't have to try to type them

play02:28

out yourself once added you can put

play02:30

whatever numbers you want I will use

play02:32

four for now but if I encounter aura

play02:35

that needs to go higher I can always

play02:36

come back and change this there is also

play02:39

this additional line here this allows us

play02:41

to use more luras than the standard five

play02:43

I have yet to use more than five but you

play02:45

can easily add this line in too and

play02:47

change the number to whatever you like

play02:49

this line can also be found in the

play02:51

modification text file now back in Focus

play02:54

I want to go to the advanced Tab and

play02:56

then into

play02:58

debug down at the bottom we will notice

play03:00

three new boxes disable intermediate

play03:03

results will make it so when generating

play03:05

multiple images you will only see the

play03:07

image currently being generated and will

play03:09

no longer see completed images on the

play03:12

side until the entire process is

play03:14

done this isn't something useful to me

play03:17

but I suppose if you would rather see

play03:18

the current Generation image in the full

play03:20

window than this is for

play03:23

you then we have disable seed increment

play03:25

what this does is when generating more

play03:27

than one image even on a fixed seed the

play03:29

next image will go up a number in the

play03:31

seed otherwise all the images will be

play03:33

exactly the same so how can we use this

play03:36

well that is where another new feature

play03:37

comes in and that is the new support for

play03:41

arrays how this works is similar to

play03:43

creating mini wild cards inside the text

play03:46

prompt so let's say we wanted four

play03:49

pictures of a woman with four different

play03:50

color shirts in one prompt so how would

play03:54

we write that using the new array

play03:55

support we would type a woman wearing a

play03:58

then for the colors we would would

play03:59

create two brackets then write our four

play04:02

different colors like this then end it

play04:05

with two brackets and then type t-shirt

play04:07

this can be two colors or as many colors

play04:10

as you want you just need to enable

play04:12

enough image generations to get all

play04:15

iterations if you have four colors we

play04:17

want four Images the other difference

play04:19

between this and wild cards is this will

play04:21

produce results in order of the input

play04:24

with wild cards it will choose words in

play04:26

a random order so doing it this way you

play04:28

will always get a red green blue black

play04:30

t-shirt in that order with this prompt

play04:33

this can also be used multiple times in

play04:35

the prompt such as this

play04:37

prompt and make sure your image number

play04:39

is high enough for the

play04:42

prompt this will create 12 Unique Images

play04:45

it might be confusing at first how these

play04:47

generate but it will go blond Man red

play04:50

brunette Man red then blond woman red

play04:54

brunette woman red then blonde man gream

play04:57

and so

play04:58

on so you can create multiple unique

play05:01

items this way very quickly without

play05:03

having to create a wild card every

play05:05

time and this isn't limited to single

play05:08

words either you can use entire phrases

play05:10

like this you just need to remember if

play05:12

you have multiple combinations of arrays

play05:14

that you will need to bump up the image

play05:16

number uh to compensate if there are 10

play05:19

possible images but I leave the image

play05:20

number at two it will only ever show the

play05:23

first two

play05:25

combinations now getting back to the

play05:26

disable seat increment setting with this

play05:29

enabled it will allow you to use the new

play05:31

array prompts and create all these

play05:33

images on the same seat which is

play05:35

beneficial when trying to compare the

play05:37

differences without the image changing

play05:39

too much now with all of these images on

play05:42

the same seed we get very similar images

play05:44

with just a shirt change it's not always

play05:46

this similar but the idea is you are

play05:48

seeing the same image on the same seed

play05:50

with only the color

play05:51

changed without this feature each of

play05:54

these images are going to be the next

play05:55

seed and you can see the differences are

play05:57

more pronounced since they are different

play05:59

seeds this setting really only works

play06:02

with the array prompts right now as far

play06:04

as I can tell even wild cards won't

play06:06

change on the same seed you will just

play06:08

get the same image over and over so keep

play06:10

that unchecked

play06:11

otherwise the last setting is the save

play06:14

metadata to images this is useful if you

play06:17

have been wanting your images to save

play06:19

the info onto the PNG in order to easily

play06:22

reload the settings you have used from

play06:23

the image this was a feature not

play06:25

included for a long time as the

play06:27

developer didn't want it included to

play06:29

protect data privacy of others but since

play06:32

it was such an in demand feature it was

play06:34

finally included as an option what it

play06:37

does is very similar to the history log

play06:39

but now it just attaches the information

play06:41

directly onto the image itself so if you

play06:44

have this enabled and create an image

play06:46

you can now go to your input image menu

play06:48

and you will see another new tab here

play06:50

called metadata and you can load and or

play06:52

drag and drop an image here as long as

play06:54

it has metadata enabled you should see

play06:56

this info with this you can apply the

play06:58

metadata and it will load all the

play07:00

settings used to create this

play07:02

image this is just like using the

play07:05

history log and using the copy to

play07:09

clipboard pasting into the text prompt

play07:12

then hitting load

play07:13

parameters the metadata does hold more

play07:16

information than the history log I have

play07:18

noticed if you set custom steps for

play07:20

something like lightning the history log

play07:22

doesn't load that parameter but

play07:24

otherwise is pretty similar so let's go

play07:26

back to our preset documents and you can

play07:28

see at the very very end we have three

play07:30

new lines this is only if you want to

play07:32

have metadata on by default same as

play07:34

before you can copy these lines from the

play07:36

modification text file have this set to

play07:39

true and make sure not to capitalize it

play07:42

metadata scheme is just the format which

play07:44

it is saved keep it at focus in the last

play07:46

line you can add a name if you want to

play07:48

tag your Creations but keep it blank if

play07:50

you are concerned about privacy you

play07:53

actually can drag in an image created in

play07:54

automatic 1111 or Forge to see the

play07:57

metadata here but it won't be able to be

play08:01

orted the last thing to mention is for

play08:04

those who have models and luras in

play08:06

multiple places you can now add all

play08:08

those paths to the config

play08:10

file to start this I will add a bracket

play08:13

here then a

play08:16

space add a parenthesis and paste in the

play08:19

extra location for my

play08:21

models add another parentheses a bracket

play08:24

to close it and a comma also the back

play08:28

slashes have to be double so you will

play08:29

have to add those in and you can leave

play08:32

it like this and it should work but if

play08:34

you want it to look more organized you

play08:36

can space some things out just hit enter

play08:38

here and tab then go over here and hit

play08:41

enter and

play08:43

tab and then between the last

play08:45

parentheses and bracket hit enter and

play08:48

tab it's not necessary but makes it a

play08:50

bit easier to read you can do the same

play08:52

for the luras if you have extra in a

play08:54

different location

play08:55

too once you save that you can start or

play08:58

refresh your focus and in the model tab

play09:01

the new models from the secondary

play09:02

Position will actually start at the

play09:03

bottom of the list in case you can't

play09:05

find them and I think that wraps this

play09:08

one up guys hope this was helpful and if

play09:10

you have any questions you know what to

play09:12

do see you in the next one

Rate This

5.0 / 5 (0 votes)

Related Tags
フォトジェニックAIアートチュートリアルアップデート設定Loraアレイ入力メタデータ高機能ユーザー主導
Do you need a summary in English?