nateraw / videomae-base-finetuned-ucf101

huggingface.co
Total runs: 104
24-hour runs: 0
7-day runs: 1
30-day runs: -7
Model's Last Updated: November 11 2022
video-classification

Introduction of videomae-base-finetuned-ucf101

Model Details of videomae-base-finetuned-ucf101

Model Card for videomae-base-finetuned-ucf101

A WandB report here for metrics.

Table of Contents

  1. Model Details
  2. Uses
  3. Bias, Risks, and Limitations
  4. Training Details
  5. Evaluation
  6. Model Examination
  7. Environmental Impact
  8. Technical Specifications
  9. Citation
  10. Glossary
  11. More Information
  12. Model Card Authors
  13. Model Card Contact
  14. How To Get Started With the Model

Model Details

Model Description

VideoMAE Base model fine tuned on UCF101

  • Developed by: @nateraw
  • Shared by [optional]: [More Information Needed]
  • Model type: fine-tuned
  • Language(s) (NLP): en
  • License: mit
  • Related Models [optional]: [More Information Needed]
  • Resources for more information: [More Information Needed]

Uses

Direct Use

This model can be used for Video Action Recognition

Downstream Use [optional]

[More Information Needed]

Out-of-Scope Use

[More Information Needed]

Bias, Risks, and Limitations

[More Information Needed]

Recommendations

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

Training Details

Training Data

[More Information Needed]

Training Procedure [optional]
Preprocessing

We sampled clips from the videos of 64 frames, then took a uniform sample of those frames to get 16 frame inputs for the model. During training, we used PyTorchVideo's MixVideo to apply mixup/cutmix.

Speeds, Sizes, Times

[More Information Needed]

Evaluation

Testing Data, Factors & Metrics
Testing Data

[More Information Needed]

Factors

[More Information Needed]

Metrics

[More Information Needed]

Results

We only trained/evaluated one fold from the UCF101 annotations. Unlike in the VideoMAE paper, we did not perform inference over multiple crops/segments of validation videos, so the results are likely slightly lower than what you would get if you did that too.

  • Eval Accuracy: 0.758209764957428
  • Eval Accuracy Top 5: 0.8983050584793091

Model Examination [optional]

[More Information Needed]

Environmental Impact

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019) .

  • 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]

BibTeX:

[More Information Needed]

APA:

[More Information Needed]

Glossary [optional]

[More Information Needed]

More Information [optional]

[More Information Needed]

Model Card Authors [optional]

@nateraw

Model Card Contact

@nateraw

How to Get Started with the Model

Use the code below to get started with the model.

Click to expand
from decord import VideoReader, cpu
import torch
import numpy as np

from transformers import VideoMAEFeatureExtractor, VideoMAEForVideoClassification
from huggingface_hub import hf_hub_download

np.random.seed(0)


def sample_frame_indices(clip_len, frame_sample_rate, seg_len):
    converted_len = int(clip_len * frame_sample_rate)
    end_idx = np.random.randint(converted_len, seg_len)
    start_idx = end_idx - converted_len
    indices = np.linspace(start_idx, end_idx, num=clip_len)
    indices = np.clip(indices, start_idx, end_idx - 1).astype(np.int64)
    return indices


# video clip consists of 300 frames (10 seconds at 30 FPS)
file_path = hf_hub_download(
    repo_id="nateraw/dino-clips", filename="archery.mp4", repo_type="space"
)
videoreader = VideoReader(file_path, num_threads=1, ctx=cpu(0))

# sample 16 frames
videoreader.seek(0)
indices = sample_frame_indices(clip_len=16, frame_sample_rate=4, seg_len=len(videoreader))
video = videoreader.get_batch(indices).asnumpy()

feature_extractor = VideoMAEFeatureExtractor.from_pretrained("nateraw/videomae-base-finetuned-ucf101")
model = VideoMAEForVideoClassification.from_pretrained("nateraw/videomae-base-finetuned-ucf101")

inputs = feature_extractor(list(video), return_tensors="pt")

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

# model predicts one of the 101 UCF101 classes
predicted_label = logits.argmax(-1).item()
print(model.config.id2label[predicted_label])

Runs of nateraw videomae-base-finetuned-ucf101 on huggingface.co

104
Total runs
0
24-hour runs
2
3-day runs
1
7-day runs
-7
30-day runs

More Information About videomae-base-finetuned-ucf101 huggingface.co Model

More videomae-base-finetuned-ucf101 license Visit here:

https://choosealicense.com/licenses/mit

videomae-base-finetuned-ucf101 huggingface.co

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

videomae-base-finetuned-ucf101 huggingface.co Url

https://huggingface.co/nateraw/videomae-base-finetuned-ucf101

nateraw videomae-base-finetuned-ucf101 online free

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

nateraw videomae-base-finetuned-ucf101 online free url in huggingface.co:

https://huggingface.co/nateraw/videomae-base-finetuned-ucf101

videomae-base-finetuned-ucf101 install

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

videomae-base-finetuned-ucf101 install url in huggingface.co:

https://huggingface.co/nateraw/videomae-base-finetuned-ucf101

Url of videomae-base-finetuned-ucf101

videomae-base-finetuned-ucf101 huggingface.co Url

Provider of videomae-base-finetuned-ucf101 huggingface.co

nateraw
ORGANIZATIONS

Other API from nateraw

huggingface.co

Total runs: 4.6K
Run Growth: 1.9K
Growth Rate: 41.12%
Updated:May 18 2022
huggingface.co

A large, stereo MusicGen that acts as a useful tool for music producers

Total runs: 459
Run Growth: -224
Growth Rate: -48.80%
Updated:May 04 2024
huggingface.co

Total runs: 20
Run Growth: 16
Growth Rate: 80.00%
Updated:July 06 2021
huggingface.co

Total runs: 17
Run Growth: 10
Growth Rate: 58.82%
Updated:July 01 2021
huggingface.co

Total runs: 11
Run Growth: 3
Growth Rate: 27.27%
Updated:August 15 2021
huggingface.co

Total runs: 11
Run Growth: 3
Growth Rate: 27.27%
Updated:May 16 2023
huggingface.co

Total runs: 11
Run Growth: 2
Growth Rate: 18.18%
Updated:November 10 2021
huggingface.co

Total runs: 8
Run Growth: 2
Growth Rate: 25.00%
Updated:April 16 2021
huggingface.co

Total runs: 8
Run Growth: -1
Growth Rate: -12.50%
Updated:September 19 2021
huggingface.co

Total runs: 8
Run Growth: 2
Growth Rate: 25.00%
Updated:June 30 2021
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:June 29 2021
huggingface.co

Total runs: 6
Run Growth: 1
Growth Rate: 16.67%
Updated:March 30 2024
huggingface.co

Total runs: 5
Run Growth: 2
Growth Rate: 40.00%
Updated:April 13 2021
huggingface.co

Total runs: 5
Run Growth: -5
Growth Rate: -100.00%
Updated:July 08 2022
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:April 13 2021
huggingface.co

Total runs: 4
Run Growth: -1
Growth Rate: -25.00%
Updated:April 13 2021
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:April 13 2021