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
Parallelization of commands (CHIP and PREDICT) #671
Merged
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
af61e9f
Allow file existance to check for directories
lossyrob ff06499
Move TF Deeplab to use chip directory instead of individual chip files.
lossyrob c71f505
Split update_for_command and report_io.
lossyrob 53e3a6d
Introduce command splitting, apply to predict and chip.
lossyrob d6f9eef
Don't create command configurations that don't need to run.
lossyrob f367a4c
Relax restriction in validation of chip command config.
lossyrob d764a01
Updated Keras chip classification backend to utilize split commands.
lossyrob d6eeae4
Added option for integration tests to use non-temp rv_root.
lossyrob 39f9a94
Add utility for flipping a scene and it's labels.
lossyrob d444263
Fix formatting issues.
lossyrob 905928f
Fix integration test file placement for chip classification.
lossyrob fcbd012
Merge remote-tracking branch 'upstream/develop' into rde/feature/para…
lossyrob bd3c884
Fix group sizing issue for command splitting.
lossyrob 5fb6aee
Work around the issue of max 20 parent jobs in AWS Batch.
lossyrob 4e5dce2
Style fix.
lossyrob e75ad58
Merge remote-tracking branch 'upstream/develop' into rde/feature/para…
lossyrob f72b9be
Allow easier modification to integration test for debugging.
lossyrob 705c2c8
Modify object detection intergration test for 2 scenes.
lossyrob 017fa77
Implement parallelization for object detection.
lossyrob c883ef3
Fix formatting.
lossyrob 40c6761
Add docs for parallelization.
lossyrob 37713f0
Use splits in mock test run.
lossyrob bc86b29
Have codecov post new comment to clarify coverage change on update
lossyrob 187f2db
Increase test coverage.
lossyrob fef5b0b
Modify chip classification to use pretrained model.
lossyrob f733072
Modify integration test flip scene utility, flip semseg scene2
lossyrob 09163a8
Avoid double building PRs that are branches on main repo.
lossyrob 0a6275a
Format code.
lossyrob a6d81a4
Merge remote-tracking branch 'upstream/develop' into rde/feature/para…
lossyrob 2efa736
Fix contributing documentation.
lossyrob 94698c9
Document report_io and update_for_command
lossyrob cf540c4
Add parallelization and update_for_command refactor to changelog.
lossyrob 3d98352
Merge remote-tracking branch 'upstream/develop' into rde/feature/para…
lossyrob 98a6b2c
Merge remote-tracking branch 'upstream/develop' into rde/feature/para…
lossyrob cd1c7e7
Fix logic with training data in TF Object Detection.
lossyrob 17632cb
Fix typos in docs.
lossyrob a87eaa9
Reword doc string.
lossyrob 1675750
Use default dict.
lossyrob f21edcd
Use str_to_file
lossyrob 3175f80
Fix formatting.
lossyrob 2c6e560
Refactor grouped usage.
lossyrob File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
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 |
---|---|---|
|
@@ -337,6 +337,23 @@ def test_list_paths_s3(self): | |
list_paths(s3_directory) | ||
self.assertEqual(len(list_paths(s3_directory)), 1) | ||
|
||
def test_file_exists(self): | ||
path = os.path.join(self.temp_dir.name, 'lorem', 'ipsum.txt') | ||
s3_path = 's3://{}/xxx/lorem.txt'.format(self.bucket_name) | ||
s3_directory = 's3://{}/xxx/'.format(self.bucket_name) | ||
directory = os.path.dirname(path) | ||
make_dir(directory, check_empty=False) | ||
|
||
with open(path, 'w+') as file: | ||
file.write(self.lorem) | ||
upload_or_copy(path, s3_path) | ||
|
||
self.assertTrue(file_exists(s3_directory, include_dir=True)) | ||
self.assertTrue(file_exists(s3_path, include_dir=False)) | ||
self.assertFalse(file_exists(s3_directory, include_dir=False)) | ||
self.assertFalse(file_exists(s3_directory + 'NOTPOSSIBLE', include_dir=False)) | ||
|
||
|
||
|
||
class TestLocalMisc(unittest.TestCase): | ||
def setUp(self): | ||
|
@@ -428,6 +445,21 @@ def test_last_modified(self): | |
|
||
self.assertTrue(isinstance(stamp, datetime.datetime)) | ||
|
||
def test_file_exists(self): | ||
fs = FileSystem.get_file_system(self.temp_dir.name, 'r') | ||
|
||
path1 = os.path.join(self.temp_dir.name, 'lorem', 'ipsum.txt') | ||
dir1 = os.path.dirname(path1) | ||
make_dir(dir1, check_empty=False) | ||
|
||
with open(path1, 'w+') as file: | ||
file.write(self.lorem) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could use |
||
|
||
self.assertTrue(fs.file_exists(dir1, include_dir=True)) | ||
self.assertTrue(fs.file_exists(path1, include_dir=False)) | ||
self.assertFalse(fs.file_exists(dir1, include_dir=False)) | ||
self.assertFalse(fs.file_exists(dir1 + 'NOTPOSSIBLE', include_dir=False)) | ||
|
||
|
||
class TestHttpMisc(unittest.TestCase): | ||
def setUp(self): | ||
|
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.
Could use
str_to_file
instead.