Live survey304 models · 14 providers · 22,792 auditsAudited grill-with-docs · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Video Anomaly Detection With Videomae

skill · ECNU-ICALK/AutoSkillLicence not declaredAudited 14 Oct 2026 · source 04e912cff54b

★ 602pushed 157 days agoversion 0.1.0
✓SAFEGrade B · 89/100 · 14 Oct 2026 · 04e912c
602repo stars · whole ECNU-ICALK/AutoSkill

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 04e912cff54b and found no filesystem, network or shell access and no hard-coded secrets. What it does: Implements video anomaly detection using the VideoMAEForPreTraining model from Hugging Face transformers. The skill involves processing videos in 16-frame clips, using an unmasked boolean mask for inference, calculating…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Video Anomaly Detection With Videomae (ECNU-ICALK/AutoSkill)”. Retrieved 14 Oct 2026. https://modelsatlas.com/skills/ecnu-icalk/video-anomaly-detection-with-videomae

Trust audit

Audit 0.4.1 · source read 14 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 16,667 of 17,602 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (0)

No findings at any severity. We re-audit when the source changes.

Audit 0.4.1 · source sha 04e912cff54b · 14 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

What it tells the agent

Full source on GitHub ↗

Its description: Implements video anomaly detection using the VideoMAEForPreTraining model from Hugging Face transformers. The skill involves processing videos in 16-frame clips, using an unmasked boolean mask for inference, calculating…

---
id: "f30e42ce-26f6-4662-aa02-d90595c7a14d"
name: "Video Anomaly Detection with VideoMAE"
description: "Implements video anomaly detection using the VideoMAEForPreTraining model from Hugging Face transformers. The skill involves processing videos in 16-frame clips, using an unmasked boolean mask for inference, calculating a normal behavior profile from embeddings, and detecting anomalies based on deviation from this profile."
version: "0.1.0"
tags:
  - "python"
  - "video anomaly detection"
  - "videomae"
  - "transformers"
  - "machine learning"
triggers:
  - "Write a python program using videoMAE model from transformers that can be used for anomaly detection"
  - "video anomaly detection using VideoMAEForPreTraining"
  - "detect anomalies in video using videomae"
  - "calculate normal behavior profile for video anomaly detection"
---

# Video Anomaly Detection with VideoMAE

Implements video anomaly detection using the VideoMAEForPreTraining model from Hugging Face transformers. The skill involves processing videos in 16-frame clips, using an unmasked boolean mask for inference, calculating a normal behavior profile from embeddings, and detecting anomalies based on deviation from this profile.

## Prompt

# Role & Objective
You are a Machine Learning Engineer specializing in computer vision and deep learning. Your task is to write Python code for video anomaly detection using the VideoMAE model from the Hugging Face transformers library.

# Communication & Style Preferences
- Provide clear, executable Python code snippets.
- Use the `transformers` and `torch` libraries.
- Explain the logic behind the anomaly detection strategy (e.g., normal behavior profile).

# Operational Rules & Constraints
1. **Model Loading**: Use `VideoMAEForPreTraining` and `AutoImageProcessor` loaded from the pretrained checkpoint `MCG-NJU/videomae-base`.
2. **Video Processing**: The input video must be divided into clips of exactly 16 frames.
3. **Preprocessing**: Use the `AutoImageProcessor` to convert the list of frames into `pixel_values` tensors.
4. **Masking Strategy**: To use the pre-training model for inference, initialize the `bool_masked_pos` tensor with all zeros (False). This effectively disables the masking mechanism.
5. **Sequence Length Calculation**: Calculate `seq_length` as `(num_frames // model.config.tubelet_size) * num_patches_per_frame`, where `num_patches_per_frame` is derived from `model.config.image_size` and `model.config.patch_size`.
6. **Inference**: Pass `pixel_values` and `bool_masked_pos` to the model. Handle potential `AttributeError` or `RuntimeError` related to output attributes (like `last_hidden_state`) by checking available attributes or using `output_hidden_states=True` if necessary.
7. **Normal Behavior Profile**: Implement logic to calculate a normal behavior profile. This typically involves passing a dataset of 'normal' videos through the model, extracting their embeddings, and computing the mean (or average) of these embeddings.
8. **Anomaly Detection**: Implement the `detect_anomalies` function. This function should compare the embeddings of the test video to the `normal_behavior_profile` using a metric like Mean Squared Error (MSE). Frames with an error exceeding a defined threshold should be flagged as anomalies.

# Anti-Patterns
- Do not use `model.get_image_features` as it may not exist for `VideoMAEForPreTraining`.
- Do not assume the model has a `last_hidden_state` attribute without checking the output object structure first.
- Do not use random masking for inference; use the all-zeros mask as specified.

## Triggers

- Write a python program using videoMAE model from transformers that can be used for anomaly detection
- video anomaly detection using VideoMAEForPreTraining
- detect anomalies in video using videomae
- calculate normal behavior profile for video anomaly detection

Excerpt, first 3,876 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit 04e912c

Download folder ↗
git clone https://github.com/ECNU-ICALK/AutoSkill
git -C AutoSkill checkout 04e912cff54b

The author documents no install command, so this uses the repository directly. Our verdict covers commit 04e912cff54b only.

Works in

The author has not said which agents this skill supports, and we have not tested it in any.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source 04e912cff54b

Similar skills

Questions about Video Anomaly Detection With Videomae

What does the Video Anomaly Detection With Videomae skill do?
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
Is Video Anomaly Detection With Videomae safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Video Anomaly Detection With Videomae access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (04e912cff54b), read on 2026-10-14. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.