pyppbox 3.8b1__tar.gz → 3.9.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. {pyppbox-3.8b1/pyppbox.egg-info → pyppbox-3.9.0}/PKG-INFO +1 -1
  2. {pyppbox-3.8b1 → pyppbox-3.9.0}/RELEASENOTES.md +13 -3
  3. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/__init__.py +1 -1
  4. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/ppb/__init__.py +8 -8
  5. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/ppb/mt.py +17 -14
  6. {pyppbox-3.8b1 → pyppbox-3.9.0/pyppbox.egg-info}/PKG-INFO +1 -1
  7. {pyppbox-3.8b1 → pyppbox-3.9.0}/GETSTARTED.md +0 -0
  8. {pyppbox-3.8b1 → pyppbox-3.9.0}/LICENSE +0 -0
  9. {pyppbox-3.8b1 → pyppbox-3.9.0}/MANIFEST.in +0 -0
  10. {pyppbox-3.8b1 → pyppbox-3.9.0}/README.md +0 -0
  11. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/__init__.py +0 -0
  12. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/cfg/cfg.zip +0 -0
  13. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/cfg/detectors.yaml +0 -0
  14. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/cfg/main.yaml +0 -0
  15. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/cfg/reiders.yaml +0 -0
  16. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/cfg/trackers.yaml +0 -0
  17. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/configtools.py +0 -0
  18. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/myconfig.py +0 -0
  19. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/strings/strings.yaml +0 -0
  20. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/strings/strings.zip +0 -0
  21. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/config/unifiedstrings.py +0 -0
  22. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/data/datasets/.gitignore +0 -0
  23. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/data/logs/.gitignore +0 -0
  24. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/data/modules/.gitignore +0 -0
  25. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/data/res/.gitignore +0 -0
  26. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/data/res/idmap.txt +0 -0
  27. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/__init__.py +0 -0
  28. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/assets/TReID.png +0 -0
  29. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/assets/icon.ico +0 -0
  30. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/assets/settings.ico +0 -0
  31. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/guidemo.py +0 -0
  32. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/guihub.py +0 -0
  33. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/guitools.py +0 -0
  34. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/tmp/input.tmp +0 -0
  35. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/tmp/ui.tmp +0 -0
  36. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/ui_centroid.py +0 -0
  37. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/ui_deepsort.py +0 -0
  38. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/ui_facenet.py +0 -0
  39. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/ui_gt.py +0 -0
  40. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/ui_launcher.py +0 -0
  41. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/ui_sort.py +0 -0
  42. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/ui_torchreid.py +0 -0
  43. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/ui_yolocls.py +0 -0
  44. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/gui/ui_yoloult.py +0 -0
  45. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/__init__.py +0 -0
  46. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/detectors/__init__.py +0 -0
  47. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/detectors/yolocls/__init__.py +0 -0
  48. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/detectors/yoloult/__init__.py +0 -0
  49. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/reiders/__init__.py +0 -0
  50. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/reiders/facenet/__init__.py +0 -0
  51. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/reiders/facenet/origin/align_dataset_mtcnn.py +0 -0
  52. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/reiders/facenet/origin/detect_face.py +0 -0
  53. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/reiders/facenet/origin/facenet.py +0 -0
  54. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/reiders/torchreid/__init__.py +0 -0
  55. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/reiders/torchreid/model_dict.py +0 -0
  56. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/reiders/torchreid/model_dict.yaml +0 -0
  57. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/reiders/torchreid/utils.py +0 -0
  58. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/__init__.py +0 -0
  59. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/centroid/__init__.py +0 -0
  60. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/__init__.py +0 -0
  61. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/detection.py +0 -0
  62. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/detection_yolo.py +0 -0
  63. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/generate_detections.py +0 -0
  64. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/iou_matching.py +0 -0
  65. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/kalman_filter.py +0 -0
  66. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/linear_assignment.py +0 -0
  67. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/nn_matching.py +0 -0
  68. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/preprocessing.py +0 -0
  69. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/track.py +0 -0
  70. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/tracker.py +0 -0
  71. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/deepsort/origin/voc_classes.txt +0 -0
  72. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/sort/__init__.py +0 -0
  73. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/modules/trackers/sort/origin/sort.py +0 -0
  74. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/standalone/__init__.py +0 -0
  75. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/utils/__init__.py +0 -0
  76. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/utils/commontools.py +0 -0
  77. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/utils/evatools.py +0 -0
  78. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/utils/gttools.py +0 -0
  79. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/utils/logtools.py +0 -0
  80. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/utils/mot2pyppbox.py +0 -0
  81. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/utils/persontools.py +0 -0
  82. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/utils/restools.py +0 -0
  83. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox/utils/visualizetools.py +0 -0
  84. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox.egg-info/SOURCES.txt +0 -0
  85. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox.egg-info/dependency_links.txt +0 -0
  86. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox.egg-info/requires.txt +0 -0
  87. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyppbox.egg-info/top_level.txt +0 -0
  88. {pyppbox-3.8b1 → pyppbox-3.9.0}/pyproject.toml +0 -0
  89. {pyppbox-3.8b1 → pyppbox-3.9.0}/requirements/README.md +0 -0
  90. {pyppbox-3.8b1 → pyppbox-3.9.0}/requirements/requirements.txt +0 -0
  91. {pyppbox-3.8b1 → pyppbox-3.9.0}/requirements/test_gpu.py +0 -0
  92. {pyppbox-3.8b1 → pyppbox-3.9.0}/setup.cfg +0 -0
  93. {pyppbox-3.8b1 → pyppbox-3.9.0}/setup.py +0 -0
  94. {pyppbox-3.8b1 → pyppbox-3.9.0}/setup_extra.yaml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pyppbox
3
- Version: 3.8b1
3
+ Version: 3.9.0
4
4
  Summary: Toolbox for people detecting, tracking, and re-identifying.
5
5
  Home-page: https://github.com/rathaumons/pyppbox
6
6
  Author: Ratha SIV
@@ -12,7 +12,17 @@
12
12
 
13
13
  ## **pyppbox V3 - Make Simpler and Faster**
14
14
 
15
- * `pyppbox` [v3.8b1](https://github.com/rathaumons/pyppbox/tree/v3.8b1) - The Last V3
15
+ * `pyppbox` [v3.9.0](https://github.com/rathaumons/pyppbox/tree/v3.9.0) - The Last V3
16
+
17
+ - Fix `trainReIDClassifier()` for default input
18
+ - Add an example of retraining all internal reider classifiers for GTA V dataset
19
+ - Rearrange some examples
20
+ - Update and improve documentation
21
+ - Optimize GitHub workflows
22
+ - **Known issue/limitation**:
23
+ - You tell me :)
24
+
25
+ * `pyppbox` [v3.8b1](https://github.com/rathaumons/pyppbox/tree/v3.8b1) - ~~The Last V3~~
16
26
 
17
27
  - Add `show_footnote` option to `visualizePeople()`
18
28
  - Optimize and enhance general performance
@@ -69,13 +79,13 @@
69
79
  * `pyppbox` [v3.6b4](https://github.com/rathaumons/pyppbox/tree/v3.6b4) - ~~The Last V3~~
70
80
 
71
81
  - Integrate [SFPS](https://github.com/rathaROG/smooth-fps) for better FPS calculation
72
- - Update workflow
82
+ - Update GitHub workflows
73
83
  - **Known issue/limitation**:
74
84
  - You tell me :)
75
85
 
76
86
  * `pyppbox` [v3.6b3](https://github.com/rathaumons/pyppbox/tree/v3.6b3) - ~~The Last V3~~
77
87
 
78
- - Fix typo and update workflow
88
+ - Fix typo and update GitHub workflows
79
89
  - **Known issue/limitation**:
80
90
  - You tell me :)
81
91
 
@@ -47,7 +47,7 @@ from pyppbox.gui.guitools import (
47
47
  )
48
48
 
49
49
 
50
- __version__ = '3.8b1'
50
+ __version__ = '3.9.0'
51
51
  __author__ = 'Ratha SIV'
52
52
  __description__ = 'Toolbox for people detecting, tracking, and re-identifying.'
53
53
  __homepage__ = 'https://rathaumons.github.io/pyppbox'
@@ -101,13 +101,13 @@ def detectPeople(img,
101
101
  alt_repspoint_top=True):
102
102
  """See :func:`pyppbox.ppb.mt.MT.detectPeople`"""
103
103
  return _mt.detectPeople(img,
104
- img_is_mat=img_is_mat,
105
- visual=visual,
106
- save=save,
107
- save_file=save_file,
108
- min_width_filter=min_width_filter,
109
- alt_repspoint=alt_repspoint,
110
- alt_repspoint_top=alt_repspoint_top)
104
+ img_is_mat=img_is_mat,
105
+ visual=visual,
106
+ save=save,
107
+ save_file=save_file,
108
+ min_width_filter=min_width_filter,
109
+ alt_repspoint=alt_repspoint,
110
+ alt_repspoint_top=alt_repspoint_top)
111
111
 
112
112
  def setMainTracker(tracker=""):
113
113
  """See :func:`pyppbox.ppb.mt.MT.setMainTracker`"""
@@ -125,7 +125,7 @@ def reidPeople(img, people, deduplicate=True, img_is_mat=False):
125
125
  """See :func:`pyppbox.ppb.mt.MT.reidPeople`"""
126
126
  return _mt.reidPeople(img, people, deduplicate=deduplicate, img_is_mat=img_is_mat)
127
127
 
128
- def trainReIDClassifier(reider="Default", train_data="", classifier_pkl=""):
128
+ def trainReIDClassifier(reider="", train_data="", classifier_pkl=""):
129
129
  """See :func:`pyppbox.ppb.mt.MT.trainReIDClassifier`"""
130
130
  _mt.trainReIDClassifier(reider=reider, train_data=train_data, classifier_pkl=classifier_pkl)
131
131
 
@@ -172,8 +172,8 @@ class MT(object):
172
172
  self.__cfg_is_set__ = True
173
173
  if load_all:
174
174
  add_info_log(f"---PYPPBOX : DT='{self.__cfg__.mcfg.detector}', "
175
- f"TK='{self.__cfg__.mcfg.tracker}', "
176
- f"RI='{self.__cfg__.mcfg.reider}'")
175
+ f"TK='{self.__cfg__.mcfg.tracker}', "
176
+ f"RI='{self.__cfg__.mcfg.reider}'")
177
177
  self.__loadDefaultDetector__()
178
178
  self.__loadDefaultTracker__()
179
179
  self.__loadDefaultReIDer__()
@@ -302,6 +302,8 @@ class MT(object):
302
302
  else:
303
303
  add_info_log("---PYPPBOX : The input detecor is not recognized.")
304
304
  self.__dt_is_set__ = False
305
+ else:
306
+ add_warning_log("---PYPPBOX : The config is not set.")
305
307
 
306
308
  def __setCustomDetector__(self, detector_dict):
307
309
  if detector_dict:
@@ -363,10 +365,9 @@ class MT(object):
363
365
  if isinstance(detector, dict):
364
366
  self.__setCustomDetector__(detector)
365
367
  elif isinstance(detector, str):
366
- if (isDictString(detector) or "yaml" in detector.lower() or
367
- "json" in detector.lower()):
368
+ if (isDictString(detector) or "yaml" in detector.lower() or "json" in detector.lower()):
368
369
  self.__setCustomDetector__(getCFGDict(detector))
369
- elif detector.lower() == "":
370
+ elif detector == "":
370
371
  if not self.__cfg_is_set__: self.setConfigDir()
371
372
  self.__loadDefaultDetector__()
372
373
  add_info_log('---PYPPBOX : Use detector according to the "main.yaml"')
@@ -500,6 +501,8 @@ class MT(object):
500
501
  else:
501
502
  add_warning_log("---PYPPBOX : The input tracker is not recognized.")
502
503
  self.__tk_is_set__ = False
504
+ else:
505
+ add_warning_log("---PYPPBOX : The config is not set.")
503
506
 
504
507
  def __setCustomTracker__(self, tracker_dict):
505
508
  if tracker_dict:
@@ -561,10 +564,9 @@ class MT(object):
561
564
  if isinstance(tracker, dict):
562
565
  self.__setCustomTracker__(tracker)
563
566
  elif isinstance(tracker, str):
564
- if (isDictString(tracker) or "yaml" in tracker.lower() or
565
- "json" in tracker.lower()):
567
+ if (isDictString(tracker) or "yaml" in tracker.lower() or "json" in tracker.lower()):
566
568
  self.__setCustomTracker__(getCFGDict(tracker))
567
- elif tracker.lower() == "":
569
+ elif tracker == "":
568
570
  if not self.__cfg_is_set__: self.setConfigDir()
569
571
  self.__loadDefaultTracker__()
570
572
  add_info_log('---PYPPBOX : Use tracker according to the "main.yaml"')
@@ -669,6 +671,8 @@ class MT(object):
669
671
  else:
670
672
  add_warning_log("---PYPPBOX : The input reider is not recognized.")
671
673
  self.__ri_is_set__ = False
674
+ else:
675
+ add_warning_log("---PYPPBOX : The config is not set.")
672
676
 
673
677
  def __setCustomReIDer__(self, reider_dict, auto_load=True):
674
678
  if reider_dict:
@@ -698,7 +702,7 @@ class MT(object):
698
702
  self.__ri_is_set__ = True
699
703
  add_info_log(f"---PYPPBOX : Set reider='{self.__ri_cfg__.ri_name}'")
700
704
  self.__revokeGTDTOnly__()
701
- else :
705
+ else:
702
706
  self.__ri_is_set__ = False
703
707
  add_warning_log(f"---PYPPBOX : reider='{reider_dict['ri_name']}' is not recognized.")
704
708
 
@@ -738,10 +742,9 @@ class MT(object):
738
742
  if isinstance(reider, dict):
739
743
  self.__setCustomReIDer__(reider, auto_load)
740
744
  elif isinstance(reider, str):
741
- if (isDictString(reider) or "yaml" in reider.lower() or
742
- "json" in reider.lower()):
745
+ if (isDictString(reider) or "yaml" in reider.lower() or "json" in reider.lower()):
743
746
  self.__setCustomReIDer__(getCFGDict(reider), auto_load)
744
- elif reider.lower() == "":
747
+ elif reider == "":
745
748
  if not self.__cfg_is_set__: self.setConfigDir()
746
749
  self.__loadDefaultReIDer__(auto_load=auto_load)
747
750
  add_info_log('---PYPPBOX : Use reider according to the "main.yaml"')
@@ -950,13 +953,13 @@ class MT(object):
950
953
  index += 1
951
954
  return people, reid_count
952
955
 
953
- def trainReIDClassifier(self, reider="Default", train_data="", classifier_pkl=""):
956
+ def trainReIDClassifier(self, reider="", train_data="", classifier_pkl=""):
954
957
  """Train classifier of a reider by pointing to a data directory. Calling
955
958
  :func:`setConfigDir()` or :func:`setMainReIDer()` in advance is not required.
956
959
 
957
960
  Parameters
958
961
  ----------
959
- reider : str or dict, default="Default"
962
+ reider : str or dict, default=""
960
963
  A supported name, a raw/ready dictionary, or a YAML/JSON file which is passed to
961
964
  :func:`setMainReIDer()`, where `reider=reider`, and `auto_load=False`.
962
965
  train_data : str, default=""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pyppbox
3
- Version: 3.8b1
3
+ Version: 3.9.0
4
4
  Summary: Toolbox for people detecting, tracking, and re-identifying.
5
5
  Home-page: https://github.com/rathaumons/pyppbox
6
6
  Author: Ratha SIV
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes