GithubHelp home page GithubHelp logo

fast image resize about kornia-rs HOT 5 CLOSED

edgarriba avatar edgarriba commented on June 26, 2024 1
fast image resize

from kornia-rs.

Comments (5)

edgarriba avatar edgarriba commented on June 26, 2024 1

Explore this crate and benchmark: https://docs.rs/fast_image_resize/latest/fast_image_resize/index.html

DONE

from kornia-rs.

ternaus avatar ternaus commented on June 26, 2024
Darwin Vladimirs-MacBook-Pro.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
kornia_rs==0.1.2
numpy==1.26.4
opencv-python-headless==4.9.0.80
pillow==10.2.0
python py-kornia/benchmark/bench_resize.py
OpenCV: 0.04 ms
PIL: 0.20 ms
Kornia: 0.17 ms

I believe that the benchmark should run over many different images.

This setup could be a bit too extensive, but still....
https://github.com/ternaus/imread_benchmark/blob/main/imread_benchmark/benchmark.py

from kornia-rs.

edgarriba avatar edgarriba commented on June 26, 2024

I think this benchmarks should be running in a Linux machine which I guess is the most typical scenario for training. Besides, why don’t you use timeit which run several iterations and remove any possible outlier plus other things for you. Also, the benchmark should really be done against a data loader routine and measure probably IPS (images per second)

from kornia-rs.

ternaus avatar ternaus commented on June 26, 2024

Just run your code from https://github.com/kornia/kornia-rs/blob/main/py-kornia/benchmark/bench_resize.py

Would be happy to check a version with an updated setup for a benchmark :)

from kornia-rs.

ternaus avatar ternaus commented on June 26, 2024

Do you have comparison with other libraries, somthing similar to:

https://github.com/albumentations-team/albucore/blob/main/benchmark/results/uint8_3.md

and if resize in kornia-rs is not broken, as it is in torchvision, tensorflow or OpenCV it would be ultra great.https://github.com/assafshocher/ResizeRight

from kornia-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.