All Projects → marcbelmont → hierarchical-categories-loss-tensorflow

marcbelmont / hierarchical-categories-loss-tensorflow

Licence: other
A loss function for categories with a hierarchical structure.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to hierarchical-categories-loss-tensorflow

OasisLMF
Loss modelling framework.
Stars: ✭ 84 (+223.08%)
Mutual labels:  loss
pycsou
Pycsou is a Python 3 package for solving linear inverse problems with state-of-the-art proximal algorithms. The software implements in a highly modular way the main building blocks -cost functionals, penalty terms and linear operators- of generic penalised convex optimisation problems.
Stars: ✭ 37 (+42.31%)
Mutual labels:  loss-functions
stylegan-encoder
StyleGAN Encoder - converts real images to latent space
Stars: ✭ 694 (+2569.23%)
Mutual labels:  loss-functions
consistency
Implementation of models in our EMNLP 2019 paper: A Logic-Driven Framework for Consistency of Neural Models
Stars: ✭ 26 (+0%)
Mutual labels:  loss-functions
GIouloss CIouloss caffe
Caffe version Generalized & Distance & Complete Iou loss Implementation for Faster RCNN/FPN bbox regression
Stars: ✭ 42 (+61.54%)
Mutual labels:  loss-functions
GeDML
Generalized Deep Metric Learning.
Stars: ✭ 30 (+15.38%)
Mutual labels:  loss-functions
SphereFace
🍑 TensorFlow Code for CVPR 2017 paper "SphereFace: Deep Hypersphere Embedding for Face Recognition"
Stars: ✭ 110 (+323.08%)
Mutual labels:  loss-functions
introduction-to-machine-learning
A document covering machine learning basics. 🤖📊
Stars: ✭ 17 (-34.62%)
Mutual labels:  loss-functions
triplet-loss-pytorch
Highly efficient PyTorch version of the Semi-hard Triplet loss ⚡️
Stars: ✭ 79 (+203.85%)
Mutual labels:  loss-functions
MMD-GAN
Improving MMD-GAN training with repulsive loss function
Stars: ✭ 82 (+215.38%)
Mutual labels:  loss-functions
Addressing-Class-Imbalance-FL
This is the code for Addressing Class Imbalance in Federated Learning (AAAI-2021).
Stars: ✭ 62 (+138.46%)
Mutual labels:  loss-functions
-Online-Soft-Mining-and-Class-Aware-Attention-Pytorch
(Pytorch and Tensorflow) Implementation of Weighted Contrastive Loss (Deep Metric Learning by Online Soft Mining and Class-Aware Attention)
Stars: ✭ 20 (-23.08%)
Mutual labels:  loss-functions
Image-Segmentation-Loss-Functions
some loss functions of image segmentation
Stars: ✭ 56 (+115.38%)
Mutual labels:  loss-functions
C3Net
C3Net: Demoireing Network Attentive in Channel, Color and Concatenation (CVPRW 2020)
Stars: ✭ 17 (-34.62%)
Mutual labels:  loss-functions
opl
Official repository for "Orthogonal Projection Loss" (ICCV'21)
Stars: ✭ 61 (+134.62%)
Mutual labels:  loss-functions
LinearityIQA
[official] Norm-in-Norm Loss with Faster Convergence and Better Performance for Image Quality Assessment (ACM MM 2020)
Stars: ✭ 73 (+180.77%)
Mutual labels:  loss-functions
NCE-loss
Tensorflow NCE loss in Keras
Stars: ✭ 30 (+15.38%)
Mutual labels:  loss-functions
focalloss
Focal Loss of multi-classification in tensorflow
Stars: ✭ 75 (+188.46%)
Mutual labels:  loss
VNet
Prostate MR Image Segmentation 2012
Stars: ✭ 54 (+107.69%)
Mutual labels:  loss

Hierarchical categories loss (Tensorflow)

A loss function that takes into account categories with a hierarchical structure.

This project is an attempt to learn a cooking recipe embedding from ingredients (at a character level). The model loss function is learning from hierarchical categories. For example, your target labels can be "Breakfast/waffles" or "Poultry/Turkey/Ground".

Requirements

  • Python 3+
  • pip install -r requirements.txt

Getting started

Building the TFRecords

python dataset.py --data_dir sample/ --records_val /tmp/val.recs --records_train /tmp/train.recs

Training the model:

python main.py --records_val /tmp/val.recs --records_train /tmp/train.recs --logdir /tmp/experiment

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].