Giter Site home page Giter Site logo

peternara / robust_loss_pytorch-gan-loss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonbarron/robust_loss_pytorch

0.0 1.0 0.0 579 KB

A pytorch port of google-research/google-research/robust_loss/

License: Apache License 2.0

Python 82.05% Jupyter Notebook 17.95%

robust_loss_pytorch-gan-loss's Introduction

A General and Adaptive Robust Loss Function

This directory contains reference code for the paper A General and Adaptive Robust Loss Function, Jonathan T. Barron CVPR, 2019

The code is implemented in Pytorch, and is a port of the TensorFlow implementation at: https://github.com/google-research/google-research/tree/master/robust_loss.

Installation

Typical Install

pip install git+https://github.com/jonbarron/robust_loss_pytorch

Development

git clone https://github.com/jonbarron/robust_loss_pytorch
cd robust_loss_pytorch/
pip install -e .[dev]

Tests can then be run from the root of the project using:

nosetests

Usage

To use this code import lossfun, or AdaptiveLossFunction and call the loss function. general.py implements the "general" form of the loss, which assumes you are prepared to set and tune hyperparameters yourself, and adaptive.py implements the "adaptive" form of the loss, which tries to adapt the hyperparameters automatically and also includes support for imposing losses in different image representations. The probability distribution underneath the adaptive loss is implemented in distribution.py.

from robust_loss_pytorch import lossfun

or

from robust_loss_pytorch import AdaptiveLossFunction

A toy example of how this code can be used is in example.ipynb.

Citation

If you use this code, please cite it:

@article{BarronCVPR2019,
  Author = {Jonathan T. Barron},
  Title = {A General and Adaptive Robust Loss Function},
  Journal = {CVPR},
  Year = {2019}
}

robust_loss_pytorch-gan-loss's People

Contributors

jonbarron avatar khornlund avatar relh avatar

Watchers

 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.