MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / parse_args

Function parse_args

diffusers/examples/dreambooth/train_dreambooth.py:231–607  ·  view source on GitHub ↗
(input_args=None)

Source from the content-addressed store, hash-verified

229
230
231def parse_args(input_args=None):
232 parser = argparse.ArgumentParser(description="Simple example of a training script.")
233 parser.add_argument(
234 "--pretrained_model_name_or_path",
235 type=str,
236 default=None,
237 required=True,
238 help="Path to pretrained model or model identifier from huggingface.co/models.",
239 )
240 parser.add_argument(
241 "--revision",
242 type=str,
243 default=None,
244 required=False,
245 help="Revision of pretrained model identifier from huggingface.co/models.",
246 )
247 parser.add_argument(
248 "--variant",
249 type=str,
250 default=None,
251 help="Variant of the model files of the pretrained model identifier from huggingface.co/models, 'e.g.' fp16",
252 )
253 parser.add_argument(
254 "--tokenizer_name",
255 type=str,
256 default=None,
257 help="Pretrained tokenizer name or path if not the same as model_name",
258 )
259 parser.add_argument(
260 "--instance_data_dir",
261 type=str,
262 default=None,
263 required=True,
264 help="A folder containing the training data of instance images.",
265 )
266 parser.add_argument(
267 "--class_data_dir",
268 type=str,
269 default=None,
270 required=False,
271 help="A folder containing the training data of class images.",
272 )
273 parser.add_argument(
274 "--instance_prompt",
275 type=str,
276 default=None,
277 required=True,
278 help="The prompt with identifier specifying the instance",
279 )
280 parser.add_argument(
281 "--class_prompt",
282 type=str,
283 default=None,
284 help="The prompt to specify images in the same class as provided instance images.",
285 )
286 parser.add_argument(
287 "--with_prior_preservation",
288 default=False,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected