mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
The BiRefNetHRMattingSession.predict normalization crashes when all pixels share the same value (ma == mi). Use a guarded denominator so uniform-alpha inputs produce a zero mask instead of a NaN explosion. Also adds _register_birefnet_hr_matting() to install_feature.py so the HR-matting model can be downloaded during feature installation, matching the existing registration in remove_bg.py.