Make SegNeuron inference usable and preserve the original code in legacy - #7
Merged
Merged
Conversation
yanchaoz
marked this pull request as ready for review
September 16, 2026 13:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SegNeuron's inference and FRMC scripts currently contain hard-coded paths, require labels for unlabeled inference, and do not save the instance output. This change adds usable CLI inputs and outputs, preserves the published MNet and ELF multicut method, and documents the working commands.
ccb0ba2c5e28e0d2c454e7320c341e71f4eb148cbyte-for-byte inlegacy/, including the original code, README, notebook and dependency export. The snapshot is marked vendored to keep the active diff reviewable.model_type, inclusive random-index bound, Python 3.10 configuration imports and iteration count. Respect caller GPU selection.Validation:
SEGNEURON_REQUIRE_ELF=1, so unavailable backend tests fail rather than skip.3767a3793cbbdbf98041b8c4c270b92d2355213d11605568c003322bb759bef5) ran on real Synapse178 crops of18×128×128and21×129×145; outputs retain exact input shapes and finite probabilities in[0,1].This validates runtime behavior and compatibility on the stated examples. Full GPU retraining, paper-benchmark reproduction, and segmentation-accuracy evaluation on expert neuron ground truth have not been run.