-
Notifications
You must be signed in to change notification settings - Fork 27
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
Feat/multi batch processing #127
Merged
Merged
Changes from 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
84c0834
Replace setEnabled with setVisible for menu blocks
bartoszptak 1b90632
Add batch_size input box
bartoszptak c3a48f4
Handle model loading with dynamic param
bartoszptak c1f54a1
Add checkBox_local_cache param to UI
bartoszptak 6d0915a
Add new parameters to ConfigEntryKey
bartoszptak 1569bbf
Update test for new params; add new tests for local_cache
bartoszptak 48b6861
Propagate new params, handle local_cache with np.memmap
bartoszptak 2a2eb1e
Fix refactoring
bartoszptak fd39bc1
Add baseline for batch processing
bartoszptak 6e86be9
Refactoring of the code, unification
bartoszptak fe56b21
Update UI explanation docs
bartoszptak 44e4b41
Update batch size info and instance segm in creators_description_classes
bartoszptak 7bb32f8
Update onnx creation with dynamic batch size option
bartoszptak 989913c
Refactor code, add tests for batch and cache
bartoszptak 6b63808
Add value test for segmentation and batching
bartoszptak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os.path as path | ||
import shutil | ||
from tempfile import mkdtemp | ||
|
||
|
||
class TempFilesHandler: | ||
def __init__(self) -> None: | ||
self._temp_dir = mkdtemp() | ||
|
||
print(f'Created temp dir: {self._temp_dir} for processing') | ||
|
||
def get_results_img_path(self): | ||
return path.join(self._temp_dir, 'results.dat') | ||
|
||
def get_area_mask_img_path(self): | ||
return path.join(self._temp_dir, 'area_mask.dat') | ||
|
||
def __del__(self): | ||
shutil.rmtree(self._temp_dir) |
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about adding in comment it is caching on disk?