• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jonbarron/robust_loss_pytorch: A pytorch port of google-research/google-research ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jonbarron/robust_loss_pytorch

开源软件地址(OpenSource Url):

https://github.com/jonbarron/robust_loss_pytorch

开源编程语言(OpenSource Language):

Python 82.0%

开源软件介绍(OpenSource 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}
}



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap