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

Use chainner_ext for Fill Alpha #1865

Merged
merged 4 commits into from
Jun 14, 2023

Conversation

RunDevelopment
Copy link
Member

I already shared the improved performance on Discord, but I changed the settings a little since. The Rust implementation of fill_alpha_extend_color is around 100x faster than the Python implementation (not counting the overhead of copying a numpy image to Rust), so I increased the number of iterations to fill the whole image. The performance cost for this is relatively small even for large images. Even with the new settings, Extend Texture is around 5x faster and Extend Color is around 15x faster.

Obviously, this PR also adds chainner_ext as a dependency. I only published v0.0.0 (a test version) right now. Before we include chainner_ext in the next release, we have to make sure that it works correctly for our users. I published pre-built wheels for all major architectures and python versions (3.8-3.11), but I haven't tested anything except cp3.8 Win x64 and cp3.9 Win x64 yet.

@RunDevelopment
Copy link
Member Author

See #1866 regarding the failing CI.

@joeyballentine joeyballentine merged commit 1d854f5 into chaiNNer-org:main Jun 14, 2023
@RunDevelopment RunDevelopment deleted the chainner_ext branch June 14, 2023 16:27
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.

2 participants