Commit 5b4d72c
Add an alternative scenario to EoMT
* Add an alternative scenario in case patch_offsets is None
* Fixup
* Fix an error
* Simplified the function
---------
Co-authored-by: Yoni Gozlan <[email protected]>post_process_semantic_segmentation in case path_offsets is None (#42716)1 parent 3f3cae7 commit 5b4d72c
File tree
2 files changed
+26
-2
lines changed- src/transformers/models/eomt
2 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
819 | 831 | | |
820 | 832 | | |
821 | 833 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
389 | 401 | | |
390 | 402 | | |
391 | 403 | | |
| |||
0 commit comments