Downloads · 30 days
0
0% of all-time downloads
pablorodriper/video-vision-transformer
video-vision-transformer is a machine learning model from pablorodriper. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for keras. The card lists the license as apache-2.0.
This repo contains the model to this Keras example on Video Vision Transformer.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
98
Public
Repo size
11.3 MB
Likes
1
Public
Click a slice to open those files.
.data-00000-of-000016.7 MB · 74%
From the Hugging Face model README
This repo contains the model to this Keras example on Video Vision Transformer.
This example implements ViViT: A Video Vision Transformer by Arnab et al., a pure Transformer-based model for video classification. The authors propose a novel embedding scheme and a number of Transformer variants to model video clips.
We use the MedMNIST v2: A Large-Scale Lightweight Benchmark for 2D and 3D Biomedical Image Classification dataset.
# DATA
DATASET_NAME = "organmnist3d"
BATCH_SIZE = 32
AUTO = tf.data.AUTOTUNE
INPUT_SHAPE = (28, 28, 28, 1)
NUM_CLASSES = 11
# OPTIMIZER
LEARNING_RATE = 1e-4
WEIGHT_DECAY = 1e-5
# TRAINING
EPOCHS = 80
# TUBELET EMBEDDING
PATCH_SIZE = (8, 8, 8)
NUM_PATCHES = (INPUT_SHAPE[0] // PATCH_SIZE[0]) ** 2
# ViViT ARCHITECTURE
LAYER_NORM_EPS = 1e-6
PROJECTION_DIM = 128
NUM_HEADS = 8
NUM_LAYERS = 8