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

Image mean squared error #1

Closed
FrancoYudica opened this issue Dec 2, 2024 · 3 comments
Closed

Image mean squared error #1

FrancoYudica opened this issue Dec 2, 2024 · 3 comments

Comments

@FrancoYudica
Copy link
Owner

Implementation of mean MSE for images

@FrancoYudica
Copy link
Owner Author

MSE is intended to be used as the main metric of the generated image. Here is the MSE formula.

@FrancoYudica
Copy link
Owner Author

Implemented MSE. As expected, it's slow because it's done in CPU. That's the reason why I decided to implement it with compute shaders.
This resource is super useful in order to learn about compute shaders implementation in godot.

@FrancoYudica
Copy link
Owner Author

After implementing MSE in compute shader, I got a 800x speedup, which will have a major impact in the image generation process.
It's important to note that further optimizations can be done, by using parallel reduction.

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