rorshark vit base

Provideramunchet
Categoryimage-classification
Licenseapache-2.0
Downloads913.9K
Stars0

Overview

Rorshark ViT Base is a Vision Transformer-based image classification model designed for developers needing a balance between inference speed and classification accuracy. Built on the ViT-Base architecture, it leverages attention mechanisms to capture global dependencies across images, making it a viable alternative to traditional CNNs for high-dimensional visual data. It is particularly suited for integration into automated tagging pipelines, visual search indexing, or as a feature extractor for downstream computer vision tasks. With an Apache-2.0 license, it offers full flexibility for commercial deployment and modification. Devs will find it compatible with standard PyTorch/Hugging Face workflows, allowing for straightforward fine-tuning on domain-specific datasets without extensive architectural overhead.

Highlights

  • Efficient Vision Transformer architecture for image classification
  • Permissive Apache-2.0 license for commercial production
  • Seamless integration with standard ML frameworks
  • Strong global context capture compared to CNNs
  • Optimized for fine-tuning on specialized visual datasets

Usage

Install
# Install Hugging Face transformers
pip install transformers torch
SDK Usage
# Load model with transformers
from transformers import AutoModel, AutoTokenizer

model = AutoModel.from_pretrained("amunchet/rorshark-vit-base")
tokenizer = AutoTokenizer.from_pretrained("amunchet/rorshark-vit-base")

Hugging Face Download

We recommend downloading the model via the Hugging Face CLI or Hub SDK.

Guidance:Before downloading, install huggingface_hub with:

Guidance
pip install -U huggingface_hub

CLI Download

Download the full repository

Download the full repository
huggingface-cli download amunchet/rorshark-vit-base

Download a single file to a local folder (e.g. config.json into ./dir)

Download a single file to a local folder (e.g. config.json into ./dir)
huggingface-cli download amunchet/rorshark-vit-base config.json --local-dir ./dir

See the official docs for more CLI options

SDK Download

SDK Download
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('amunchet/rorshark-vit-base')

Git Download

Make sure git-lfs is installed first

Git Download
git lfs install
git clone https://huggingface.co/amunchet/rorshark-vit-base

To skip LFS large-file downloads, use:

Skip LFS
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/amunchet/rorshark-vit-base

Model files are hosted on the Hugging Face Hub — download directly via HF CLI / SDK / Git, not through this site.

PyTorch / Transformers Usage

Install Transformers

Install Transformers
pip install -U transformers torch

Load the model and run inference

Load the model and run inference
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained('amunchet/rorshark-vit-base')
tokenizer = AutoTokenizer.from_pretrained('amunchet/rorshark-vit-base')

Full Documentation

来源: HuggingFace

---
license: apache-2.0
base_model: google/vit-base-patch16-224-in21k
tags:

  • image-classification

  • vision

  • generated_from_trainer

datasets:
  • imagefolder

metrics:
  • accuracy

model-index:
  • name: rorshark-vit-base

results:
- task:
name: Image Classification
type: image-classification
dataset:
name: imagefolder
type: imagefolder
config: default
split: train
args: default
metrics:
- name: Accuracy
type: accuracy
value: 0.9922928709055877
---

<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

rorshark-vit-base

This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the imagefolder dataset.
It achieves the following results on the evaluation set:

  • Loss: 0.0393

  • Accuracy: 0.9923

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05

  • train_batch_size: 8

  • eval_batch_size: 8

  • seed: 1337

  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08

  • lr_scheduler_type: linear

  • num_epochs: 5.0

Training results

| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 0.0597 | 1.0 | 368 | 0.0546 | 0.9865 |
| 0.2009 | 2.0 | 736 | 0.0531 | 0.9865 |
| 0.0114 | 3.0 | 1104 | 0.0418 | 0.9904 |
| 0.0998 | 4.0 | 1472 | 0.0425 | 0.9904 |
| 0.1244 | 5.0 | 1840 | 0.0393 | 0.9923 |

Framework versions

  • Transformers 4.36.0.dev0
  • Pytorch 2.1.1+cu118
  • Datasets 2.15.0
  • Tokenizers 0.15.0
Join our Telegram