Skip to content

[fal.ai] flux-klein plugin: Conv2d padded input underflow — kernel (3×3) > input width (2px) causes chunk errors #917

Description

@livepeer-tessa

Summary

The flux-klein community plugin (installed from git+https://github.com/hthillman/scope-flux-klein) crashes with a Conv2d kernel size underflow error on every processed chunk when the input video is very narrow (2px wide after padding). This is the same class of error as #557 (VaceEncodingBlock) but occurring in the flux-klein plugin itself.

Error Frequency (2026-04-11 18:10–06:10 UTC, last 12h)

  • 34 occurrences in session 90d3c3ae (20:11–~20:13 UTC)
  • Error rate: ~2+ errors per second while active

Error Messages

2026-04-11 20:11:39,857 - scope.server.pipeline_processor - ERROR - Error processing chunk for flux-klein: Calculated padded input size per channel: (2 x 97). Kernel size: (3 x 3). Kernel size can't be greater than actual input size

2026-04-11 20:11:39,870 - scope.server.pipeline_processor - ERROR - Error processing chunk for flux-klein: Calculated padded input size per channel: (2 x 97). Kernel size: (3 x 3). Kernel size can't be greater than actual input size

Session Context

2026-04-11 20:08:32 - Installing plugin: git+https://github.com/hthillman/scope-flux-klein
2026-04-11 20:08:40 - Plugin installed: scope-flux-klein
2026-04-11 20:08:49 - Registered plugin pipeline: flux-klein
2026-04-11 20:09:33 - Loading pipeline: longlive (registry: flux-klein)
2026-04-11 20:10:46 - Parameter queue full for flux-klein, dropping parameter update (×4)
2026-04-11 20:11:39 - ERROR flood begins

Analysis

Input size (2 x 97) means the input width is only 2 pixels after whatever resizing/padding is applied — smaller than the 3×3 convolution kernel. The pipeline parameter queue was also full (dropping parameter update ×4), suggesting the pipeline was overwhelmed before the errors began.

The root cause is an input resolution too small for a convolution layer in the flux-klein plugin. The session used longlive as the pipeline type with flux-klein as the registry, suggesting this is a plugin that wraps longlive's architecture.

Related issues:

Fix approaches:

  1. Add input size validation in the pipeline processor before running inference — reject/skip frames where min(height, width) < 3
  2. Add a minimum resolution guard in the plugin or shared pipeline base class
  3. Enforce minimum input dimensions in the graph executor before frames reach pipelines

Environment

  • Service: fal.ai (plugin: scope-flux-klein v0.1.0 from github.com/hthillman/scope-flux-klein@776d67f)
  • Session: 90d3c3ae
  • Timestamp: 2026-04-11 20:11 UTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions