()
| 84 | |
| 85 | ################################################################################################################################ |
| 86 | def get_args(): |
| 87 | parser = argparse.ArgumentParser(description="Simple example of a ControlNet training script.") |
| 88 | parser.add_argument( |
| 89 | "--config_path", |
| 90 | type=str, |
| 91 | default="config/train_cogvideox_motion.yaml", |
| 92 | help="Path to the config.", |
| 93 | ) |
| 94 | parser.add_argument( |
| 95 | "--use_8BitAdam", |
| 96 | type=bool, |
| 97 | default = False, |
| 98 | help = "Whether we use the 8BitAdam.", |
| 99 | ) |
| 100 | parser.add_argument( |
| 101 | "--debug", |
| 102 | type = bool, |
| 103 | default = False, |
| 104 | help = "Whether we are in the debug model: don't use torch.compile", |
| 105 | ) |
| 106 | |
| 107 | args = parser.parse_args() |
| 108 | return args |
| 109 | |
| 110 | |
| 111 |
no outgoing calls
no test coverage detected