Skip to content

zero out channels that aren't normazlied#1156

Merged
mrariden merged 1 commit into
mainfrom
blank_channel
May 6, 2025
Merged

zero out channels that aren't normazlied#1156
mrariden merged 1 commit into
mainfrom
blank_channel

Conversation

@mrariden
Copy link
Copy Markdown
Collaborator

@mrariden mrariden commented May 6, 2025

This PR resolves an issue where the transformer model behaved inconsistently depending on how extra input channels were padded. Specifically, CP4 failed to recognize some cells that CP3 detected, due to differences in input normalization when additional channels were present.

Previously, extra channels (e.g., the 2nd and 3rd channels in grayscale images or the 3rd in RGB) were padded with ones after normalization.

This change ensures that all extra channels are consistently padded with zeros, preventing the transformer from interpreting the padding as meaningful signal.

@mrariden mrariden merged commit 8006ae1 into main May 6, 2025
13 checks passed
@mrariden mrariden deleted the blank_channel branch May 6, 2025 16:55
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.

1 participant