/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
bit · dense
Опубликована
6 дек 2022

bit-50

Классификация изображенийИзображение → label3 профессии

BiT-50 — модель ResNetV2 для классификации изображений по классам ImageNet-1k и переноса обучения на другие задачи компьютерного зрения.

16 563скачиваний за 30 дней8лайковвеса обновлены6 дек 2022

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

BiT-50 (Big Transfer) — модель компьютерного зрения от авторов исследования Big Transfer, представленная на Hugging Face командой Hugging Face. Это ResNet-подобная архитектура ResNetV2 для классификации изображений; модель обучена на ImageNet-1k и выдаёт оценки по 1000 классам ImageNet. Репозиторий содержит веса PyTorch.

Модель предназначена для классификации изображений и может служить отправной точкой для переноса обучения на другие задачи компьютерного зрения, в том числе при небольших обучающих выборках. В статье описан подход BiT к масштабному предварительному обучению и переносу представлений; приведённые в README результаты относятся к исследовательской работе и не являются гарантией качества этой конкретной версии на пользовательских данных.

Модель распространяется по лицензии Apache-2.0. Она принимает изображения и возвращает классовые оценки; сведения о размере входа и поддерживаемых языках к ней не относятся.

Сценарии применения

  • классификация изображений по 1000 классам ImageNet
  • распознавание объектов на фотографиях
  • создание базовой модели для переноса обучения
  • дообучение классификатора на небольшом наборе изображений

Ограничения

Модель ориентирована на классы ImageNet-1k; качество на других наборах данных может потребовать переноса обучения и отдельной проверки. Приведённые в README метрики описывают результаты статьи и не гарантируют качество на произвольных изображениях.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Big Transfer (BiT)

The BiT model was proposed in Big Transfer (BiT): General Visual Representation Learning by Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Joan Puigcerver, Jessica Yung, Sylvain Gelly, Neil Houlsby. BiT is a simple recipe for scaling up pre-training of ResNet-like architectures (specifically, ResNetv2). The method results in significant improvements for transfer learning.

Disclaimer: The team releasing ResNet did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

The abstract from the paper is the following:

Transfer of pre-trained representations improves sample efficiency and simplifies hyperparameter tuning when training deep neural networks for vision. We revisit the paradigm of pre-training on large supervised datasets and fine-tuning the model on a target task. We scale up pre-training, and propose a simple recipe that we call Big Transfer (BiT). By combining a few carefully selected components, and transferring using a simple heuristic, we achieve strong performance on over 20 datasets. BiT performs well across a surprisingly wide range of data regimes -- from 1 example per class to 1M total examples. BiT achieves 87.5% top-1 accuracy on ILSVRC-2012, 99.4% on CIFAR-10, and 76.3% on the 19 task Visual Task Adaptation Benchmark (VTAB). On small datasets, BiT attains 76.8% on ILSVRC-2012 with 10 examples per class, and 97.0% on CIFAR-10 with 10 examples per class. We conduct detailed analysis of the main components that lead to high transfer performance.

Intended uses & limitations

You can use the raw model for image classification. See the model hub to look for fine-tuned versions on a task that interests you.

How to use

Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes:

from transformers import BitImageProcessor, BitForImageClassification
import torch
from datasets import load_dataset

dataset = load_dataset("huggingface/cats-image")
image = dataset["test"]["image"][0]

feature_extractor = BitImageProcessor.from_pretrained("google/bit-50")
model = BitForImageClassification.from_pretrained("google/bit-50")

inputs = feature_extractor(image, return_tensors="pt")

with torch.no_grad():
    logits = model(**inputs).logits

# model predicts one of the 1000 ImageNet classes
predicted_label = logits.argmax(-1).item()
print(model.config.id2label[predicted_label
>>> tabby, tabby cat

For more code examples, we refer to the documentation.

BibTeX entry and citation info

@misc{https://doi.org/10.48550/arxiv.1912.11370,
  doi = {10.48550/ARXIV.1912.11370},
  
  url = {https://arxiv.org/abs/1912.11370},
  
  author = {Kolesnikov, Alexander and Beyer, Lucas and Zhai, Xiaohua and Puigcerver, Joan and Yung, Jessica and Gelly, Sylvain and Houlsby, Neil},
  
  keywords = {Computer Vision and Pattern Recognition (cs.CV), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences},
  
  title = {Big Transfer (BiT): General Visual Representation Learning},
  
  publisher = {arXiv},
  
  year = {2019},
  
  copyright = {arXiv.org perpetual, non-exclusive license}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · image-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
BitForImageClassification
Ревизия весов
60f75d5

0 моделей