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

Upgrading StyleGAN model using persistence #90

Open
VedantDere0104 opened this issue Mar 19, 2023 · 0 comments
Open

Upgrading StyleGAN model using persistence #90

VedantDere0104 opened this issue Mar 19, 2023 · 0 comments

Comments

@VedantDere0104
Copy link

with open('old_pickle.pkl', 'rb') as f:
old_net = pickle.load(f)
new_net = MyNetwork(*old_obj.init_args, **old_obj.init_kwargs)
misc.copy_params_and_buffers(old_net, new_net, require_all=True)

while doing this I'm getting error RuntimeError: a leaf Variable that requires grad is being used in an in-place operation.
According to me there is some in-place operation in the old_net.
How to modify old_net code to change the in-place operation?

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