| 135 | |
| 136 | |
| 137 | def get_args(): |
| 138 | parser = argparse.ArgumentParser(description="Simple example of a ControlNet training script.") |
| 139 | parser.add_argument( |
| 140 | "--config_path", |
| 141 | type = str, |
| 142 | default = "config/train_wan_motion.yaml", |
| 143 | # required = True, |
| 144 | help = "Path to the config.", |
| 145 | ) |
| 146 | parser.add_argument( |
| 147 | "--use_8BitAdam", |
| 148 | type = bool, |
| 149 | default = False, |
| 150 | help = "Whether we use the 8BitAdam.", |
| 151 | ) |
| 152 | parser.add_argument( |
| 153 | "--debug", |
| 154 | type = bool, |
| 155 | default = False, |
| 156 | help = "Whether we are in the debug model: don't use torch.compile", |
| 157 | ) |
| 158 | |
| 159 | args = parser.parse_args() |
| 160 | return args |
| 161 | |
| 162 | |
| 163 | |