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

Function parse_args

diffusers/examples/dreambooth/train_dreambooth_lora.py:209–548  ·  view source on GitHub ↗
(input_args=None)

Source from the content-addressed store, hash-verified

207
208
209def parse_args(input_args=None):
210 parser = argparse.ArgumentParser(description="Simple example of a training script.")
211 parser.add_argument(
212 "--pretrained_model_name_or_path",
213 type=str,
214 default=None,
215 required=True,
216 help="Path to pretrained model or model identifier from huggingface.co/models.",
217 )
218 parser.add_argument(
219 "--revision",
220 type=str,
221 default=None,
222 required=False,
223 help="Revision of pretrained model identifier from huggingface.co/models.",
224 )
225 parser.add_argument(
226 "--variant",
227 type=str,
228 default=None,
229 help="Variant of the model files of the pretrained model identifier from huggingface.co/models, 'e.g.' fp16",
230 )
231 parser.add_argument(
232 "--tokenizer_name",
233 type=str,
234 default=None,
235 help="Pretrained tokenizer name or path if not the same as model_name",
236 )
237 parser.add_argument(
238 "--instance_data_dir",
239 type=str,
240 default=None,
241 required=True,
242 help="A folder containing the training data of instance images.",
243 )
244 parser.add_argument(
245 "--class_data_dir",
246 type=str,
247 default=None,
248 required=False,
249 help="A folder containing the training data of class images.",
250 )
251 parser.add_argument(
252 "--instance_prompt",
253 type=str,
254 default=None,
255 required=True,
256 help="The prompt with identifier specifying the instance",
257 )
258 parser.add_argument(
259 "--class_prompt",
260 type=str,
261 default=None,
262 help="The prompt to specify images in the same class as provided instance images.",
263 )
264 parser.add_argument(
265 "--validation_prompt",
266 type=str,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected