Commit 8209fd3
Sam3 add option (normalize and quality) (#250)
* Delete tools/Sam3/sam3_semantic_segmentation.py
* Delete tools/Sam3/sam3_semantic_segmentation.xml
* Add files via upload
* Update and rename sam3_semantic_segmentation(1).py to sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.xml
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.xml
* Add files via upload
* Delete tools/Sam3/test-data/shrimp.png
* Add files via upload
* Rename shrimp(2).png to shrimp.png
* Delete tools/Sam3/test-data/shrimp.png
* Add files via upload
* Delete tools/Sam3/test-data/shrimp.png
* Add files via upload
* Apply suggestion from @bgruening
Co-authored-by: Björn Grüning <bjoern@gruenings.eu>
* Apply suggestion from @bgruening
Co-authored-by: Björn Grüning <bjoern@gruenings.eu>
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.xml
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.xml
* Update semantic segmentation tool version and parameters
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.py
* Update sam3_semantic_segmentation.xml
* Update label for COCO Annotations data
* Update sam3_semantic_segmentation.xml
* Update sam3_semantic_segmentation.xml
* Add track_id to segmentation results
* Update sam3_semantic_segmentation.xml
* Refactor code for better readability and structure
* blake 79
* fix test
* Fix print statement formatting in annotation extraction
* Update sam3_semantic_segmentation.py
* Blake fix whitespace
---------
Co-authored-by: Yvan Le Bras <yvan.le-bras@mnhn.fr>
Co-authored-by: Björn Grüning <bjoern@gruenings.eu>1 parent 4d661df commit 8209fd3
File tree
2 files changed
+207
-26
lines changed- tools/Sam3
2 files changed
+207
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
| 98 | + | |
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
| |||
189 | 200 | | |
190 | 201 | | |
191 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
192 | 208 | | |
193 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
194 | 212 | | |
195 | 213 | | |
196 | 214 | | |
| |||
206 | 224 | | |
207 | 225 | | |
208 | 226 | | |
| 227 | + | |
209 | 228 | | |
210 | 229 | | |
211 | 230 | | |
| |||
293 | 312 | | |
294 | 313 | | |
295 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
296 | 426 | | |
297 | 427 | | |
298 | 428 | | |
| |||
475 | 605 | | |
476 | 606 | | |
477 | 607 | | |
478 | | - | |
| 608 | + | |
479 | 609 | | |
480 | 610 | | |
481 | 611 | | |
| |||
492 | 622 | | |
493 | 623 | | |
494 | 624 | | |
495 | | - | |
496 | | - | |
497 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
498 | 641 | | |
499 | 642 | | |
500 | 643 | | |
| |||
510 | 653 | | |
511 | 654 | | |
512 | 655 | | |
513 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
514 | 661 | | |
515 | 662 | | |
516 | 663 | | |
| |||
524 | 671 | | |
525 | 672 | | |
526 | 673 | | |
527 | | - | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
528 | 679 | | |
529 | 680 | | |
530 | 681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
32 | 44 | | |
33 | 45 | | |
34 | 46 | | |
| |||
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
51 | 70 | | |
52 | 71 | | |
53 | 72 | | |
54 | | - | |
| 73 | + | |
55 | 74 | | |
56 | 75 | | |
57 | 76 | | |
| |||
61 | 80 | | |
62 | 81 | | |
63 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
64 | 96 | | |
65 | 97 | | |
66 | 98 | | |
| |||
77 | 109 | | |
78 | 110 | | |
79 | 111 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 112 | | |
87 | 113 | | |
88 | 114 | | |
| |||
93 | 119 | | |
94 | 120 | | |
95 | 121 | | |
96 | | - | |
97 | | - | |
| 122 | + | |
| 123 | + | |
98 | 124 | | |
99 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
100 | 130 | | |
101 | 131 | | |
102 | 132 | | |
103 | | - | |
| 133 | + | |
104 | 134 | | |
105 | 135 | | |
106 | 136 | | |
107 | | - | |
| 137 | + | |
108 | 138 | | |
109 | 139 | | |
110 | 140 | | |
111 | | - | |
| 141 | + | |
112 | 142 | | |
113 | 143 | | |
114 | 144 | | |
115 | | - | |
| 145 | + | |
116 | 146 | | |
117 | 147 | | |
118 | 148 | | |
| |||
122 | 152 | | |
123 | 153 | | |
124 | 154 | | |
| 155 | + | |
125 | 156 | | |
126 | 157 | | |
127 | 158 | | |
128 | | - | |
129 | 159 | | |
130 | 160 | | |
131 | 161 | | |
| |||
0 commit comments