/ Модель

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

Параметры
113 млн
Лицензия
Apache 2.0
Архитектура
vit · dense
Библиотека
transformers
Опубликована
18 фев 2025

vit-skin-disease

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

Дообученная модель ViT классифицирует изображения кожи по 22 дерматологическим категориям для исследовательских и образовательных задач.

207скачиваний за 30 дней0лайковвеса обновлены30 ноя 2025

Бенчмарки

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

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

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

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

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

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

Lauriane Mbagdjé Dorenan разработала эту модель на базе Vision Transformer ViT-Base с патчами 16×16, дообучив google/vit-base-patch16-224 для классификации изображений кожи по 22 дерматологическим категориям, включая акне, экзему, псориаз, витилиго, бородавки и рак кожи. Модель принимает изображения размером 224×224 и выдаёт класс заболевания. В метаданных указаны архитектура ViTForImageClassification и 113,2 млн параметров; README приводит оценку около 86 млн параметров.

Модель предназначена для исследований в компьютерном зрении и дерматологии, обучения и сравнения методов многоклассовой классификации. Её можно использовать как основу для дальнейшего дообучения или прототипов объяснимости, но предсказания не подходят для постановки диагноза или выбора лечения. Разработчик указывает риски смещения по тону кожи, освещению и устройству съёмки, ограниченность примеров некоторых классов и отсутствие клинической валидации. Лицензия — Apache-2.0; README ограничивает назначение исследовательскими и образовательными сценариями.

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

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

Ограничения

Не предназначена для диагностики, лечения или клинического принятия решений и не валидирована специалистами. Возможны смещения по тону кожи и условиям съёмки, переобучение на редких классах и слабое обобщение на реальные клинические данные.

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

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

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

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

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

Открыть на Hugging Face

Model Card for Model ID

A Vision Transformer (ViT) model fine-tuned for multi-class skin disease image classification.
It predicts 22 dermatological conditions, including acne, eczema, psoriasis, vitiligo, warts, and skin cancer.

This model is intended for research and educational purposes only and should not be used for real medical diagnosis.Provide a quick summary of what the model is/does. -->

Model Details

Model Description

  • Model type: Vision Transformer (ViT-Base, patch size 16)
  • Number of classes: 22
  • Image size: 224 × 224
  • Framework: PyTorch / Hugging Face Transformers
  • Parameters: ~86M
  • Developed by: Lauriane Mbagdjé Dorenan
  • Fine-tuned from: google/vit-base-patch16-224

This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.

  • Developed by: [More Information Needed]
  • Funded by [optional]: [More Information Needed]
  • Shared by [optional]: [More Information Needed]
  • Model type: [More Information Needed]
  • Language(s) (NLP): [More Information Needed]
  • License: [More Information Needed]
  • Finetuned from model [optional]: [More Information Needed]

Model Sources [optional]

Uses

Direct Use

  • Research in computer vision for dermatology
  • Educational use for ML students (classification, transfer learning, ViT)
  • Benchmarking ViT on multi-class medical datasets
  • Integration in multimodal pipelines (e.g., health chatbots, decision-support prototypes)

Downstream Use [optional]

  • Re-training or fine-tuning on clinical datasets
  • Transfer learning for fewer classes or specific diseases
  • Building explainability workflows (Grad-CAM, attention maps)

Out-of-Scope Use

This model must not be used:

  • For medical diagnosis or treatment
  • As a clinical decision-making tool
  • On patient images without proper consent
  • In high-stakes applications without domain-expert validation

Bias, Risks, and Limitations

  • Dataset contains varying image sources and qualities
  • Potential bias across skin tones, lighting, or acquisition devices
  • Some classes have limited examples, increasing risk of overfitting
  • No guarantee of generalization to real-world clinical data
  • Not validated by dermatologists or clinicians

Recommendations

Users should:

  • Avoid clinical deployment without proper validation
  • Re-train on demographically representative datasets
  • Interpret predictions cautiously

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.

How to Get Started with the Model

Use the code below to get started with the model.

from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import torch

processor = AutoImageProcessor.from_pretrained("LaurianeMD/vit-skin-disease")
model = AutoModelForImageClassification.from_pretrained("LaurianeMD/vit-skin-disease")

image = Image.open("your_image.jpg")
inputs = processor(images=image, return_tensors="pt")

with torch.no_grad():
    outputs = model(**inputs)
    logits = outputs.logits
    predicted_class_idx = logits.argmax(-1).item()

print("Predicted label:", model.config.id2label[predicted_class_idx])

[More Information Needed]

## Training Details

### Training Data


- Dataset used:
- Kaggle – pacificrm/skindiseasedataset
- Classes: 22 skin conditions
- Images were resized to 224 × 224 and normalized.


### Training Procedure

- Epochs: 5

- ptimizer: AdamW

- Loss: Cross-entropy

- Activation: GELU

- Precision: fp32

- Hardware: Google Colab (single T4 GPU)

#### Preprocessing [optional]
- Resize

- CenterCrop

- Normalize (ViT base mean/std)

Optional: RandomFlip, RandomRotation


#### Training Hyperparameters

- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->

#### Speeds, Sizes, Times [optional]

<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->

[More Information Needed]

## Evaluation

<!-- This section describes the evaluation protocols and provides the results. -->

### Testing Data, Factors & Metrics

#### Testing Data

<!-- This should link to a Dataset Card if possible. -->

[More Information Needed]

#### Factors

<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->

[More Information Needed]

#### Metrics

<!-- These are the evaluation metrics being used, ideally with a description of why. -->
| Epoch | Loss   | Accuracy   |
| ----- | ------ | ---------- |
| 1     | 1.4618 | 56.25%     |
| 2     | 0.5954 | 82.90%     |
| 3     | 0.1790 | 95.72%     |
| 4     | 0.0777 | 98.25%     |
| 5     | 0.0613 | **98.49%** |

Final validation accuracy: 98.49%

### Results

[More Information Needed]

#### Summary



## Model Examination [optional]

<!-- Relevant interpretability work for the model goes here -->

[More Information Needed]

## Environmental Impact

<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->

Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).

- **Hardware Type:** [More Information Needed]
- **Hours used:** [More Information Needed]
- **Cloud Provider:** [More Information Needed]
- **Compute Region:** [More Information Needed]
- **Carbon Emitted:** [More Information Needed]

## Technical Specifications [optional]

### Model Architecture and Objective

[More Information Needed]

### Compute Infrastructure

[More Information Needed]

#### Hardware

[More Information Needed]

#### Software

[More Information Needed]

## Citation [optional]

<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->

**BibTeX:**

[More Information Needed]

**APA:**

[More Information Needed]

## Glossary [optional]

<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->

[More Information Needed]

## More Information [optional]

[More Information Needed]

## Model Card Authors [optional]

Lauriane Mbagdjé Dorenan

## Model Card Contact

For questions or more informations : dmbagdjelauriane@gmail.com

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ViTForImageClassification
Ревизия весов
1b4fcca

0 моделей