Added concurrency using lst-parallel.py#34
Open
pradhanhitesh wants to merge 4 commits intoCompImg:mainfrom
Open
Added concurrency using lst-parallel.py#34pradhanhitesh wants to merge 4 commits intoCompImg:mainfrom
pradhanhitesh wants to merge 4 commits intoCompImg:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
lst-parallel.pyscript helps execute multiple concurrentlstcommands using the CPU and improves processing time for large datasets.--t1,--flair,--output) and the number of concurrent (--max_workers) processes as input to run. All otherlstflags can also be added (such as--segment-only,--threshold,--stripped,--clipping,--fast-mode,--probability-map), which will subsequently be added while executing. In this script, I have added--save_temp, a flag that invokes the--tempflag forlstwith the appropriate file path to save the temporary files.Output,Log, andTemp(if--save_tempis set). In theOutputfolder, subject-wise files are stored. In theLogfolder, logs generated by thelstcommand is added and stored, along with time taken to finish the processing. Ifsave_tempis set,Tempfolder stores all the temporary files, subject-wise.lst_stats.csvin theOutputdirectory.Related Issue
Fixes #33
Type of Change
Checklist
Additional Notes
Currently, I have not tested
--annotate-onlyand--existing_segflags in thelst-parallel.pyscript yet. Therefore, I have excluded them from the script, including--lesion-threshold. To runlst-parallel.py,pandaspackage is required, which is not supplied initially throughpip install -e .