Skip to content

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