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

Typo in the code #50

Open
eastchun opened this issue Oct 14, 2024 · 0 comments
Open

Typo in the code #50

eastchun opened this issue Oct 14, 2024 · 0 comments

Comments

@eastchun
Copy link

eastchun commented Oct 14, 2024

Line 242 ~ 246 in train_tiktok.py,

242    if reinit_hint_block:
243        print("Ignoring hint block parameters from checkpoint!")
244        for k in list(**state_dict**.keys()):
245            if k.startswith("control_model.input_hint_block"):
246                **state_dict**.pop(k)

state_dict needs to be replaced by new_state_dict (Although, it is still OK without replacement since args.reinit_hint_block is set to False).

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