{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/stochastic-yolo-efficient-probabilistic","title":"Stochastic-YOLO: Efficient Probabilistic Object Detection under Dataset Shifts","arxiv_id":"2009.02967","date":"2020-09-07","proceeding":null,"authors":["Tiago Azevedo","René de Jong","Matthew Mattina","Partha Maji"],"abstract":"In image classification tasks, the evaluation of models' robustness to increased dataset shifts with a probabilistic framework is very well studied. However, object detection (OD) tasks pose other challenges for uncertainty estimation and evaluation. For example, one needs to evaluate both the quality of the label uncertainty (i.e., what?) and spatial uncertainty (i.e., where?) for a given bounding box, but that evaluation cannot be performed with more traditional average precision metrics (e.g., mAP). In this paper, we adapt the well-established YOLOv3 architecture to generate uncertainty estimations by introducing stochasticity in the form of Monte Carlo Dropout (MC-Drop), and evaluate it across different levels of dataset shift. We call this novel architecture Stochastic-YOLO, and provide an efficient implementation to effectively reduce the burden of the MC-Drop sampling mechanism at inference time. Finally, we provide some sensitivity analyses, while arguing that Stochastic-YOLO is a sound approach that improves different components of uncertainty estimations, in particular spatial uncertainties.","url_abs":"https://arxiv.org/abs/2009.02967v2","url_pdf":"https://arxiv.org/pdf/2009.02967v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"stochastic-yolo-efficient-probabilistic","repo_url":"https://github.com/tjiagom/stochastic-yolo","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"object","task_name":"Object"},{"task_slug":"object-detection","task_name":"Object Detection"},{"task_slug":"image-classification","task_name":"image-classification"},{"task_slug":"object-detection-1","task_name":"object-detection"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"average-pooling","method_name":"Average Pooling"},{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"global-average-pooling","method_name":"Global Average Pooling"},{"method_slug":"logistic-regression","method_name":"Logistic Regression"},{"method_slug":"monte-carlo-dropout","method_name":"Monte Carlo Dropout"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"yolov3","method_name":"YOLOv3"},{"method_slug":"k-means-clustering","method_name":"k-Means Clustering"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2009.02967","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2009.02967"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tjiagom/stochastic-yolo","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_honours":1,"ran_draft_wrong":1,"unverified":10},"by_repo_kind":{"official":{"samples":12,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"ec338718ed4c4fe1","entry":"get_yolo_layers","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"models.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/models.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ec338718ed4c4fe1"}},{"code_sha256_prefix":"fa99a26b6ba8f205","entry":"load_classes","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/utils.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/utils.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fa99a26b6ba8f205"}},{"code_sha256_prefix":"d738d0725acd9466","entry":"check_file","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/utils.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d738d0725acd9466"}},{"code_sha256_prefix":"2ae73fdbbb2cb8ba","entry":"exif_size","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/datasets.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/datasets.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2ae73fdbbb2cb8ba"}},{"code_sha256_prefix":"8739ca34adce7a6c","entry":"find_modules","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/torch_utils.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/torch_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8739ca34adce7a6c"}},{"code_sha256_prefix":"cb2cd3ae835b780a","entry":"fuse_conv_and_bn","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/torch_utils.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/torch_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cb2cd3ae835b780a"}},{"code_sha256_prefix":"aa2a7d97e3d5fc20","entry":"gdrive_download","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/google_utils.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/google_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"aa2a7d97e3d5fc20"}},{"code_sha256_prefix":"25f32f40bc0cba2f","entry":"labels_to_class_weights","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/utils.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/utils.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"25f32f40bc0cba2f"}},{"code_sha256_prefix":"5959383c642fb36b","entry":"make_divisible","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/layers.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/layers.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5959383c642fb36b"}},{"code_sha256_prefix":"249eabdf1135eba0","entry":"parse_data_cfg","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/parse_config.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/parse_config.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"249eabdf1135eba0"}},{"code_sha256_prefix":"cd7822fafa9df436","entry":"parse_model_cfg","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/parse_config.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/parse_config.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cd7822fafa9df436"}},{"code_sha256_prefix":"884fa842c35a486d","entry":"select_device","repo":"tjiagom/stochastic-yolo","repo_kind":"official","path":"utils/torch_utils.py","file_url":"https://github.com/tjiagom/stochastic-yolo/blob/HEAD/utils/torch_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"884fa842c35a486d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}