Giter Club home page Giter Club logo

pytorch-metrics's Introduction

Pytorch-metrics

This is a repo. for evaluation metrics using Pytorch. The metrics.py is designed for evaluation tasks using two pytorch tensors as input. All implemented metric is compatible with any batch_size and devices(CPU or GPU).

y_pred << 4D tensor in [batch_size, channels, img_rows, img_cols]
y_true << 4D tensor in [batch_size, channels, img_rows, img_cols]

metric = MSE()
acc = metric(y_pred, y_true).item()
print("{} ==> {}".format(repr(metric), acc))

Requirement

  • python3
  • pytorch >= 1.
  • torchvision >= 0.2.0

Implementation

  • Image similarity

    • AE (Average Angular Error)
    • MSE (Mean Square Error)
    • PSNR (Peak Signal-to-Noise Ratio)
    • SSIM (Structural Similarity)
    • LPIPS (Learned Perceptual Image Patch Similarity)
  • Accuray

    • OA(Overall Accuracy)
    • Precision
    • Recall
    • F1-score
    • Kapp coefficiency
    • Jaccard Index

Ongoing

  • FID(Fréchet Inception Distance)

Acknowledgment

Our implementations are largely inspired by many open-sources codes, repos, as well as papers. Many thanks to the authors.

LICENSE

This implementation is licensed under the MIT License.

pytorch-metrics's People

Contributors

huster-wgm avatar

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.