Action Recognition Model
Classify actions and events over ranges of video frames.
Classify actions and events in a video stream. The block continuously samples each stream into a sliding window and adds each model result to a cumulative timeline. The first classification runs one stride after the stream starts. Later classifications run at each stride. By default, the stride equals the window, so consecutive windows tile the stream without overlap. Set a smaller stride to slide overlapping windows for finer range boundaries. Ranges can overlap. Timeline ranges only grow when the block merges model evidence. The block does not extend ranges provisionally. The timeline holds at most 5000 ranges per stream. A stream that passes that ceiling loses the ranges that ended earliest, so its timeline covers recent history rather than all of it. When a stream provides no source FPS, the block assumes 30 FPS and logs a warning.
The window length and the sample rate are part of the model, not block settings: a fine-tuned model declares the values its training used, and other models declare their defaults (a 16 second window at 4 frames per second).
The block does not run an extra classification when a stream ends, so frames after the final scheduled call do not receive a result. On a finite clip, keep the stride shorter than the clip: the first classification waits one full stride, so a longer stride never runs. Tail classification requires an end-of-stream signal and is planned separately.
Use this block with InferencePipeline for full temporal behavior. Still-image and HTTP execution do not provide a continuous stream. A single frame has no temporal content, so these paths return an empty timeline.
This block serves fine-tuned models only. A model trained on whole videos spans each clip in one call, and a stream has no end to span, so the block refuses it and names the action recognition endpoint instead.
The class vocabulary is optional. Leave it empty to report every class the model carries, or list classes to report a subset of them. When a model call fails, error_status carries the error text for that frame and the stream continues.
If required samples are missing, the block skips that window and reports their source-frame indices in error_status. Later complete windows resume inference. Source frames intentionally skipped by sampling are not missing.
Type identifier
Use the following identifier in step "type" field: roboflow_core/roboflow_action_recognition_model@v1 to add the block as a step in your workflow.
Properties
Name
Type
Description
Refs
name
str
Enter a unique identifier for this step..
❌
class_filter
List[str]
List of accepted classes. Classes must exist in the model's training set, and the output is restricted to this subset. Leave empty to report every class the model carries..
✅
model_id
str
Roboflow model identifier..
✅
confidence
Optional[float, str]
Candidate threshold before merging. "best" uses model-eval thresholds, "default" or empty uses the model built-in, or pass a float..
✅
stride_seconds
float
Time between classification calls. Leave empty to classify windows with the model's recorded overlap. A smaller stride slides overlapping windows for finer range boundaries at the cost of more model calls..
✅
The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.
Runtime compatibility
soft - runtime hosted_serverless, dedicated_deployment; execution remote; input video : Block keeps per-video state in process memory (keyed by video_metadata.video_identifier). With remote step execution on stateless or multi-replica HTTP runtimes, successive requests may be served by different worker processes, so the state resets between calls and the output is meaningless for tracking / counting / aggregation. Use local step execution in an InferencePipeline for stable cross-frame results.
hard - runtime self_hosted_cpu; execution local : Requires a GPU; action recognition needs CUDA.
soft - input image : Block depends on temporal context from video or repeated-frame workflows. With a still image/photo, there is no meaningful history to track, compare, aggregate, or visualize, so the block provides little or no benefit.
hard - execution remote : run() raises NotImplementedError under REMOTE step execution, on every runtime and for every input: the block keeps per-video state in its own instance and supports LOCAL step execution only.
Input and Output Bindings
The available connections depend on its binding kinds. Check what binding kinds Action Recognition Model in version v1 has.
Last updated
Was this helpful?