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

Save Real-CUGAN models correctly #119

Merged
merged 1 commit into from
Jan 6, 2024
Merged

Save Real-CUGAN models correctly #119

merged 1 commit into from
Jan 6, 2024

Conversation

RunDevelopment
Copy link
Member

Fixes #89.

As I described in #89, I used an optional buffer called "pro" to save a "pro" key in the state dict. This ensures that the key is present only in pro models.

Since the official code only checks for the existence of the "pro" key and not its value, it doesn't matter we store a tensor instead of an int. So this solution is compatible with official arch code.

@joeyballentine joeyballentine merged commit 1b560ce into main Jan 6, 2024
7 checks passed
@joeyballentine joeyballentine deleted the issue89 branch January 6, 2024 17:25
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

Successfully merging this pull request may close these issues.

Real-CUGAN pro models are saved incorrectly
2 participants