# Timing of GenerateDonutDirectDetect in ts_wep

XMLWordPrintable

#### Details

• Type: Improvement
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
• Story Points:
5
• Team:
Telescope and Site

#### Description

Inspect timing of the GenerateDonutDirectDetect algorithm. It currently runs slow (~few mins to detect donuts in an exposure), and we want to know which part makes it slow.

#### Activity

Hide
Krzysztof Suberlak added a comment -

We find that the slow part is the adaptive thresholding used when deblend is chosen. It detects faint blends, but runs at ~2mins per exposure to make a binary image, compared to 0.2 sec when using the centroid option. This notebook documents the findings, and compares it to afw.Detect https://github.com/suberlak/AOS/blob/main/AOS_DM-37398_donutDirectDetect_timing.ipynb

Show
Krzysztof Suberlak added a comment - We find that the slow part is the adaptive thresholding used when deblend is chosen. It detects faint blends, but runs at ~2mins per exposure to make a binary image, compared to 0.2 sec when using the centroid option. This notebook documents the findings, and compares it to afw.Detect https://github.com/suberlak/AOS/blob/main/AOS_DM-37398_donutDirectDetect_timing.ipynb
Hide
Bryce Kalmbach added a comment -

Looks good. Thanks for finding that QuickFrameMeasurementTask. I think it will be useful to use as we upgrade this.

Show
Bryce Kalmbach added a comment - Looks good. Thanks for finding that QuickFrameMeasurementTask. I think it will be useful to use as we upgrade this.

#### People

Assignee:
Krzysztof Suberlak
Reporter:
Krzysztof Suberlak
Reviewers:
Bryce Kalmbach
Watchers:
Andrew Connolly, Bryce Kalmbach, Krzysztof Suberlak