Skip to content
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

Iqr web demo #10

Merged
merged 128 commits into from
Nov 12, 2021
Merged

Iqr web demo #10

merged 128 commits into from
Nov 12, 2021

Conversation

joshanderson-kw
Copy link
Contributor

No description provided.

Purg and others added 30 commits January 29, 2016 16:38
Also added async LSH code generation compute function and CLI interface.
Made work function the first argument in order to be more similar
in argument format to other map functions.
Plus added loop logging to compute classifications script.
And:
- added a descriptor output validation step to update script.
- tweaked release note
- added image-only note to compute_many_descriptors function due to
  current content validation code (opens as PIL.Image).
Like:
  - Lazy connection during postgres descriptor index batch operations
  - remove int cast for parameters in get_cdr_images
  - tweaked some logging messages
  - added progress reporting to many-descriptor computation script
  - added release note
Various updates to minor things
Before, performed explicitly image content specific actions on input
data, which is not generically guarenteed. Added CLI option to
optionally enable those checks when user knows input data is going to be
imagery. Moved byte loading check from base compute function into the
utility script.
…image-dependence

Removed explicit image data dependence from util
Fixed bug with element iteration in ``compute_many_descriptors`` function
Of note:
- Changed ``compute_many_descriptors.py`` script default batch size to
  0, meaning no high level batches.
- Removed old and added new configuration section to docker IQR service
  config due to the recent addition of IQR controller session
  timeout/expiration feature.
- Caffe descriptor generator can now take a file-like object for its
  image mean parameter.
- Added logging message when running ``parallel_map`` with ordered
  turned on.
- Changed default value for IQR web service session expiration enabled
  to false.
fix/update configs and comments
script to cluster via MiniBatchKMeans (scikit-learn)
…r index

In order to take advantage of any batch-query functionality in
descriptor index backend used.
memex hackathon updates -- deep learning classifier configs
Standardized cli_parsing function definition and filled in missing
utility hooks in utility documentation file.
Add setup.py installation support
@joshanderson-kw joshanderson-kw requested a review from Purg November 3, 2021 16:25
@codecov
Copy link

codecov bot commented Nov 3, 2021

Codecov Report

Attention: Patch coverage is 40.20270% with 177 lines in your changes missing coverage. Please review.

Project coverage is 67.58%. Comparing base (358323d) to head (53d3e86).
Report is 319 commits behind head on master.

Files Patch % Lines
smqtk_iqr/utils/compute_many_descriptors.py 29.16% 68 Missing ⚠️
smqtk_iqr/utils/generate_image_transform.py 28.57% 50 Missing ⚠️
smqtk_iqr/utils/compute_functions.py 14.89% 40 Missing ⚠️
smqtk_iqr/utils/nn_index_tool.py 56.41% 17 Missing ⚠️
smqtk_iqr/utils/runApplication.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
+ Coverage   64.09%   67.58%   +3.48%     
==========================================
  Files          28       34       +6     
  Lines        3250     3424     +174     
==========================================
+ Hits         2083     2314     +231     
+ Misses       1167     1110      -57     
Flag Coverage Δ
unittests 67.58% <40.20%> (+3.48%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Purg Purg marked this pull request as draft November 4, 2021 14:12
@joshanderson-kw joshanderson-kw marked this pull request as ready for review November 4, 2021 21:47
@Purg
Copy link
Member

Purg commented Nov 8, 2021

While we're not going to get to >=80% coverage, let's add additional unit tests to cover the lines you've modified here (in reference to the "codecov/patch" check).

docker/docker-compose.build.yml Outdated Show resolved Hide resolved
docker/docker-compose.build.yml Show resolved Hide resolved
docker/docker-compose.build.yml Show resolved Hide resolved
docker/smqtk_iqr_playground/Dockerfile Outdated Show resolved Hide resolved
docker/smqtk_iqr_playground/Dockerfile Show resolved Hide resolved
docker/tpl/caffe1/Dockerfile Show resolved Hide resolved
docker/tpl/faiss/gpu/Dockerfile Show resolved Hide resolved
docker/smqtk_iqr_playground/entrypoint.sh Outdated Show resolved Hide resolved
docker/docker-compose.build.yml Outdated Show resolved Hide resolved
smqtk_iqr/utils/bits.py Outdated Show resolved Hide resolved
smqtk_iqr/utils/combinatorics.py Outdated Show resolved Hide resolved
smqtk_iqr/utils/compute_functions.py Outdated Show resolved Hide resolved
smqtk_iqr/utils/compute_functions.py Outdated Show resolved Hide resolved
smqtk_iqr/utils/compute_functions.py Outdated Show resolved Hide resolved
smqtk_iqr/web/search_app/modules/iqr/iqr_search.py Outdated Show resolved Hide resolved
tests/utils/test_bit_utils.py Outdated Show resolved Hide resolved
tests/utils/test_combinatorics.py Outdated Show resolved Hide resolved
* add-missing-files: (64 commits)
  Fix IQR Playground docker image build issues
  Fix issues with flake8 and mypy due to rebase on CI update
  Add some mypy settings to make testing non-trivial
  Fix various Flake8 exposed issues
  Update FAISS TPL docker image build to compile actual bytecode
  Update ABC references to use collections.abc instead of collections
  Fixup/Update iqr images to use FAISS indexing
  Update classifier service docker builds
  IQR image update part 2 - Update/Collapse dockerfile
  Caffe update part 2 - New caffe TPL setup
  Update FAISS docker image
  Fix iqr-playground image build and helper run scripts
  Renamed DescriptorIndex to DescriptorSet
  Fix compute_functions.compute_many_descriptors + unit tests
  Added FAISS docker image build to inherit/copy from
  Update docstrings
  Update variable name for clarity
  Renamed various utility modules with "_utils" in their names
  PEP8 cleanup of compute_functions.py
  Avoid loading all data elements for transformation
  ...
Copy link
Member

@Purg Purg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

99% there! Just two minor tweaks before we merge this.

docs/webservices/iqrdemonstration.rst Show resolved Hide resolved
docker/docker-compose.build.yml Outdated Show resolved Hide resolved
docker/docker-compose.build.yml Outdated Show resolved Hide resolved
@Purg Purg merged commit 88375e5 into Kitware:master Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants