(input_args=None)
| 400 | |
| 401 | |
| 402 | def parse_args(input_args=None): |
| 403 | parser = argparse.ArgumentParser(description="Simple example of a training script.") |
| 404 | parser.add_argument( |
| 405 | "--pretrained_model_name_or_path", |
| 406 | type=str, |
| 407 | default=None, |
| 408 | required=True, |
| 409 | help="Path to pretrained model or model identifier from huggingface.co/models.", |
| 410 | ) |
| 411 | parser.add_argument( |
| 412 | "--pretrained_vae_model_name_or_path", |
| 413 | type=str, |
| 414 | default=None, |
| 415 | help="Path to pretrained VAE model with better numerical stability. More details: https://github.com/huggingface/diffusers/pull/4038.", |
| 416 | ) |
| 417 | parser.add_argument( |
| 418 | "--revision", |
| 419 | type=str, |
| 420 | default=None, |
| 421 | required=False, |
| 422 | help="Revision of pretrained model identifier from huggingface.co/models.", |
| 423 | ) |
| 424 | parser.add_argument( |
| 425 | "--instance_data_dir", |
| 426 | type=str, |
| 427 | default=None, |
| 428 | required=True, |
| 429 | help="A folder containing the training data of instance images.", |
| 430 | ) |
| 431 | parser.add_argument( |
| 432 | "--class_data_dir", |
| 433 | type=str, |
| 434 | default=None, |
| 435 | required=False, |
| 436 | help="A folder containing the training data of class images.", |
| 437 | ) |
| 438 | parser.add_argument( |
| 439 | "--instance_prompt", |
| 440 | type=str, |
| 441 | default=None, |
| 442 | required=True, |
| 443 | help="The prompt with identifier specifying the instance", |
| 444 | ) |
| 445 | parser.add_argument( |
| 446 | "--class_prompt", |
| 447 | type=str, |
| 448 | default=None, |
| 449 | help="The prompt to specify images in the same class as provided instance images.", |
| 450 | ) |
| 451 | parser.add_argument( |
| 452 | "--validation_prompt", |
| 453 | type=str, |
| 454 | default=None, |
| 455 | help="A prompt that is used during validation to verify that the model is learning.", |
| 456 | ) |
| 457 | parser.add_argument( |
| 458 | "--num_validation_images", |
| 459 | type=int, |
no outgoing calls
no test coverage detected