diff options
author | Volpeon <git@volpeon.ink> | 2022-10-13 21:11:53 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-10-13 21:11:53 +0200 |
commit | 515f0f1fdc9a76bf63bd746c291dcfec7fc747fb (patch) | |
tree | cf4bbf1cae822cf7c7f388b6918154032def0376 /textual_inversion.py | |
parent | Added TI+Dreambooth training (diff) | |
download | textual-inversion-diff-515f0f1fdc9a76bf63bd746c291dcfec7fc747fb.tar.gz textual-inversion-diff-515f0f1fdc9a76bf63bd746c291dcfec7fc747fb.tar.bz2 textual-inversion-diff-515f0f1fdc9a76bf63bd746c291dcfec7fc747fb.zip |
Added support for Aesthetic Gradients
Diffstat (limited to 'textual_inversion.py')
-rw-r--r-- | textual_inversion.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/textual_inversion.py b/textual_inversion.py index 181a318..9d2840d 100644 --- a/textual_inversion.py +++ b/textual_inversion.py | |||
@@ -193,12 +193,6 @@ def parse_args(): | |||
193 | ), | 193 | ), |
194 | ) | 194 | ) |
195 | parser.add_argument( | 195 | parser.add_argument( |
196 | "--local_rank", | ||
197 | type=int, | ||
198 | default=-1, | ||
199 | help="For distributed training: local_rank" | ||
200 | ) | ||
201 | parser.add_argument( | ||
202 | "--checkpoint_frequency", | 196 | "--checkpoint_frequency", |
203 | type=int, | 197 | type=int, |
204 | default=500, | 198 | default=500, |
@@ -280,10 +274,6 @@ def parse_args(): | |||
280 | args = parser.parse_args( | 274 | args = parser.parse_args( |
281 | namespace=argparse.Namespace(**json.load(f)["args"])) | 275 | namespace=argparse.Namespace(**json.load(f)["args"])) |
282 | 276 | ||
283 | env_local_rank = int(os.environ.get("LOCAL_RANK", -1)) | ||
284 | if env_local_rank != -1 and env_local_rank != args.local_rank: | ||
285 | args.local_rank = env_local_rank | ||
286 | |||
287 | if args.train_data_file is None: | 277 | if args.train_data_file is None: |
288 | raise ValueError("You must specify --train_data_file") | 278 | raise ValueError("You must specify --train_data_file") |
289 | 279 | ||