megadetector 5.0.9__tar.gz → 5.0.11__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.

Potentially problematic release.


This version of megadetector might be problematic. Click here for more details.

Files changed (232) hide show
  1. {megadetector-5.0.9 → megadetector-5.0.11}/LICENSE +0 -0
  2. {megadetector-5.0.9/megadetector.egg-info → megadetector-5.0.11}/PKG-INFO +12 -11
  3. {megadetector-5.0.9 → megadetector-5.0.11}/README-package.md +10 -9
  4. {megadetector-5.0.9 → megadetector-5.0.11}/README.md +31 -26
  5. {megadetector-5.0.9 → megadetector-5.0.11/megadetector.egg-info}/PKG-INFO +12 -11
  6. megadetector-5.0.11/megadetector.egg-info/SOURCES.txt +9 -0
  7. {megadetector-5.0.9 → megadetector-5.0.11}/megadetector.egg-info/dependency_links.txt +0 -0
  8. {megadetector-5.0.9 → megadetector-5.0.11}/megadetector.egg-info/requires.txt +0 -0
  9. megadetector-5.0.11/megadetector.egg-info/top_level.txt +1 -0
  10. {megadetector-5.0.9 → megadetector-5.0.11}/pyproject.toml +4 -4
  11. {megadetector-5.0.9 → megadetector-5.0.11}/setup.cfg +0 -0
  12. megadetector-5.0.9/api/__init__.py +0 -0
  13. megadetector-5.0.9/api/batch_processing/__init__.py +0 -0
  14. megadetector-5.0.9/api/batch_processing/api_core/__init__.py +0 -0
  15. megadetector-5.0.9/api/batch_processing/api_core/batch_service/__init__.py +0 -0
  16. megadetector-5.0.9/api/batch_processing/api_core/batch_service/score.py +0 -439
  17. megadetector-5.0.9/api/batch_processing/api_core/server.py +0 -294
  18. megadetector-5.0.9/api/batch_processing/api_core/server_api_config.py +0 -98
  19. megadetector-5.0.9/api/batch_processing/api_core/server_app_config.py +0 -55
  20. megadetector-5.0.9/api/batch_processing/api_core/server_batch_job_manager.py +0 -220
  21. megadetector-5.0.9/api/batch_processing/api_core/server_job_status_table.py +0 -152
  22. megadetector-5.0.9/api/batch_processing/api_core/server_orchestration.py +0 -360
  23. megadetector-5.0.9/api/batch_processing/api_core/server_utils.py +0 -92
  24. megadetector-5.0.9/api/batch_processing/api_core_support/__init__.py +0 -0
  25. megadetector-5.0.9/api/batch_processing/api_core_support/aggregate_results_manually.py +0 -46
  26. megadetector-5.0.9/api/batch_processing/api_support/__init__.py +0 -0
  27. megadetector-5.0.9/api/batch_processing/api_support/summarize_daily_activity.py +0 -152
  28. megadetector-5.0.9/api/batch_processing/data_preparation/__init__.py +0 -0
  29. megadetector-5.0.9/api/batch_processing/data_preparation/manage_local_batch.py +0 -2391
  30. megadetector-5.0.9/api/batch_processing/data_preparation/manage_video_batch.py +0 -327
  31. megadetector-5.0.9/api/batch_processing/integration/digiKam/setup.py +0 -6
  32. megadetector-5.0.9/api/batch_processing/integration/digiKam/xmp_integration.py +0 -465
  33. megadetector-5.0.9/api/batch_processing/integration/eMammal/test_scripts/config_template.py +0 -5
  34. megadetector-5.0.9/api/batch_processing/integration/eMammal/test_scripts/push_annotations_to_emammal.py +0 -126
  35. megadetector-5.0.9/api/batch_processing/integration/eMammal/test_scripts/select_images_for_testing.py +0 -55
  36. megadetector-5.0.9/api/batch_processing/postprocessing/__init__.py +0 -0
  37. megadetector-5.0.9/api/batch_processing/postprocessing/add_max_conf.py +0 -64
  38. megadetector-5.0.9/api/batch_processing/postprocessing/categorize_detections_by_size.py +0 -163
  39. megadetector-5.0.9/api/batch_processing/postprocessing/combine_api_outputs.py +0 -249
  40. megadetector-5.0.9/api/batch_processing/postprocessing/compare_batch_results.py +0 -958
  41. megadetector-5.0.9/api/batch_processing/postprocessing/convert_output_format.py +0 -397
  42. megadetector-5.0.9/api/batch_processing/postprocessing/load_api_results.py +0 -195
  43. megadetector-5.0.9/api/batch_processing/postprocessing/md_to_coco.py +0 -310
  44. megadetector-5.0.9/api/batch_processing/postprocessing/md_to_labelme.py +0 -330
  45. megadetector-5.0.9/api/batch_processing/postprocessing/merge_detections.py +0 -401
  46. megadetector-5.0.9/api/batch_processing/postprocessing/postprocess_batch_results.py +0 -1904
  47. megadetector-5.0.9/api/batch_processing/postprocessing/remap_detection_categories.py +0 -170
  48. megadetector-5.0.9/api/batch_processing/postprocessing/render_detection_confusion_matrix.py +0 -661
  49. megadetector-5.0.9/api/batch_processing/postprocessing/repeat_detection_elimination/find_repeat_detections.py +0 -211
  50. megadetector-5.0.9/api/batch_processing/postprocessing/repeat_detection_elimination/remove_repeat_detections.py +0 -82
  51. megadetector-5.0.9/api/batch_processing/postprocessing/repeat_detection_elimination/repeat_detections_core.py +0 -1631
  52. megadetector-5.0.9/api/batch_processing/postprocessing/separate_detections_into_folders.py +0 -731
  53. megadetector-5.0.9/api/batch_processing/postprocessing/subset_json_detector_output.py +0 -696
  54. megadetector-5.0.9/api/batch_processing/postprocessing/top_folders_to_bottom.py +0 -223
  55. megadetector-5.0.9/api/synchronous/__init__.py +0 -0
  56. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/__init__.py +0 -0
  57. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/api_backend.py +0 -152
  58. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/api_frontend.py +0 -266
  59. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/config.py +0 -35
  60. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/data_management/annotations/annotation_constants.py +0 -47
  61. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/detector_training/copy_checkpoints.py +0 -43
  62. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/detector_training/model_main_tf2.py +0 -114
  63. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/process_video.py +0 -543
  64. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/pytorch_detector.py +0 -304
  65. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/run_detector.py +0 -627
  66. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/run_detector_batch.py +0 -1029
  67. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/run_inference_with_yolov5_val.py +0 -581
  68. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/run_tiled_inference.py +0 -754
  69. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/tf_detector.py +0 -165
  70. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/detection/video_utils.py +0 -495
  71. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/azure_utils.py +0 -174
  72. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/ct_utils.py +0 -262
  73. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/directory_listing.py +0 -251
  74. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/matlab_porting_tools.py +0 -97
  75. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/path_utils.py +0 -416
  76. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/process_utils.py +0 -110
  77. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/sas_blob_utils.py +0 -509
  78. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/string_utils.py +0 -59
  79. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/url_utils.py +0 -144
  80. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_utils/write_html_image_list.py +0 -226
  81. megadetector-5.0.9/api/synchronous/api_core/animal_detection_api/md_visualization/visualization_utils.py +0 -841
  82. megadetector-5.0.9/api/synchronous/api_core/tests/__init__.py +0 -0
  83. megadetector-5.0.9/api/synchronous/api_core/tests/load_test.py +0 -110
  84. megadetector-5.0.9/classification/__init__.py +0 -0
  85. megadetector-5.0.9/classification/aggregate_classifier_probs.py +0 -108
  86. megadetector-5.0.9/classification/analyze_failed_images.py +0 -227
  87. megadetector-5.0.9/classification/cache_batchapi_outputs.py +0 -198
  88. megadetector-5.0.9/classification/create_classification_dataset.py +0 -627
  89. megadetector-5.0.9/classification/crop_detections.py +0 -516
  90. megadetector-5.0.9/classification/csv_to_json.py +0 -226
  91. megadetector-5.0.9/classification/detect_and_crop.py +0 -855
  92. megadetector-5.0.9/classification/efficientnet/__init__.py +0 -9
  93. megadetector-5.0.9/classification/efficientnet/model.py +0 -415
  94. megadetector-5.0.9/classification/efficientnet/utils.py +0 -610
  95. megadetector-5.0.9/classification/evaluate_model.py +0 -520
  96. megadetector-5.0.9/classification/identify_mislabeled_candidates.py +0 -152
  97. megadetector-5.0.9/classification/json_to_azcopy_list.py +0 -63
  98. megadetector-5.0.9/classification/json_validator.py +0 -695
  99. megadetector-5.0.9/classification/map_classification_categories.py +0 -276
  100. megadetector-5.0.9/classification/merge_classification_detection_output.py +0 -506
  101. megadetector-5.0.9/classification/prepare_classification_script.py +0 -194
  102. megadetector-5.0.9/classification/prepare_classification_script_mc.py +0 -228
  103. megadetector-5.0.9/classification/run_classifier.py +0 -286
  104. megadetector-5.0.9/classification/save_mislabeled.py +0 -110
  105. megadetector-5.0.9/classification/train_classifier.py +0 -825
  106. megadetector-5.0.9/classification/train_classifier_tf.py +0 -724
  107. megadetector-5.0.9/classification/train_utils.py +0 -322
  108. megadetector-5.0.9/data_management/__init__.py +0 -0
  109. megadetector-5.0.9/data_management/annotations/__init__.py +0 -0
  110. megadetector-5.0.9/data_management/annotations/annotation_constants.py +0 -34
  111. megadetector-5.0.9/data_management/camtrap_dp_to_coco.py +0 -238
  112. megadetector-5.0.9/data_management/cct_json_utils.py +0 -395
  113. megadetector-5.0.9/data_management/cct_to_md.py +0 -176
  114. megadetector-5.0.9/data_management/cct_to_wi.py +0 -289
  115. megadetector-5.0.9/data_management/coco_to_labelme.py +0 -272
  116. megadetector-5.0.9/data_management/coco_to_yolo.py +0 -662
  117. megadetector-5.0.9/data_management/databases/__init__.py +0 -0
  118. megadetector-5.0.9/data_management/databases/add_width_and_height_to_db.py +0 -33
  119. megadetector-5.0.9/data_management/databases/combine_coco_camera_traps_files.py +0 -206
  120. megadetector-5.0.9/data_management/databases/integrity_check_json_db.py +0 -477
  121. megadetector-5.0.9/data_management/databases/subset_json_db.py +0 -115
  122. megadetector-5.0.9/data_management/generate_crops_from_cct.py +0 -149
  123. megadetector-5.0.9/data_management/get_image_sizes.py +0 -188
  124. megadetector-5.0.9/data_management/importers/add_nacti_sizes.py +0 -52
  125. megadetector-5.0.9/data_management/importers/add_timestamps_to_icct.py +0 -79
  126. megadetector-5.0.9/data_management/importers/animl_results_to_md_results.py +0 -158
  127. megadetector-5.0.9/data_management/importers/auckland_doc_test_to_json.py +0 -372
  128. megadetector-5.0.9/data_management/importers/auckland_doc_to_json.py +0 -200
  129. megadetector-5.0.9/data_management/importers/awc_to_json.py +0 -189
  130. megadetector-5.0.9/data_management/importers/bellevue_to_json.py +0 -273
  131. megadetector-5.0.9/data_management/importers/cacophony-thermal-importer.py +0 -796
  132. megadetector-5.0.9/data_management/importers/carrizo_shrubfree_2018.py +0 -268
  133. megadetector-5.0.9/data_management/importers/carrizo_trail_cam_2017.py +0 -287
  134. megadetector-5.0.9/data_management/importers/cct_field_adjustments.py +0 -57
  135. megadetector-5.0.9/data_management/importers/channel_islands_to_cct.py +0 -913
  136. megadetector-5.0.9/data_management/importers/eMammal/copy_and_unzip_emammal.py +0 -180
  137. megadetector-5.0.9/data_management/importers/eMammal/eMammal_helpers.py +0 -249
  138. megadetector-5.0.9/data_management/importers/eMammal/make_eMammal_json.py +0 -223
  139. megadetector-5.0.9/data_management/importers/ena24_to_json.py +0 -275
  140. megadetector-5.0.9/data_management/importers/filenames_to_json.py +0 -385
  141. megadetector-5.0.9/data_management/importers/helena_to_cct.py +0 -282
  142. megadetector-5.0.9/data_management/importers/idaho-camera-traps.py +0 -1407
  143. megadetector-5.0.9/data_management/importers/idfg_iwildcam_lila_prep.py +0 -294
  144. megadetector-5.0.9/data_management/importers/jb_csv_to_json.py +0 -150
  145. megadetector-5.0.9/data_management/importers/mcgill_to_json.py +0 -250
  146. megadetector-5.0.9/data_management/importers/missouri_to_json.py +0 -489
  147. megadetector-5.0.9/data_management/importers/nacti_fieldname_adjustments.py +0 -79
  148. megadetector-5.0.9/data_management/importers/noaa_seals_2019.py +0 -181
  149. megadetector-5.0.9/data_management/importers/pc_to_json.py +0 -365
  150. megadetector-5.0.9/data_management/importers/plot_wni_giraffes.py +0 -123
  151. megadetector-5.0.9/data_management/importers/prepare-noaa-fish-data-for-lila.py +0 -359
  152. megadetector-5.0.9/data_management/importers/prepare_zsl_imerit.py +0 -131
  153. megadetector-5.0.9/data_management/importers/rspb_to_json.py +0 -356
  154. megadetector-5.0.9/data_management/importers/save_the_elephants_survey_A.py +0 -320
  155. megadetector-5.0.9/data_management/importers/save_the_elephants_survey_B.py +0 -332
  156. megadetector-5.0.9/data_management/importers/snapshot_safari_importer.py +0 -758
  157. megadetector-5.0.9/data_management/importers/snapshot_safari_importer_reprise.py +0 -665
  158. megadetector-5.0.9/data_management/importers/snapshot_serengeti_lila.py +0 -1067
  159. megadetector-5.0.9/data_management/importers/snapshotserengeti/make_full_SS_json.py +0 -150
  160. megadetector-5.0.9/data_management/importers/snapshotserengeti/make_per_season_SS_json.py +0 -153
  161. megadetector-5.0.9/data_management/importers/sulross_get_exif.py +0 -65
  162. megadetector-5.0.9/data_management/importers/timelapse_csv_set_to_json.py +0 -490
  163. megadetector-5.0.9/data_management/importers/ubc_to_json.py +0 -399
  164. megadetector-5.0.9/data_management/importers/umn_to_json.py +0 -507
  165. megadetector-5.0.9/data_management/importers/wellington_to_json.py +0 -263
  166. megadetector-5.0.9/data_management/importers/wi_to_json.py +0 -441
  167. megadetector-5.0.9/data_management/importers/zamba_results_to_md_results.py +0 -181
  168. megadetector-5.0.9/data_management/labelme_to_coco.py +0 -548
  169. megadetector-5.0.9/data_management/labelme_to_yolo.py +0 -272
  170. megadetector-5.0.9/data_management/lila/__init__.py +0 -0
  171. megadetector-5.0.9/data_management/lila/add_locations_to_island_camera_traps.py +0 -97
  172. megadetector-5.0.9/data_management/lila/add_locations_to_nacti.py +0 -147
  173. megadetector-5.0.9/data_management/lila/create_lila_blank_set.py +0 -557
  174. megadetector-5.0.9/data_management/lila/create_lila_test_set.py +0 -151
  175. megadetector-5.0.9/data_management/lila/create_links_to_md_results_files.py +0 -106
  176. megadetector-5.0.9/data_management/lila/download_lila_subset.py +0 -177
  177. megadetector-5.0.9/data_management/lila/generate_lila_per_image_labels.py +0 -515
  178. megadetector-5.0.9/data_management/lila/get_lila_annotation_counts.py +0 -170
  179. megadetector-5.0.9/data_management/lila/get_lila_image_counts.py +0 -111
  180. megadetector-5.0.9/data_management/lila/lila_common.py +0 -300
  181. megadetector-5.0.9/data_management/lila/test_lila_metadata_urls.py +0 -132
  182. megadetector-5.0.9/data_management/ocr_tools.py +0 -874
  183. megadetector-5.0.9/data_management/read_exif.py +0 -681
  184. megadetector-5.0.9/data_management/remap_coco_categories.py +0 -84
  185. megadetector-5.0.9/data_management/remove_exif.py +0 -66
  186. megadetector-5.0.9/data_management/resize_coco_dataset.py +0 -189
  187. megadetector-5.0.9/data_management/wi_download_csv_to_coco.py +0 -246
  188. megadetector-5.0.9/data_management/yolo_output_to_md_output.py +0 -441
  189. megadetector-5.0.9/data_management/yolo_to_coco.py +0 -676
  190. megadetector-5.0.9/detection/__init__.py +0 -0
  191. megadetector-5.0.9/detection/detector_training/__init__.py +0 -0
  192. megadetector-5.0.9/detection/detector_training/model_main_tf2.py +0 -114
  193. megadetector-5.0.9/detection/process_video.py +0 -703
  194. megadetector-5.0.9/detection/pytorch_detector.py +0 -337
  195. megadetector-5.0.9/detection/run_detector.py +0 -779
  196. megadetector-5.0.9/detection/run_detector_batch.py +0 -1219
  197. megadetector-5.0.9/detection/run_inference_with_yolov5_val.py +0 -917
  198. megadetector-5.0.9/detection/run_tiled_inference.py +0 -935
  199. megadetector-5.0.9/detection/tf_detector.py +0 -188
  200. megadetector-5.0.9/detection/video_utils.py +0 -606
  201. megadetector-5.0.9/docs/source/conf.py +0 -43
  202. megadetector-5.0.9/md_utils/__init__.py +0 -0
  203. megadetector-5.0.9/md_utils/azure_utils.py +0 -174
  204. megadetector-5.0.9/md_utils/ct_utils.py +0 -612
  205. megadetector-5.0.9/md_utils/directory_listing.py +0 -246
  206. megadetector-5.0.9/md_utils/md_tests.py +0 -968
  207. megadetector-5.0.9/md_utils/path_utils.py +0 -1044
  208. megadetector-5.0.9/md_utils/process_utils.py +0 -157
  209. megadetector-5.0.9/md_utils/sas_blob_utils.py +0 -509
  210. megadetector-5.0.9/md_utils/split_locations_into_train_val.py +0 -228
  211. megadetector-5.0.9/md_utils/string_utils.py +0 -92
  212. megadetector-5.0.9/md_utils/url_utils.py +0 -323
  213. megadetector-5.0.9/md_utils/write_html_image_list.py +0 -225
  214. megadetector-5.0.9/md_visualization/__init__.py +0 -0
  215. megadetector-5.0.9/md_visualization/plot_utils.py +0 -293
  216. megadetector-5.0.9/md_visualization/render_images_with_thumbnails.py +0 -275
  217. megadetector-5.0.9/md_visualization/visualization_utils.py +0 -1537
  218. megadetector-5.0.9/md_visualization/visualize_db.py +0 -551
  219. megadetector-5.0.9/md_visualization/visualize_detector_output.py +0 -406
  220. megadetector-5.0.9/megadetector.egg-info/SOURCES.txt +0 -228
  221. megadetector-5.0.9/megadetector.egg-info/top_level.txt +0 -9
  222. megadetector-5.0.9/taxonomy_mapping/__init__.py +0 -0
  223. megadetector-5.0.9/taxonomy_mapping/map_lila_taxonomy_to_wi_taxonomy.py +0 -491
  224. megadetector-5.0.9/taxonomy_mapping/map_new_lila_datasets.py +0 -154
  225. megadetector-5.0.9/taxonomy_mapping/prepare_lila_taxonomy_release.py +0 -142
  226. megadetector-5.0.9/taxonomy_mapping/preview_lila_taxonomy.py +0 -591
  227. megadetector-5.0.9/taxonomy_mapping/retrieve_sample_image.py +0 -71
  228. megadetector-5.0.9/taxonomy_mapping/simple_image_download.py +0 -218
  229. megadetector-5.0.9/taxonomy_mapping/species_lookup.py +0 -834
  230. megadetector-5.0.9/taxonomy_mapping/taxonomy_csv_checker.py +0 -159
  231. megadetector-5.0.9/taxonomy_mapping/taxonomy_graph.py +0 -346
  232. megadetector-5.0.9/taxonomy_mapping/validate_lila_category_mappings.py +0 -83
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: megadetector
3
- Version: 5.0.9
3
+ Version: 5.0.11
4
4
  Summary: MegaDetector is an AI model that helps conservation folks spend less time doing boring things with camera trap images.
5
5
  Author-email: Your friendly neighborhood MegaDetector team <cameratraps@lila.science>
6
6
  Maintainer-email: Your friendly neighborhood MegaDetector team <cameratraps@lila.science>
@@ -28,7 +28,7 @@ Project-URL: Homepage, https://github.com/agentmorris/MegaDetector
28
28
  Project-URL: Documentation, https://megadetector.readthedocs.io
29
29
  Project-URL: Bug Reports, https://github.com/agentmorris/MegaDetector/issues
30
30
  Project-URL: Source, https://github.com/agentmorris/MegaDetector
31
- Keywords: camera traps,conservation,wildlife,ai
31
+ Keywords: camera traps,conservation,wildlife,ai,megadetector
32
32
  Classifier: Development Status :: 3 - Alpha
33
33
  Classifier: License :: OSI Approved :: MIT License
34
34
  Classifier: Programming Language :: Python :: 3
@@ -52,9 +52,9 @@ Requires-Dist: ultralytics-yolov5==0.1.1
52
52
 
53
53
  # MegaDetector
54
54
 
55
- This package is a pip-installable version of the support/inference code for [MegaDetector](https://github.com/agentmorris/MegaDetector), an object detection model that helps conservation biologists spend less time doing boring things with camera trap images. Complete documentation for this Python package is available at <megadetector.readthedocs.io>.
55
+ This package is a pip-installable version of the support/inference code for [MegaDetector](https://github.com/agentmorris/MegaDetector/?tab=readme-ov-file#megadetector), an object detection model that helps conservation biologists spend less time doing boring things with camera trap images. Complete documentation for this Python package is available at [megadetector.readthedocs.io](https://megadetector.readthedocs.io).
56
56
 
57
- If you aren't looking for the Python package specificaly, and you just want to learn more about what MegaDetector is all about, head over to the [MegaDetector repo](https://github.com/agentmorris/MegaDetector).
57
+ If you aren't looking for the Python package specificaly, and you just want to learn more about what MegaDetector is all about, head over to the [MegaDetector repo](https://github.com/agentmorris/MegaDetector/?tab=readme-ov-file#megadetector).
58
58
 
59
59
 
60
60
  ## Reasons you probably aren't looking for this package
@@ -69,7 +69,7 @@ If you are a computer-vision-y person looking to run or fine-tune MegaDetector p
69
69
 
70
70
  ## Reasons you might want to use this package
71
71
 
72
- If you want to programmatically interact with the postprocessing tools from the MegaDetector repo, or programmatically run MegaDetector in a way that produces [Timelapse](https://saul.cpsc.ucalgary.ca/timelapse)-friendly output (i.e., output in the standard [MegaDetector output format](https://github.com/agentmorris/MegaDetector/tree/main/api/batch_processing#megadetector-batch-output-format)), this package might be for you.
72
+ If you want to programmatically interact with the postprocessing tools from the MegaDetector repo, or programmatically run MegaDetector in a way that produces [Timelapse](https://saul.cpsc.ucalgary.ca/timelapse)-friendly output (i.e., output in the standard [MegaDetector output format](https://github.com/agentmorris/MegaDetector/tree/main/megadetector/api/batch_processing#megadetector-batch-output-format)), this package might be for you.
73
73
 
74
74
  Although even if that describes you, you <i>still</i> might be better off cloning the MegaDetector repo. Pip-installability requires that some dependencies be newer than what was available at the time MDv5 was trained, so results are <i>very slightly</i> different than results produced in the "official" environment. These differences <i>probably</i> don't matter much, but they have not been formally characterized.
75
75
 
@@ -83,7 +83,7 @@ MegaDetector model weights aren't downloaded at pip-install time, but they will
83
83
 
84
84
  ## Package reference
85
85
 
86
- See <megadetector.readthedocs.io>.
86
+ See [megadetector.readthedocs.io](https://megadetector.readthedocs.io).
87
87
 
88
88
 
89
89
  ## Examples of things you can do with this package
@@ -91,9 +91,9 @@ See <megadetector.readthedocs.io>.
91
91
  ### Run MegaDetector on one image and count the number of detections
92
92
 
93
93
  ```
94
- from md_utils import url_utils
95
- from md_visualization import visualization_utils as vis_utils
96
- from detection import run_detector
94
+ from megadetector.utils import url_utils
95
+ from megadetector.visualization import visualization_utils as vis_utils
96
+ from megadetector.detection import run_detector
97
97
 
98
98
  # This is the image at the bottom of this page, it has one animal in it
99
99
  image_url = 'https://github.com/agentmorris/MegaDetector/raw/main/images/orinoquia-thumb-web.jpg'
@@ -113,8 +113,9 @@ print('Found {} detections above threshold'.format(len(detections_above_threshol
113
113
  ### Run MegaDetector on a folder of images
114
114
 
115
115
  ```
116
- from detection.run_detector_batch import load_and_run_detector_batch,write_results_to_file
117
- from md_utils import path_utils
116
+ from megadetector.detection.run_detector_batch import \
117
+ load_and_run_detector_batch,write_results_to_file
118
+ from megadetector.utils import path_utils
118
119
  import os
119
120
 
120
121
  # Pick a folder to run MD on recursively, and an output file
@@ -1,8 +1,8 @@
1
1
  # MegaDetector
2
2
 
3
- This package is a pip-installable version of the support/inference code for [MegaDetector](https://github.com/agentmorris/MegaDetector), an object detection model that helps conservation biologists spend less time doing boring things with camera trap images. Complete documentation for this Python package is available at <megadetector.readthedocs.io>.
3
+ This package is a pip-installable version of the support/inference code for [MegaDetector](https://github.com/agentmorris/MegaDetector/?tab=readme-ov-file#megadetector), an object detection model that helps conservation biologists spend less time doing boring things with camera trap images. Complete documentation for this Python package is available at [megadetector.readthedocs.io](https://megadetector.readthedocs.io).
4
4
 
5
- If you aren't looking for the Python package specificaly, and you just want to learn more about what MegaDetector is all about, head over to the [MegaDetector repo](https://github.com/agentmorris/MegaDetector).
5
+ If you aren't looking for the Python package specificaly, and you just want to learn more about what MegaDetector is all about, head over to the [MegaDetector repo](https://github.com/agentmorris/MegaDetector/?tab=readme-ov-file#megadetector).
6
6
 
7
7
 
8
8
  ## Reasons you probably aren't looking for this package
@@ -17,7 +17,7 @@ If you are a computer-vision-y person looking to run or fine-tune MegaDetector p
17
17
 
18
18
  ## Reasons you might want to use this package
19
19
 
20
- If you want to programmatically interact with the postprocessing tools from the MegaDetector repo, or programmatically run MegaDetector in a way that produces [Timelapse](https://saul.cpsc.ucalgary.ca/timelapse)-friendly output (i.e., output in the standard [MegaDetector output format](https://github.com/agentmorris/MegaDetector/tree/main/api/batch_processing#megadetector-batch-output-format)), this package might be for you.
20
+ If you want to programmatically interact with the postprocessing tools from the MegaDetector repo, or programmatically run MegaDetector in a way that produces [Timelapse](https://saul.cpsc.ucalgary.ca/timelapse)-friendly output (i.e., output in the standard [MegaDetector output format](https://github.com/agentmorris/MegaDetector/tree/main/megadetector/api/batch_processing#megadetector-batch-output-format)), this package might be for you.
21
21
 
22
22
  Although even if that describes you, you <i>still</i> might be better off cloning the MegaDetector repo. Pip-installability requires that some dependencies be newer than what was available at the time MDv5 was trained, so results are <i>very slightly</i> different than results produced in the "official" environment. These differences <i>probably</i> don't matter much, but they have not been formally characterized.
23
23
 
@@ -31,7 +31,7 @@ MegaDetector model weights aren't downloaded at pip-install time, but they will
31
31
 
32
32
  ## Package reference
33
33
 
34
- See <megadetector.readthedocs.io>.
34
+ See [megadetector.readthedocs.io](https://megadetector.readthedocs.io).
35
35
 
36
36
 
37
37
  ## Examples of things you can do with this package
@@ -39,9 +39,9 @@ See <megadetector.readthedocs.io>.
39
39
  ### Run MegaDetector on one image and count the number of detections
40
40
 
41
41
  ```
42
- from md_utils import url_utils
43
- from md_visualization import visualization_utils as vis_utils
44
- from detection import run_detector
42
+ from megadetector.utils import url_utils
43
+ from megadetector.visualization import visualization_utils as vis_utils
44
+ from megadetector.detection import run_detector
45
45
 
46
46
  # This is the image at the bottom of this page, it has one animal in it
47
47
  image_url = 'https://github.com/agentmorris/MegaDetector/raw/main/images/orinoquia-thumb-web.jpg'
@@ -61,8 +61,9 @@ print('Found {} detections above threshold'.format(len(detections_above_threshol
61
61
  ### Run MegaDetector on a folder of images
62
62
 
63
63
  ```
64
- from detection.run_detector_batch import load_and_run_detector_batch,write_results_to_file
65
- from md_utils import path_utils
64
+ from megadetector.detection.run_detector_batch import \
65
+ load_and_run_detector_batch,write_results_to_file
66
+ from megadetector.utils import path_utils
66
67
  import os
67
68
 
68
69
  # Pick a folder to run MD on recursively, and an output file
@@ -147,25 +147,40 @@ The core functionality provided is:
147
147
  - Training and running [MegaDetector](megadetector.md).
148
148
  - Training and running some [species classifiers](classification) that are used in conjunction with MegaDetector.
149
149
  - Tools to [convert](data_management) frequently-used camera trap metadata formats into a common format.
150
- - A [batch processing API](https://github.com/agentmorris/MegaDetector/tree/main/api/batch_processing) that runs MegaDetector on large image collections, to accelerate population surveys.
151
- - A [real-time API](https://github.com/agentmorris/MegaDetector/tree/main/api/synchronous) that runs MegaDetector (and some species classifiers) synchronously, primarily to support biosecurity applications.
150
+ - A [batch processing API](https://github.com/agentmorris/MegaDetector/tree/main/megadetector/api/batch_processing) that runs MegaDetector on large image collections, to accelerate population surveys.
151
+ - A [real-time API](https://github.com/agentmorris/MegaDetector/tree/main/megadetector/api/synchronous) that runs MegaDetector (and some species classifiers) synchronously, primarily to support biosecurity applications.
152
152
 
153
153
  This repo does not host the data used to train MegaDetector, but we work with our collaborators to make data and annotations available whenever possible on [lila.science](http://lila.science). See the [MegaDetector training data](megadetector.md#can-you-share-the-training-data) section to learn more about the data used to train MegaDetector.
154
154
 
155
155
  MegaDetector was initially developed by the [Microsoft AI for Earth program](https://www.microsoft.com/en-us/ai/ai-for-earth); this repo was forked from the microsoft/cameratraps repo and is maintained by the original MegaDetector developers (who are no longer at Microsoft, but are absolutely fantastically eternally grateful to Microsoft for the investment and commitment that made MegaDetector happen).
156
156
 
157
157
 
158
- ### api
158
+ ### megadetector/detection
159
159
 
160
- Code for hosting our models as an API, either for synchronous operation (i.e., for real-time inference) or as a batch process (for large biodiversity surveys). Common operations one might do after running MegaDetector &ndash; e.g. [generating preview pages to summarize your results](https://github.com/agentmorris/MegaDetector/blob/main/api/batch_processing/postprocessing/postprocess_batch_results.py), [separating images into different folders based on AI results](https://github.com/agentmorris/MegaDetector/blob/main/api/batch_processing/postprocessing/separate_detections_into_folders.py), or [converting results to a different format](https://github.com/agentmorris/MegaDetector/blob/main/api/batch_processing/postprocessing/convert_output_format.py) &ndash; also live in this folder, within the [api/batch_processing/postprocessing](https://github.com/agentmorris/MegaDetector/tree/main/api/batch_processing/postprocessing) folder.
160
+ Code for running models, especially MegaDetector.
161
161
 
162
162
 
163
- ### archive
163
+ ### megadetector/postprocessing
164
+
165
+ Code for common operations one might do after running MegaDetector, e.g. [generating preview pages to summarize your results](https://github.com/agentmorris/MegaDetector/blob/main/megadetector/postprocessing/postprocess_batch_results.py), [separating images into different folders based on AI results](https://github.com/agentmorris/MegaDetector/blob/main/megadetector/postprocessing/separate_detections_into_folders.py), or [converting results to a different format](https://github.com/agentmorris/MegaDetector/blob/main/megadetector/postprocessing/convert_output_format.py).
166
+
167
+
168
+ ### megadetector/utils
169
+
170
+ Small utility functions for string manipulation, filename manipulation, downloading files from URLs, etc. Mostly adapted from the [ai4eutils](https://github.com/microsoft/ai4eutils) repo.
164
171
 
165
- Old code that we didn't <i>quite</i> want to delete, but is basically obsolete.
166
172
 
173
+ ### megadetector/visualization
167
174
 
168
- ### classification
175
+ Tools for visualizing images with ground truth and/or predicted annotations.
176
+
177
+
178
+ ### megadetector/api
179
+
180
+ Code for hosting our models as an API, either for synchronous operation (i.e., for real-time inference) or as a batch process (for large biodiversity surveys).
181
+
182
+
183
+ ### megadetector/classification
169
184
 
170
185
  Experimental code for training species classifiers on new data sets, generally trained on MegaDetector crops. Currently the main pipeline described in this folder relies on a large database of labeled images that is not publicly available; therefore, this folder is not yet set up to facilitate training of your own classifiers. However, it is useful for <i>users</i> of the classifiers that we train, and contains some useful starting points if you are going to take a "DIY" approach to training classifiers on cropped images.
171
186
 
@@ -174,18 +189,18 @@ All that said, here's another "teaser image" of what you get at the end of train
174
189
  <img src="images/warthog_classifications.jpg" width="700"><br/>Image credit University of Minnesota, from the Snapshot Safari program.
175
190
 
176
191
 
177
- ### data_management
192
+ ### megadetector/taxonomy_mapping
178
193
 
179
- Code for:
194
+ Code to facilitate mapping data-set-specific category names (e.g. "lion", which means very different things in Idaho vs. South Africa) to a standard taxonomy.
180
195
 
181
- * Converting frequently-used metadata formats to [COCO Camera Traps](https://github.com/agentmorris/MegaDetector/blob/main/data_management/README.md#coco-cameratraps-format) format
182
- * Converting the output of AI models (especially [YOLOv5](https://github.com/agentmorris/MegaDetector/blob/main/api/batch_processing/postprocessing/convert_output_format.py)) to the format used for AI results throughout this repo
183
- * Creating, visualizing, and editing COCO Camera Traps .json databases
184
196
 
197
+ ### megadetector/data_management
185
198
 
186
- ### detection
199
+ Code for:
187
200
 
188
- Code for running models, especially MegaDetector.
201
+ * Converting frequently-used metadata formats to [COCO Camera Traps](https://github.com/agentmorris/MegaDetector/blob/main/megadetector/data_management/README.md#coco-cameratraps-format) format
202
+ * Converting the output of AI models (especially YOLOv5) to the format used for AI results throughout this repo
203
+ * Creating, visualizing, and editing COCO Camera Traps .json databases
189
204
 
190
205
 
191
206
  ### envs
@@ -198,14 +213,9 @@ Environment files... specifically .yml files for mamba/conda environments (these
198
213
  Media used in documentation.
199
214
 
200
215
 
201
- ### md_utils
202
-
203
- Small utility functions for string manipulation, filename manipulation, downloading files from URLs, etc. Mostly adapted from the [ai4eutils](https://github.com/microsoft/ai4eutils) repo.
204
-
205
-
206
- ### md_visualization
216
+ ### archive
207
217
 
208
- Tools for visualizing images with ground truth and/or predicted annotations.
218
+ Old code that we didn't <i>quite</i> want to delete, but is basically obsolete.
209
219
 
210
220
 
211
221
  ### sandbox
@@ -213,11 +223,6 @@ Tools for visualizing images with ground truth and/or predicted annotations.
213
223
  Random things that don't fit in any other directory, but aren't quite deprecated. Mostly postprocessing scripts that were built for a single use case but could potentially be useful in the future.
214
224
 
215
225
 
216
- ### taxonomy_mapping
217
-
218
- Code to facilitate mapping data-set-specific category names (e.g. "lion", which means very different things in Idaho vs. South Africa) to a standard taxonomy.
219
-
220
-
221
226
  ### test_images
222
227
 
223
228
  A handful of images from [LILA](https://lila.science) that facilitate testing and debugging.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: megadetector
3
- Version: 5.0.9
3
+ Version: 5.0.11
4
4
  Summary: MegaDetector is an AI model that helps conservation folks spend less time doing boring things with camera trap images.
5
5
  Author-email: Your friendly neighborhood MegaDetector team <cameratraps@lila.science>
6
6
  Maintainer-email: Your friendly neighborhood MegaDetector team <cameratraps@lila.science>
@@ -28,7 +28,7 @@ Project-URL: Homepage, https://github.com/agentmorris/MegaDetector
28
28
  Project-URL: Documentation, https://megadetector.readthedocs.io
29
29
  Project-URL: Bug Reports, https://github.com/agentmorris/MegaDetector/issues
30
30
  Project-URL: Source, https://github.com/agentmorris/MegaDetector
31
- Keywords: camera traps,conservation,wildlife,ai
31
+ Keywords: camera traps,conservation,wildlife,ai,megadetector
32
32
  Classifier: Development Status :: 3 - Alpha
33
33
  Classifier: License :: OSI Approved :: MIT License
34
34
  Classifier: Programming Language :: Python :: 3
@@ -52,9 +52,9 @@ Requires-Dist: ultralytics-yolov5==0.1.1
52
52
 
53
53
  # MegaDetector
54
54
 
55
- This package is a pip-installable version of the support/inference code for [MegaDetector](https://github.com/agentmorris/MegaDetector), an object detection model that helps conservation biologists spend less time doing boring things with camera trap images. Complete documentation for this Python package is available at <megadetector.readthedocs.io>.
55
+ This package is a pip-installable version of the support/inference code for [MegaDetector](https://github.com/agentmorris/MegaDetector/?tab=readme-ov-file#megadetector), an object detection model that helps conservation biologists spend less time doing boring things with camera trap images. Complete documentation for this Python package is available at [megadetector.readthedocs.io](https://megadetector.readthedocs.io).
56
56
 
57
- If you aren't looking for the Python package specificaly, and you just want to learn more about what MegaDetector is all about, head over to the [MegaDetector repo](https://github.com/agentmorris/MegaDetector).
57
+ If you aren't looking for the Python package specificaly, and you just want to learn more about what MegaDetector is all about, head over to the [MegaDetector repo](https://github.com/agentmorris/MegaDetector/?tab=readme-ov-file#megadetector).
58
58
 
59
59
 
60
60
  ## Reasons you probably aren't looking for this package
@@ -69,7 +69,7 @@ If you are a computer-vision-y person looking to run or fine-tune MegaDetector p
69
69
 
70
70
  ## Reasons you might want to use this package
71
71
 
72
- If you want to programmatically interact with the postprocessing tools from the MegaDetector repo, or programmatically run MegaDetector in a way that produces [Timelapse](https://saul.cpsc.ucalgary.ca/timelapse)-friendly output (i.e., output in the standard [MegaDetector output format](https://github.com/agentmorris/MegaDetector/tree/main/api/batch_processing#megadetector-batch-output-format)), this package might be for you.
72
+ If you want to programmatically interact with the postprocessing tools from the MegaDetector repo, or programmatically run MegaDetector in a way that produces [Timelapse](https://saul.cpsc.ucalgary.ca/timelapse)-friendly output (i.e., output in the standard [MegaDetector output format](https://github.com/agentmorris/MegaDetector/tree/main/megadetector/api/batch_processing#megadetector-batch-output-format)), this package might be for you.
73
73
 
74
74
  Although even if that describes you, you <i>still</i> might be better off cloning the MegaDetector repo. Pip-installability requires that some dependencies be newer than what was available at the time MDv5 was trained, so results are <i>very slightly</i> different than results produced in the "official" environment. These differences <i>probably</i> don't matter much, but they have not been formally characterized.
75
75
 
@@ -83,7 +83,7 @@ MegaDetector model weights aren't downloaded at pip-install time, but they will
83
83
 
84
84
  ## Package reference
85
85
 
86
- See <megadetector.readthedocs.io>.
86
+ See [megadetector.readthedocs.io](https://megadetector.readthedocs.io).
87
87
 
88
88
 
89
89
  ## Examples of things you can do with this package
@@ -91,9 +91,9 @@ See <megadetector.readthedocs.io>.
91
91
  ### Run MegaDetector on one image and count the number of detections
92
92
 
93
93
  ```
94
- from md_utils import url_utils
95
- from md_visualization import visualization_utils as vis_utils
96
- from detection import run_detector
94
+ from megadetector.utils import url_utils
95
+ from megadetector.visualization import visualization_utils as vis_utils
96
+ from megadetector.detection import run_detector
97
97
 
98
98
  # This is the image at the bottom of this page, it has one animal in it
99
99
  image_url = 'https://github.com/agentmorris/MegaDetector/raw/main/images/orinoquia-thumb-web.jpg'
@@ -113,8 +113,9 @@ print('Found {} detections above threshold'.format(len(detections_above_threshol
113
113
  ### Run MegaDetector on a folder of images
114
114
 
115
115
  ```
116
- from detection.run_detector_batch import load_and_run_detector_batch,write_results_to_file
117
- from md_utils import path_utils
116
+ from megadetector.detection.run_detector_batch import \
117
+ load_and_run_detector_batch,write_results_to_file
118
+ from megadetector.utils import path_utils
118
119
  import os
119
120
 
120
121
  # Pick a folder to run MD on recursively, and an output file
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README-package.md
3
+ README.md
4
+ pyproject.toml
5
+ megadetector.egg-info/PKG-INFO
6
+ megadetector.egg-info/SOURCES.txt
7
+ megadetector.egg-info/dependency_links.txt
8
+ megadetector.egg-info/requires.txt
9
+ megadetector.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ megadetector
@@ -5,13 +5,13 @@ requires = [
5
5
 
6
6
  [project]
7
7
  name = "megadetector"
8
- version = "5.0.9"
8
+ version = "5.0.11"
9
9
  description = "MegaDetector is an AI model that helps conservation folks spend less time doing boring things with camera trap images."
10
10
  readme = "README-package.md"
11
11
  # As of 2023.10.10, PyTorch isn't installable on Python 3.12
12
12
  requires-python = ">=3.9,<3.12"
13
13
  license = {file = "LICENSE"}
14
- keywords = ["camera traps", "conservation", "wildlife", "ai"]
14
+ keywords = ["camera traps", "conservation", "wildlife", "ai", "megadetector"]
15
15
  authors = [
16
16
  {name = "Your friendly neighborhood MegaDetector team", email = "cameratraps@lila.science" }
17
17
  ]
@@ -52,8 +52,8 @@ dependencies = [
52
52
  "Source" = "https://github.com/agentmorris/MegaDetector"
53
53
 
54
54
  [tool.setuptools.packages.find]
55
- where = ["."]
56
- include = ["*"]
55
+ # where = ["."]
56
+ include = ["megadetector"]
57
57
  exclude = [
58
58
  "archive*", "images*", "envs*","dist*","megadetector.egg-info*",
59
59
  "sandbox*","test-images*","__pycache__*"
File without changes
File without changes
File without changes