Commit f10d13f
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 3e0c352 commit f10d13f
File tree
3 files changed
+3
-3
lines changed- ssseg/modules/models/segmentors
- idrnet
- isnet
- ocrnet
3 files changed
+3
-3
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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments