Repository navigation
Commit 61cfdba
merge named snapshot evaluation into pytorch_dlc (#2657)
* Add feature to evaluate network for specfic, named snapshots. (#2508)
* Add snapshot selection option to evaluate_network while preserving existing functionality.
- Replace snapindex with more explicit snapshot_name. snapshotindex from config is used to identify the snapshot name instead.
- Refactor logic for snapshotindex allowed values. Add limit to negative index values.
* Update evaluate.py
- Replace snapshots_to_evaluate numpy indexing with list loop
- Raise error if no snapshots are found
* Add snapshots_to_evaluate docstring
* Remove unused distance function
* Update evaluate.py
* Improve snapshots_to_evaluate docstring
* Get training_iterations from snapshot_name
* Rename trainingsiterations -> training_iterations
* Improve snapshot_to_evaluate typehint and docstring.
* Refactor evaluate.py
* Create get_available_requested_snapshots for obtaining specified snapshot names (new feature).
* Create get_snapshots_by_index to handle the original implementation.
* Minor improvements and fixes
* Add tests for new snapshot functions in evaluate.py
* Update evaluate_multianimal.py
* Add snapshots_to_evaluate parameter to multi-animal evaluation
* Minor renaming
* Update python-package.yml
* add evaluate_by_snapshot branch for testing purposes
* Add snapshots_to_evaluate usage in testscript.py
* Update get_snapshots_by_index function
* Better typehint for int or str
* Raise IndexError instead of ValueError
* Add get_snapshots_by_index tests to test_evaluate.py
* Update return_evaluate_network_data function with get_snapshots_by_index usage
* Fix potential reference before assignment by raising ValueError
* Refactor getting existing snapshot file names as sorted list.
* Add list_sorted_existing_snapshots to auxiliaryfunctions.py.
* Update several files to use the newly refactored function.
* Preserve same exception handling, albeit with modified message to be more general and concise.
* Refactor evaluate_multianimal.py
* Add new snapshot auxiliary function usage.
* Preserve continuation of loop if no snapshots are found.
* Remove indentation level.
* Rename list_sorted_exisiting_snapshots -> get_snapshots_in_folder
* Update name for all usages
* Minor change to function docstring
* Remove redundant sorting in evaluate_multianimal.py
* Port numpy array to list (not performance critical)
* Add get_snapshots_from_folder tests
* Test snapshots present and returned in order
* Test snapshots not found
* Fix deprecated function names
* Improve snapshots_to_evaluate test in testscript.py
* Correct spelling
* Add per_keypoint_evaluation to evaluate_multianimal_full function call (woops!)
* minor linting
---------
Co-authored-by: Mackenzie Mathis <mathis@rowland.harvard.edu>
Co-authored-by: Niels Poulsen <niels.poulsen@epfl.ch>
* fixed file dialog not showing uppercase file extension video files (#2645)
* fixed file dialog not showing uppercase file extension video files
* bug fix: no shuffle_change slot in main window
* bug fix
---------
Co-authored-by: Niels Poulsen <niels.poulsen@epfl.ch>
Co-authored-by: Mackenzie Mathis <mathis@rowland.harvard.edu>
---------
Co-authored-by: jkopp <32641315+Tetra-quark@users.noreply.github.com>
Co-authored-by: Mackenzie Mathis <mathis@rowland.harvard.edu>
Co-authored-by: Terry Park <58895710+park-jsdev@users.noreply.github.com>1 parent 20dac7d commit 61cfdba
11 files changed
Lines changed: 687 additions & 608 deletions
File tree
- deeplabcut
- gui
- pose_estimation_tensorflow
- core
- utils
- examples
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| |||
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
389 | 393 | | |
390 | 394 | | |
391 | 395 | | |
| |||
464 | 468 | | |
465 | 469 | | |
466 | 470 | | |
| 471 | + | |
467 | 472 | | |
468 | 473 | | |
469 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
163 | 171 | | |
164 | 172 | | |
165 | 173 | | |
166 | 174 | | |
167 | | - | |
| 175 | + | |
168 | 176 | | |
169 | 177 | | |
170 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
| |||
349 | 346 | | |
350 | 347 | | |
351 | 348 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
359 | 352 | | |
360 | 353 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
383 | 361 | | |
384 | 362 | | |
385 | 363 | | |
386 | 364 | | |
387 | | - | |
| 365 | + | |
388 | 366 | | |
389 | | - | |
| 367 | + | |
390 | 368 | | |
391 | 369 | | |
392 | 370 | | |
| |||
411 | 389 | | |
412 | 390 | | |
413 | 391 | | |
414 | | - | |
| 392 | + | |
415 | 393 | | |
416 | 394 | | |
417 | 395 | | |
| |||
458 | 436 | | |
459 | 437 | | |
460 | 438 | | |
461 | | - | |
| 439 | + | |
462 | 440 | | |
463 | 441 | | |
464 | 442 | | |
| |||
469 | 447 | | |
470 | 448 | | |
471 | 449 | | |
472 | | - | |
| 450 | + | |
473 | 451 | | |
474 | 452 | | |
475 | 453 | | |
| |||
489 | 467 | | |
490 | 468 | | |
491 | 469 | | |
492 | | - | |
| 470 | + | |
493 | 471 | | |
494 | 472 | | |
495 | 473 | | |
| |||
563 | 541 | | |
564 | 542 | | |
565 | 543 | | |
| 544 | + | |
566 | 545 | | |
567 | 546 | | |
568 | 547 | | |
| |||
620 | 599 | | |
621 | 600 | | |
622 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
623 | 605 | | |
624 | 606 | | |
625 | 607 | | |
| |||
673 | 655 | | |
674 | 656 | | |
675 | 657 | | |
| 658 | + | |
676 | 659 | | |
677 | 660 | | |
678 | 661 | | |
| |||
787 | 770 | | |
788 | 771 | | |
789 | 772 | | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
| 773 | + | |
| 774 | + | |
797 | 775 | | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | 776 | | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
817 | 782 | | |
818 | | - | |
819 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
820 | 786 | | |
821 | 787 | | |
822 | 788 | | |
| |||
841 | 807 | | |
842 | 808 | | |
843 | 809 | | |
844 | | - | |
| 810 | + | |
845 | 811 | | |
846 | | - | |
| 812 | + | |
847 | 813 | | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
| 814 | + | |
853 | 815 | | |
854 | 816 | | |
855 | 817 | | |
856 | 818 | | |
857 | 819 | | |
858 | 820 | | |
859 | | - | |
| 821 | + | |
860 | 822 | | |
861 | 823 | | |
862 | 824 | | |
863 | 825 | | |
864 | 826 | | |
865 | 827 | | |
866 | | - | |
| 828 | + | |
867 | 829 | | |
868 | 830 | | |
869 | 831 | | |
| |||
873 | 835 | | |
874 | 836 | | |
875 | 837 | | |
876 | | - | |
| 838 | + | |
877 | 839 | | |
878 | 840 | | |
879 | 841 | | |
| |||
931 | 893 | | |
932 | 894 | | |
933 | 895 | | |
934 | | - | |
| 896 | + | |
935 | 897 | | |
936 | 898 | | |
937 | 899 | | |
| |||
955 | 917 | | |
956 | 918 | | |
957 | 919 | | |
958 | | - | |
| 920 | + | |
959 | 921 | | |
960 | 922 | | |
961 | 923 | | |
| |||
978 | 940 | | |
979 | 941 | | |
980 | 942 | | |
981 | | - | |
| 943 | + | |
982 | 944 | | |
983 | 945 | | |
984 | 946 | | |
| |||
1013 | 975 | | |
1014 | 976 | | |
1015 | 977 | | |
1016 | | - | |
| 978 | + | |
1017 | 979 | | |
1018 | 980 | | |
1019 | 981 | | |
| |||
1039 | 1001 | | |
1040 | 1002 | | |
1041 | 1003 | | |
1042 | | - | |
| 1004 | + | |
1043 | 1005 | | |
1044 | 1006 | | |
1045 | 1007 | | |
| |||
1112 | 1074 | | |
1113 | 1075 | | |
1114 | 1076 | | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1115 | 1128 | | |
1116 | 1129 | | |
1117 | 1130 | | |
| |||
0 commit comments