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

Optimize the frame loading #590

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

showarp
Copy link

@showarp showarp commented Mar 5, 2025

Optimize the image loading function by replacing numpy with tensors and using torchvision functions instead of PIL for image transformations, achieving GPU acceleration and device specification support. The final implementation improved image loading speed by over six times and reduced CPU usage by 60%.

Before Optimization​
img
img

After Optimization​
img
img

showrip added 2 commits March 5, 2025 11:37
…and using torchvision functions instead of PIL for image transformations to support device specification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants