Skip to content

Conversation

@aarushgupta
Copy link
Contributor

No description provided.

@aarushgupta aarushgupta changed the title Add valid mask argument and fix typo Add valid mask argument and update collate_fn May 22, 2019
@zudi-lin
Copy link
Collaborator

support mitochondria training with distance transform and valid mask.

@zudi-lin zudi-lin merged commit 2f87b62 into PytorchConnectomics:master May 23, 2019
donglaiw pushed a commit that referenced this pull request Nov 14, 2025
…ion configurable

Changes:
1. Phase 2.2: Remove dummy validation dataset workaround (lit_data.py)
   - Replaced DummyDataset with proper warning when validation fails
   - More honest error handling instead of masking configuration issues

2. Phase 2.3: Make hardcoded deep supervision values configurable (hydra_config.py, lit_model.py)
   - Added ModelConfig fields:
     * deep_supervision_weights (default: [1.0, 0.5, 0.25, 0.125, 0.0625])
     * deep_supervision_clamp_min (default: -20.0)
     * deep_supervision_clamp_max (default: 20.0)
   - Updated lit_model.py to use configurable values in 3 locations:
     * Multi-task output clamping
     * Deep supervision output clamping
     * Deep supervision scale weights with validation

Benefits:
- Users can now customize deep supervision behavior without code changes
- Removes technical debt items #2 and #4 from REFACTORING_PLAN.md
- Better error handling for missing validation data
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.

2 participants