Skip to content

Commit 5d1b54d

Browse files
committed
update readme
1 parent 18156bf commit 5d1b54d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,42 @@ The majority of scripts is licensed under ASL 2.0 (including codes from Diffuser
140140

141141
## Change History
142142

143+
### 15 Jun. 2023, 2023/06/15
144+
145+
- Prodigy optimizer is supported in each training script. It is a member of D-Adaptation and is effective for DyLoRA training. [PR #585](https://github.com/kohya-ss/sd-scripts/pull/585) Please see the PR for details. Thanks to sdbds!
146+
- Install the package with `pip install prodigyopt`. Then specify the option like `--optimizer_type="prodigy"`.
147+
- Arbitrary Dataset is supported in each training script (except XTI). You can use it by defining a Dataset class that returns images and captions.
148+
- Prepare a Python script and define a class that inherits `train_util.MinimalDataset`. Then specify the option like `--dataset_class package.module.DatasetClass` in each training script.
149+
- Please refer to `MinimalDataset` for implementation. I will prepare a sample later.
150+
- The following features have been added to the generation script.
151+
- Added an option `--highres_fix_disable_control_net` to disable ControlNet in the 2nd stage of Highres. Fix. Please try it if the image is disturbed by some ControlNet such as Canny.
152+
- Added Variants similar to sd-dynamic-propmpts in the prompt.
153+
- If you specify `{spring|summer|autumn|winter}`, one of them will be randomly selected.
154+
- If you specify `{2$$chocolate|vanilla|strawberry}`, two of them will be randomly selected.
155+
- If you specify `{1-2$$ and $$chocolate|vanilla|strawberry}`, one or two of them will be randomly selected and connected by ` and `.
156+
- You can specify the number of candidates in the range `0-2`. You cannot omit one side like `-2` or `1-`.
157+
- It can also be specified for the prompt option.
158+
- If you specify `e` or `E`, all candidates will be selected and the prompt will be repeated multiple times (`--images_per_prompt` is ignored). It may be useful for creating X/Y plots.
159+
- You can also specify `--am {e$$0.2|0.4|0.6|0.8|1.0},{e$$0.4|0.7|1.0} --d 1234`. In this case, 15 prompts will be generated with 5*3.
160+
- There is no weighting function.
161+
162+
- 各学習スクリプトでProdigyオプティマイザがサポートされました。D-Adaptationの仲間でDyLoRAの学習に有効とのことです。 [PR #585](https://github.com/kohya-ss/sd-scripts/pull/585) 詳細はPRをご覧ください。sdbds氏に感謝します。
163+
- `pip install prodigyopt` としてパッケージをインストールしてください。また `--optimizer_type="prodigy"` のようにオプションを指定します。
164+
- 各学習スクリプトで任意のDatasetをサポートしました(XTIを除く)。画像とキャプションを返すDatasetクラスを定義することで、学習スクリプトから利用できます。
165+
- Pythonスクリプトを用意し、`train_util.MinimalDataset`を継承するクラスを定義してください。そして各学習スクリプトのオプションで `--dataset_class package.module.DatasetClass` のように指定してください。
166+
- 実装方法は `MinimalDataset` を参考にしてください。のちほどサンプルを用意します。
167+
- 生成スクリプトに以下の機能追加を行いました。
168+
- Highres. Fixの2nd stageでControlNetを無効化するオプション `--highres_fix_disable_control_net` を追加しました。Canny等一部のControlNetで画像が乱れる場合にお試しください。
169+
- プロンプトでsd-dynamic-propmptsに似たVariantをサポートしました。
170+
- `{spring|summer|autumn|winter}` のように指定すると、いずれかがランダムに選択されます。
171+
- `{2$$chocolate|vanilla|strawberry}` のように指定すると、いずれか2個がランダムに選択されます。
172+
- `{1-2$$ and $$chocolate|vanilla|strawberry}` のように指定すると、1個か2個がランダムに選択され ` and ` で接続されます。
173+
- 個数のレンジ指定では`0-2`のように0個も指定可能です。`-2``1-`のような片側の省略はできません。
174+
- プロンプトオプションに対しても指定可能です。
175+
- `{e$$chocolate|vanilla|strawberry}` のように`e`または`E`を指定すると、すべての候補が選択されプロンプトが複数回繰り返されます(`--images_per_prompt`は無視されます)。X/Y plotの作成に便利かもしれません。
176+
- `--am {e$$0.2|0.4|0.6|0.8|1.0},{e$$0.4|0.7|1.0} --d 1234`のような指定も可能です。この場合、5*3で15回のプロンプトが生成されます。
177+
- Weightingの機能はありません。
178+
143179
### 8 Jun. 2023, 2023/06/08
144180

145181
- Fixed a bug where clip skip did not work when training with weighted captions (`--weighted_captions` specified) and when generating sample images during training.

0 commit comments

Comments
 (0)