summaryrefslogtreecommitdiffstats
path: root/textual_inversion.py
diff options
context:
space:
mode:
Diffstat (limited to 'textual_inversion.py')
-rw-r--r--textual_inversion.py10
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