FLUX: dreambooth add main() def

This commit is contained in:
madroid 2024-11-07 15:20:58 +08:00
parent 39fd6d272f
commit 230215a50d

View File

@ -155,7 +155,7 @@ def setup_arg_parser():
return parser
if __name__ == "__main__":
def main():
parser = setup_arg_parser()
args = parser.parse_args()
@ -285,3 +285,7 @@ if __name__ == "__main__":
if (i + 1) % 10 == 0:
losses = []
tic = time.time()
if __name__ == "__main__":
main()