Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does the watermark_remove_module.pt model file lack the ema key? #9

Open
Trm1001 opened this issue Jul 1, 2024 · 0 comments
Open

Comments

@Trm1001
Copy link

Trm1001 commented Jul 1, 2024

Thanks for your excellent work. I am training of a model using the watermark_remove_module.pt file. I encountered an issue where the training process fails because the model file does not contain the ema key. It just contains 'ema unet', 'unet'.
Why does the watermark_remove_module.pt model file lack the ema key? Is this expected behavior or am I missing something?
Should I be using a different model for my task? If so, Which t2v model should I choose?
If the ema key is essential, how can I obtain a model file that includes it?
Thanks.

[rank0]: Traceback (most recent call last):
[rank0]: File "/home/VideoBooth/train_stage1.py", line 678, in
[rank0]: main(args)
[rank0]: File "/home/VideoBooth/train_stage1.py", line 395, in main
[rank0]: state_dict = torch.load(args.pretrained_t2v_model, map_location=lambda storage, loc: storage.cuda(torch.cuda.current_device()))["ema"]
[rank0]: KeyError: 'ema'
E0701 16:31:35.387000 139983327924608 torch/distributed/elastic/multiprocessing/api.py:826] failed (exitcode: 1) local_rank: 0 (pid: 1043993) of binary: /root/anaconda3/envs/videobooth/bin/python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant