Skip to content
项目

jonbarron/robust_loss_pytorch

在 GitHub 查看

jonbarron/robust_loss_pytorch has 706 GitHub stars and 88 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-24 22:00 UTC. Last push 2025-09-04.

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

google-research/google-research/robust_loss/ 的 PyTorch 移植版。

机器学习

README.md

原文

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}
}

探索相关项目

加载中…