Skip to content

fix: resolve input image sub-property selector in workflow compiler (…#2138

Open
furai-ai wants to merge 1 commit intoroboflow:mainfrom
furai-ai:fix/input-image-name-selector-2113
Open

fix: resolve input image sub-property selector in workflow compiler (…#2138
furai-ai wants to merge 1 commit intoroboflow:mainfrom
furai-ai:fix/input-image-name-selector-2113

Conversation

@furai-ai
Copy link

#2113)

What does this PR do?

Fixes the workflow compiler error when binding $inputs.image.name
to the Dataset Upload block's image name field.

Root cause: When a selector like $inputs.image.name was used,
the compiler passed the full string to node_as() for graph lookup,
but only $inputs.image exists as a node — causing an AssumptionError.

Fix: Added get_input_selector_base() helper in compiler/utils.py
that strips sub-property suffixes from input selectors before graph
node lookup. Used in graph_constructor.py when resolving input
selector bindings.

Related Issue(s): Fixes #2113

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Tests

Added two unit tests in test_utils.py covering:

  • $inputs.image.name → stripped to $inputs.image
  • $inputs.image → unchanged

@CLAassistant
Copy link

CLAassistant commented Mar 21, 2026

CLA assistant check
All committers have signed the CLA.

…oboflow#2113)

When a workflow block references .image.name, the compiler
failed to find the node in the execution graph because it passed
the full selector string instead of the base input selector.

Added get_input_selector_base() helper to strip sub-property suffix
from input selectors before graph node lookup.
@furai-ai furai-ai force-pushed the fix/input-image-name-selector-2113 branch from 6350148 to 17073b2 Compare March 21, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflow Compiler error when binding Active Learning image name to input image filename

2 participants