Commit ebc3f54
Fix fp16 compatibility issues in multiple segmentation models
- IDRNet: Change negative value from -1e16 to -1e4 to prevent fp16 overflow
- ISNet: Fix tensor creation to ensure proper device and dtype handling
- OCRNet: Fix spatial gather module input size mismatch by interpolating seg_logits_aux
These changes ensure models work correctly with fp16 (half precision) training.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fe216ef commit ebc3f54
File tree
2 files changed
+2
-2
lines changed- ssseg/modules/models/segmentors
- idrnet
- isnet
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments