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
[Suggestion] Alternatives to hog for faster runtime #19
Comments
That's a really good idea. I am happy with the top row so it definitely worths a try! Thank you in advance! |
Just noticed a mistake in the labels for the images above, 2x2 sobel is in fact 3x3 and vice-versa. But there are already some 3x3 sobel examples above. |
I love it! Could you maybe add both 2x2 and 3x3 as choices to be set s hyperparameters with Pyx() with 3x3 as default? The 3x3 looks better but 2x2 is just so much faster, it will worth the tradeoff for rendering animations later! This is great! |
The new version of the program runs significantly slower than the previous version (with the speedup provided by #18). A bit of profiling reveals the hog method as the main culprit.
I've implemented a few alternative algorithms I thought might show similar results, and benchmarked the time necessary to do a fit_transform using these different methods. I feel like the 2x2 sobel could be a pretty solid alternative to hog, what do you think?
(All benchmarks run with dither="naive", palette=6 and boost=True)
There's a small mistake in the labels, 3x3 sobel is in fact 2x2 and vice-versa
Factor 6
Factor 10
Factor 6
Factor 3
Factor 10
Factor 6
Factor 10
Factor 6
The text was updated successfully, but these errors were encountered: