ScribblePrompt3D, VoxelPrompt, and Rating Tab#9
Draft
EtienneChollet wants to merge 100 commits intofreesurfer:mainfrom
Draft
ScribblePrompt3D, VoxelPrompt, and Rating Tab#9EtienneChollet wants to merge 100 commits intofreesurfer:mainfrom
EtienneChollet wants to merge 100 commits intofreesurfer:mainfrom
Conversation
…all-to' into epc28/epc-1508-incorporate-rating-tab-into-the-qa-viewer-as-per-pauls
Moves optional-dependency handling to server.py instead of guarding inside each module. Server starts with whatever routes are available and logs warnings for anything it can't load.
Base env (pixi run dev) now only installs the viewer deps. ML and QA deps are opt-in via pixi run -e ml dev / -e qa dev / -e full dev. Server imports are gated by ENABLE_ML / ENABLE_QA env vars set through pixi feature activations — failed imports are real errors now.
encode_nifti (used by qa.py) doesn't need torch, but the module-level import forced it. Now torch is imported only inside clip_volume, with TYPE_CHECKING for the type hints.
Lockfile covers all four environments (default, ml, qa, full). Logs a warning at startup when CUDA is unavailable so users know inference will be slower without GPU-enabled pytorch.
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.
Features