amaye15 / DaViT

huggingface.co
Total runs: 14
24-hour runs: 0
7-day runs: 0
30-day runs: 11
Model's Last Updated: July 30 2024

Introduction of DaViT

Model Details of DaViT

DaViT Model

This repository contains the implementation of the DaViT (Dual-Attention Vision Transformer) model for image classification tasks. The model leverages dual attention mechanisms to improve performance on various image datasets.

Model Description

DaViT (Dual-Attention Vision Transformer) is designed to handle image classification tasks effectively. It combines spatial and channel attention mechanisms to capture intricate details in images. The model has multiple stages, each with convolutional embeddings and attention blocks.

Example

Here is an example of how to use the DaViT model for image classification:

import torch
from transformers import AutoModel, AutoConfig

# Load the configuration and model
config = AutoConfig.from_pretrained("your-username/DaViT")
model = AutoModel.from_pretrained("your-username/DaViT")

# Generate a random sample input tensor with shape (batch_size, channels, height, width)
batch_size = 2
channels = 3
height = 224
width = 224
sample_input = torch.randn(batch_size, channels, height, width)

# Pass the sample input through the model
output = model(sample_input)

# Print the output shape
print(f"Output shape: {output.shape}")
Files
  • configuration_davit.py : Contains the DaViTConfig class.
  • modeling_davit.py : Contains the DaViTModel class.
  • test_davit_model.py : Script to test the model.
  • config.json : Configuration file for the model.
  • model.safetensors : Pretrained weights of the DaViT model.
Credits

This model is inspired by and builds upon the ideas presented in the Florence-2-large model by Microsoft .

Runs of amaye15 DaViT on huggingface.co

14
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
11
30-day runs

More Information About DaViT huggingface.co Model

More DaViT license Visit here:

https://choosealicense.com/licenses/mit

DaViT huggingface.co

DaViT huggingface.co is an AI model on huggingface.co that provides DaViT's model effect (), which can be used instantly with this amaye15 DaViT model. huggingface.co supports a free trial of the DaViT model, and also provides paid use of the DaViT. Support call DaViT model through api, including Node.js, Python, http.

amaye15 DaViT online free

DaViT huggingface.co is an online trial and call api platform, which integrates DaViT's modeling effects, including api services, and provides a free online trial of DaViT, you can try DaViT online for free by clicking the link below.

amaye15 DaViT online free url in huggingface.co:

https://huggingface.co/amaye15/DaViT

DaViT install

DaViT is an open source model from GitHub that offers a free installation service, and any user can find DaViT on GitHub to install. At the same time, huggingface.co provides the effect of DaViT install, users can directly use DaViT installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

DaViT install url in huggingface.co:

https://huggingface.co/amaye15/DaViT

Url of DaViT

Provider of DaViT huggingface.co

amaye15
ORGANIZATIONS

Other API from amaye15

huggingface.co

Total runs: 51
Run Growth: 37
Growth Rate: 72.55%
Updated:August 21 2025
huggingface.co

Total runs: 10
Run Growth: 6
Growth Rate: 60.00%
Updated:June 14 2024