-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated Substrate Mapping Workflow #39
Comments
After batch processing 40 recordings (failed on LEA_020_000_20210518_USM1_Rec00005), the process was terminated during the Mapping Substrate Classification step. 72 out of 130 port/starboard pairs were successfully exported, then the following error was thrown:
This appears to be a memory leak (#38). Below are the memory usage stats for each step while processing LEA_20210518_USM1/020_000_Rec00005: Start:
Summary of ping attributes:
Auto depth estimation:
Auto shadow removal:
Smoothing trackline:
Auto substrate segmentation:
Substrate plot export:
Then the substrate mapping caused the program to fail. Need to investigate this in more detail. |
Notes for implementing a new moving window mapping approach. Old approachThe current mapping workflow takes each chunk, loads Not a good approach because 3+ predictions are made for each chunk, which is redundant. New approachBefore doing predictions, calculate the unique combination of chunks and window offsets based on stride. For example, with a chunk size of 500 and stride of 100, the unique combinations are:
Pass each chunk, window offset pair to the predict function, which will do the prediction and export to csv, using chunk and window offset as part of the name. After all predictions are made, the map function will iterate each chunk, load all npzs that overlap with given chunk, stack the predictions and take average, then crop to chunk extent and rectify. These steps will reduce the total number of predicitons and likely speed the mapping process, which will also address #66. |
^^^^^^^^^^^ NOT SURE IF ABOVE IS THE BEST ^^^^^^^^^^^^^^^^^^^ Writing the extra prediction files to disk takes extra time, and extra space. I'm going to neglect this for now. I will make a commit just to keep as a record, in case I want to come back to this idea. |
Substrate workflow is fully implemented with https://github.com/CameronBodine/PINGMapper/releases/tag/v2.0.0-alpha. Closing as complete. |
Use preliminary substrate segmentation models to build out substrate mapping workflow. Use this issue to track commits pertaining to substrate mapping.
The text was updated successfully, but these errors were encountered: