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

how to convert .pkl to .pt #20

Closed
leeisack opened this issue Oct 20, 2021 · 1 comment
Closed

how to convert .pkl to .pt #20

leeisack opened this issue Oct 20, 2021 · 1 comment

Comments

@leeisack
Copy link

I want to change the pkl file learned through stylegan2-ada to a pt file, but I would like to explain it in more detail. For example in SG2-ADA-PT to Rosinality.ipynb !python export_weights.py /path/to/pkl /path/to/saved.pt in this code {/path/to/pkl /path/to/saved. pt } It would be nice if you could tell me an example to put here.

@dvschultz
Copy link
Owner

the first argument is your path to a pkl file, the second argument is where to save your pt file

Example:
!python export_weights.py /content/mymodel.pkl /content/mymodel-converted.pt

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

3 participants
@dvschultz @leeisack and others