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

Function parse_args

diffusers/examples/dreambooth/train_dreambooth_lora_sd3.py:239–670  ·  view source on GitHub ↗
(input_args=None)

Source from the content-addressed store, hash-verified

237
238
239def parse_args(input_args=None):
240 parser = argparse.ArgumentParser(description="Simple example of a training script.")
241 parser.add_argument(
242 "--pretrained_model_name_or_path",
243 type=str,
244 default=None,
245 required=True,
246 help="Path to pretrained model or model identifier from huggingface.co/models.",
247 )
248 parser.add_argument(
249 "--revision",
250 type=str,
251 default=None,
252 required=False,
253 help="Revision of pretrained model identifier from huggingface.co/models.",
254 )
255 parser.add_argument(
256 "--variant",
257 type=str,
258 default=None,
259 help="Variant of the model files of the pretrained model identifier from huggingface.co/models, 'e.g.' fp16",
260 )
261 parser.add_argument(
262 "--dataset_name",
263 type=str,
264 default=None,
265 help=(
266 "The name of the Dataset (from the HuggingFace hub) containing the training data of instance images (could be your own, possibly private,"
267 " dataset). It can also be a path pointing to a local copy of a dataset in your filesystem,"
268 " or to a folder containing files that 🤗 Datasets can understand."
269 ),
270 )
271 parser.add_argument(
272 "--dataset_config_name",
273 type=str,
274 default=None,
275 help="The config of the Dataset, leave as None if there's only one config.",
276 )
277 parser.add_argument(
278 "--instance_data_dir",
279 type=str,
280 default=None,
281 help=("A folder containing the training data. "),
282 )
283
284 parser.add_argument(
285 "--cache_dir",
286 type=str,
287 default=None,
288 help="The directory where the downloaded models and datasets will be stored.",
289 )
290
291 parser.add_argument(
292 "--image_column",
293 type=str,
294 default="image",
295 help="The column of the dataset containing the target image. By "
296 "default, the standard Image Dataset maps out 'file_name' "

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected