ZFTurbo / Music-Source-Separation-Training

Repository for training models for music source separation.
MIT License
485 stars 67 forks source link

Refactor: Consolidate target instrument selection #89

Closed hunterhogan closed 3 weeks ago

hunterhogan commented 3 weeks ago

Centralized target instrument selection logic using the prefer_target_instrument utility function. This simplifies code across multiple modules (inference, training, validation, and models) by replacing repetitive conditional checks with a single function call. This improves code readability and maintainability.