Closed toyxyz closed 1 week ago
Had the same issue. Gave the script + error to o1-mini and it fixed the error with the following script (to replace ./scripts/train_ctrlora_finetune.py) : https://pastebin.com/qQGWq7qx
I got another error, and changed the following code
TypeError: LatentDiffusion.on_train_batch_start() missing 1 required positional argument: 'dataloader_idx'
https://github.com/xyfJASON/ctrlora/blob/177e51453f25a96fd7fa91ac361e276134f6df37/ldm/models/diffusion/ddpm.py#L591
to def on_train_batch_start(self, batch, batch_idx):
https://github.com/lllyasviel/ControlNet/issues/84#issuecomment-1434004246
Had the same issue. Gave the script + error to o1-mini and it fixed the error with the following script (to replace ./scripts/train_ctrlora_finetune.py) : https://pastebin.com/qQGWq7qx
Thank you!
I needed to modify the following code
default_root_dir=os.path.join("U:/Flaash/Watermark_removal/CTRLORA", args.name),
to default_root_dir=os.path.join('runs', args.name),
When I ran the example training script, I got the following error