google-research

Форк
0

README.md

Why Do Better Loss Functions Lead to Less Transferable Features?

This repository contains code to load models from Why Do Better Loss Functions Lead to Less Transferable Features? as well as implementations of the loss functions.

The model checkpoints and SavedModels can be found at this link. load_model.py contains code to construct model graphs and load checkpoints in graph mode (i.e., TensorFlow 1 compatibility mode).

Alternatively, it is also possible to load and run the SavedModels directly in TensorFlow 2 without the need to use any code from this repository besides the preprocessing code. The SavedModel returns the activations from each block in the ResNet, the penultimate (average pooling) layer (final_avg_pool), the final layer (final_layer), and the normalized/scaled model outputs (outputs). Note that the model outputs contain 1001 classes, one more than are actually present in ImageNet. This is because the copy of ImageNet we used to train the model added an additional background class as the first class. This class contains no images and should be dropped when evaluating.

See this Colab for example code for how to use the SavedModels and restore the checkpoints.

Please cite as:

@inproceedings{
kornblith2021why,
title={Why Do Better Loss Functions Lead to Less Transferable Features?},
author={Simon Kornblith and Ting Chen and Honglak Lee and Mohammad Norouzi},
booktitle={Advances in Neural Information Processing Systems},
editor={A. Beygelzimer and Y. Dauphin and P. Liang and J. Wortman Vaughan},
year={2021},
url={https://openreview.net/forum?id=8twKpG5s8Qh}
}

Disclaimer

This is not an official Google product.

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.