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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
061bef0
Moved compute functions to a sub-module of SMQTK
Purg Jan 29, 2016
55d2b90
finished hash compute function + CLI frontend script
Purg Jan 29, 2016
cdcc9b1
fixed some documentation
Purg Feb 1, 2016
34c066b
moved NoClassificationError home, updated some documentation
Purg Feb 1, 2016
7a26e62
reordered some arguments to parallel_map
Purg Feb 2, 2016
c876a9f
report_progress takes logging function, not class
Purg Feb 3, 2016
8d20293
Added number processed logging to compute_many_descriptors function
Purg Feb 12, 2016
69d967f
add missing logging to compute_many_descriptors
Purg Feb 15, 2016
3600e65
added more logging
Purg Feb 15, 2016
d9a9c9a
Added more documentation to update script about accounting for results
Purg Feb 18, 2016
a83f012
Merge pull request #204 from Purg/dev/memex-scripts
Purg Feb 19, 2016
64bc538
Various updates to minor things
Purg Mar 3, 2016
b87410b
Merge pull request #214 from Purg/dev/small-fixes
Purg Mar 3, 2016
fbbfe1d
Added a final report, fixed typo, added import fail warning
Purg Mar 8, 2016
93563d4
Merge pull request #219 from Purg/dev/index-label-classifier
Purg Mar 9, 2016
6dbbeb0
Removed explicit image data dependence from util
Purg Apr 18, 2016
6a68bde
Merge pull request #227 from Purg/dev/descriptor-compute-util-remove-…
Purg Apr 18, 2016
5787483
Fixed bug with element iteration in ``compute_many_descriptors`` func…
Purg Apr 18, 2016
d2b6a5a
Merge pull request #231 from Purg/dev/fix-descriptor-compute-function
Purg Apr 18, 2016
0dd894a
Fix/Update various configuration files and comments
Purg Jul 11, 2016
4486247
Merge pull request #257 from Purg/dev/fix-configs
Purg Jul 12, 2016
03c5a9e
Separated out clustering function + added simple test
Purg Jul 20, 2016
95eaa2e
Added note/test about when given an empty index
Purg Jul 20, 2016
0fa94a5
Merge pull request #258 from Purg/dev/minibatchkmeans-clustering
Purg Jul 21, 2016
0c6fcfa
Reworked clustering compute function to use multi-getter on descripto…
Purg Aug 8, 2016
283d8d3
Merge pull request #270 from Purg/dev/memex-hackathon-updates
Purg Aug 16, 2016
b6b5101
moved bin scripts into module, added entry-point hooks in setup.py
Purg Aug 22, 2016
eaf23b7
Update utilities and documentation
Purg Aug 23, 2016
027b0c0
Merge pull request #271 from Purg/dev/add-setup-py
Purg Aug 23, 2016
0dfa4b7
Add optional ability to build dataset from files input to cmd
Purg Sep 19, 2016
b4e881b
Fixed CSV writing to actually use csv python module
Purg Sep 19, 2016
2409093
Merge pull request #277 from Kitware/dev/cmd-add-dataset-fix-csv
Purg Sep 19, 2016
d5862f2
Merge branch 'master' into gur/vigilant/master
Purg Sep 19, 2016
cf62166
Add crop generation function to make fixed size tiles from image
Purg Oct 3, 2016
6b08ad2
Merge branch 'gur/vigilant/generate-image-tiles' into 'gur/vigilant/m…
Purg Oct 4, 2016
9409249
Generalize methods for determining if a data file element is valid
danlamanna Nov 29, 2016
4562c2a
Generalizing image utility functions
danlamanna Nov 29, 2016
ca70771
Fix miscellaneous syntax errors, add invert functionality
danlamanna Nov 29, 2016
64a4e82
Merge pull request #292 from Kitware/add-check-images-script
danlamanna Nov 30, 2016
e69e3de
Merge remote-tracking branch 'kitware/master' into gur/vigilant/master
Purg Dec 6, 2016
702b128
Merge remote-tracking branch 'internal/master' into gur/intuidex_lrd/…
Purg Dec 6, 2016
60a4cec
Merge branch 'master' into remove-config-group-from-makeballtree
Purg Mar 2, 2017
8bf6c28
Merge pull request #295 from Kitware/remove-config-group-from-makebal…
Purg Mar 7, 2017
1d435ec
Merge branch 'master' into allow-single-process-itq-functor
Purg Mar 7, 2017
c6e609e
Merge pull request #303 from Kitware/allow-single-process-itq-functor
Purg Mar 7, 2017
cf0bf51
Merge branch 'master' into gur/vigilant/master
Purg Mar 7, 2017
d938a6c
Fix ``DescriptorGenerator.compute_descriptor_async`` methods...
Purg Dec 30, 2016
a53a4f9
Merge branch 'gur/vigilant/use-from-uri' into 'gur/vigilant/master'
Purg Mar 7, 2017
0439e4d
Generalize compute_many_descriptors to work on data elements
danlamanna Mar 20, 2017
5062a06
Merge branch 'gur/vigilant/generalize-compute-many-descriptors' into …
Purg Mar 20, 2017
c7f552e
Merge branch 'master' into gur/intuidex_lrd/master
Purg Mar 20, 2017
188a32c
Merge pull request #322 from Kitware/dev/integrate-prr-20170329
Purg Nov 17, 2017
de4e1ba
fix logging statement
Purg May 8, 2017
1662125
refactor compute_hash_codes function to yield results
Purg May 8, 2017
d68a387
Merge branch 'gur/vigilant/dev/iqr-build-fixed' into 'gur/vigilant/ma…
Purg May 9, 2017
e37d210
Merge pull request #332 from Kitware/dev/integrate-prr-20171121
Purg Feb 1, 2018
27f0556
Added new stride parameter to image transform generator
Purg May 9, 2017
ad7beda
Merge branch 'gur/vigilant/master' into gur/intuidex_lrd/master
Purg May 9, 2017
7967319
Merge branch 'gur/intuidex_lrd/add-tile-crop-stride' into 'gur/intuid…
Purg May 9, 2017
1cb37c0
Fixed python3 xrange, map, StringIO, pickle, print, iteritems
Erotemic Feb 22, 2018
130e686
Fixed errors found via 2to3
Erotemic Feb 22, 2018
c724806
Merge pull request #339 from Erotemic/dev/fix_python3
Purg Feb 26, 2018
8a00c08
Cleaned up warnings in compute_many_descriptors function
Purg Nov 1, 2017
5388be3
Explain and ignore warnings about protected member access.
Purg Nov 1, 2017
0adacd0
Fix a lot of PEP8 warnings
Purg Nov 2, 2017
3d61261
Resolve local shadowing warnings
Purg Nov 2, 2017
d23711b
Merge branch 'gur/intuidex_lrd/dev/code-inspection-fixes' into 'gur/i…
Purg Nov 6, 2017
fb28e99
Merge remote-tracking branch 'github/master' into gur/mipol/master
Purg Jul 25, 2018
d7ed579
Fix causes of failing tests
Purg Jul 25, 2018
6beb8e0
Merge pull request #357 from Kitware/dev/integrate-mipol-prr-20180409
Purg Aug 14, 2018
02419d8
Initial proliferation of get_impls class method
Purg Apr 26, 2018
944eccf
Merge branch 'gur/mad-e/dev/class-interface-get-impls-method' into 'g…
Purg Apr 27, 2018
34a4cfa
Rename smqtk.utils.image_utils to smqtk.utils.image
danlamanna Nov 28, 2017
2730bc5
Move transformation functions into smqtk.utils.image
danlamanna Nov 28, 2017
bbf707d
Merge branch 'generalize-image-transformations' into 'gur/vigilant/ma…
Purg Nov 28, 2017
f40320e
Merge branch 'gur/mad-e/master' into gur/vigilant/master
Purg Nov 4, 2019
07d68a9
Create interfaces utility submodule, add ContentTypeValidator interface
Purg Oct 31, 2018
e98680b
Miscellaneous fixes from static analysis checks, use ProgressReporter
Purg Nov 5, 2018
39dcd81
Merge branch 'gur/vigilant/dev/interface-class-cleanup' into 'gur/vig…
Purg Nov 7, 2018
cacbb4c
Merge branch 'gur/vigilant/dev/static-analysis-fixes' into 'gur/vigil…
Purg Nov 7, 2018
ba3d5dd
Add descriptor computations on transformed data
Mar 26, 2018
ef2ff4d
Avoid loading all data elements for transformation
May 1, 2018
a982213
PEP8 cleanup of compute_functions.py
May 15, 2018
3150a25
Renamed various utility modules with "_utils" in their names
Purg Nov 5, 2018
659dd8c
Update variable name for clarity
May 15, 2018
eb7411e
Merge branch 'gur/vigilant/dev/utility-reorg' into 'gur/vigilant/master'
Purg Nov 8, 2018
5423ef8
Update docstrings
Nov 6, 2018
eef9184
Merge branch 'gur/vigilant/pbs_changes_integration' into 'gur/vigilan…
Purg Nov 12, 2018
8099971
Merge pull request #402 from Kitware/gur/vigilant/master
Purg Nov 12, 2019
e33dc99
Added FAISS docker image build to inherit/copy from
Purg Apr 19, 2019
549ea78
Merge branch 'gur/diy-ai/dev/add-dc-faiss-tpl-image' into 'gur/diy-ai…
Purg Apr 22, 2019
8786a32
Fix compute_functions.compute_many_descriptors + unit tests
Purg Sep 17, 2019
09622ce
Merge branch 'gur/diy-ai/dev/overhaul-descriptor-gen-api' into 'gur/d…
Purg Oct 1, 2019
a4f6333
Renamed DescriptorIndex to DescriptorSet
Purg Oct 9, 2019
58440e4
Merge branch 'dev/descriptor-set-rename' into 'gur/diy-ai/master'
Purg Oct 9, 2019
6f0eaf1
Merge pull request #412 from Kitware/dev/diyai-pa-approval-20200515
Purg Sep 11, 2020
1469f9c
Fix iqr-playground image build and helper run scripts
Purg Apr 17, 2020
e3d7475
Merge branch 'gur/diy-ai/dev/fix-iqr-demo' into 'gur/diy-ai/master'
Purg Apr 17, 2020
4bcf6cd
Update FAISS docker image
Purg Apr 30, 2020
ccc3712
Caffe update part 2 - New caffe TPL setup
Purg May 5, 2020
a14ac29
IQR image update part 2 - Update/Collapse dockerfile
Purg May 6, 2020
f568d28
Update classifier service docker builds
Purg May 6, 2020
b11c49b
Fixup/Update iqr images to use FAISS indexing
Purg May 8, 2020
a860607
Merge branch 'gur/diy-ai/dev/deprecate-python-27' into 'gur/diy-ai/ma…
Purg May 12, 2020
86e8cb6
Merge branch 'gur/diy-ai/dev/iqr-playground-use-faiss' into 'gur/diy-…
Purg May 12, 2020
a69334a
Update ABC references to use collections.abc instead of collections
predicative Jun 2, 2020
b309e55
Update FAISS TPL docker image build to compile actual bytecode
Purg Jul 14, 2020
49f8352
Merge branch 'gur/diy-ai/dev/cleanup' into 'gur/diy-ai/master'
Purg Jun 18, 2020
56f6bea
Merge branch 'gur/diy-ai/dev/misc-updates' into 'gur/diy-ai/master'
Purg Jul 27, 2020
68b30e2
Fix various Flake8 exposed issues
Purg Sep 30, 2020
dddad3c
Add some mypy settings to make testing non-trivial
Purg Oct 1, 2020
845e0c5
Merge branch 'gur/diy-ai/dev/gitlab-ci' into 'gur/diy-ai/master'
Purg Oct 7, 2020
1fa4c38
Fix issues with flake8 and mypy due to rebase on CI update
Purg Oct 7, 2020
cfa1c44
Merge branch 'gur/diy-ai/dev/fully-qualified-config-keys' into 'gur/d…
Purg Oct 7, 2020
44303bb
Fix IQR Playground docker image build issues
Purg Feb 8, 2021
890580a
Merge branch 'gur/diy-ai/switch-to-rank-relevancy' into 'gur/diy-ai/m…
Purg Feb 8, 2021
83a4f9a
Merge pull request #423 from Kitware/public-release-update-202104
Purg Jul 13, 2021
f85708e
Merge branch 'master' into deprecate-mono-repo
bardkw Jul 13, 2021
4beffc2
Merge pull request #424 from bardkw/deprecate-mono-repo
Purg Jul 13, 2021
4aef152
Merge branch 'add-missing-files' into iqr_demo_v2
joshanderson-kw Nov 12, 2021
0fe204e
Move copied files to new locations
joshanderson-kw Nov 12, 2021
9f828c1
Update utility scripts to use breakout repos
joshanderson-kw Nov 12, 2021
eaf170e
Update json configs to use breakout repo plugins
joshanderson-kw Nov 12, 2021
e34c59c
Remove versions from apt-get installs
joshanderson-kw Nov 12, 2021
4933863
Add unit tests
joshanderson-kw Nov 12, 2021
e5a8898
Bug fixes for IQR demo
joshanderson-kw Nov 12, 2021
5b1416e
Update IQR dependencies and documentation
joshanderson-kw Nov 12, 2021
53d3e86
Change iqrTrainClassifier to use SkLearnLogisticRegression
joshanderson-kw Nov 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docker/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SMQTK_REGISTRY=kitware/smqtk

# Dependency Image/Source versions to be used
CUDA_DEVEL_IMAGE_TAG=9.2-cudnn7-devel-ubuntu18.04
CUDA_RUNTIME_IMAGE_TAG=9.2-cudnn7-runtime-ubuntu18.04

FAISS_VERSION=1.6.2

# OUR Images
SMQTK_TAG=latest
105 changes: 105 additions & 0 deletions docker/docker-compose.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
version: "3.4"
joshanderson-kw marked this conversation as resolved.
Show resolved Hide resolved

services:

#
# TPL: Caffe 1.0
#
tpl-caffe-base:
# Base stage for common use by CPU and GPU build variants.
image: ${SMQTK_REGISTRY}/tpl-caffe:1.0-base
build:
context: tpl/caffe1
target: base
args:
CUDA_DEVEL_IMAGE_TAG: # using value from .env file.

tpl-caffe-cpu:
# CPU-Only build variant
image: ${SMQTK_REGISTRY}/tpl-caffe:1.0-cpu
depends_on:
- tpl-caffe-base
build:
context: tpl/caffe1
target: caffe_cpu
args:
CUDA_DEVEL_IMAGE_TAG: # using value from .env file.

tpl-caffe-gpu:
# GPU build variant
image: ${SMQTK_REGISTRY}/tpl-caffe:1.0-cuda${CUDA_DEVEL_IMAGE_TAG}
depends_on:
- tpl-caffe-base
build:
context: tpl/caffe1
target: caffe_gpu
args:
CUDA_DEVEL_IMAGE_TAG: # using value from .env file.
# One or more CUDA architecture binary versions to compile for.
CUDA_ARCH_BIN_LIST: 50 52 60 61 62 70 72

#
# TPL: FAISS
#
tpl-faiss-gpu:
image: ${SMQTK_REGISTRY}/tpl-faiss:${FAISS_VERSION}-cuda${CUDA_DEVEL_IMAGE_TAG}
build:
context: tpl/faiss
dockerfile: gpu/Dockerfile
args:
FAISS_VERSION: # using value from .env file.
CUDA_DEVEL_IMAGE_TAG: # using value from .env file.
# One or more CUDA architectures to compile for.
# Using ">-" for multi-line string concatenation with no new-lines.
# Using ">-" for multi-line string concatenation with no new-lines.
# - arch upper bound defined by CUDA version (e.g. 9.2 cannot support
# compute_75)
# - https://docs.nvidia.com/cuda/turing-compatibility-guide/index.html#building-turing-compatible-apps-using-cuda-9-
# - In order to support a NEWER gpu architecture than considered here,
# the final line here should specify a PTX version, e.g.
# `-gencode=arch=compute_XY,code=compute_XY` (note the `code=...`),
# in order to provide compatibility with future architectures.
CUDA_ARCH: >-
-gencode=arch=compute_50,code=sm_50
Purg marked this conversation as resolved.
Show resolved Hide resolved
-gencode=arch=compute_52,code=sm_52
-gencode=arch=compute_60,code=sm_60
-gencode=arch=compute_61,code=sm_61
-gencode=arch=compute_62,code=sm_62
-gencode=arch=compute_70,code=sm_70
-gencode=arch=compute_72,code=sm_72
-gencode=arch=compute_72,code=compute_72

#
# IQR Playground Demo Image CPU/GPU
#
iqr-playground-cpu:
joshanderson-kw marked this conversation as resolved.
Show resolved Hide resolved
image: ${SMQTK_REGISTRY}/iqr_playground:${SMQTK_TAG}-cpu
depends_on:
- tpl-caffe-cpu
- tpl-faiss-gpu
build:
# Repo root
context: ..
dockerfile: docker/smqtk_iqr_playground/Dockerfile
target: smqtk-cpu
args:
CUDA_RUNTIME_IMAGE_TAG: # using value from .env file.
CAFFE_COPY_FROM_IMAGE: ${SMQTK_REGISTRY}/tpl-caffe:1.0-cpu
FAISS_COPY_FROM_IMAGE: ${SMQTK_REGISTRY}/tpl-faiss:${FAISS_VERSION}-cuda${CUDA_DEVEL_IMAGE_TAG}
FAISS_VERSION: # using value from .env file.

iqr-playground-gpu:
image: ${SMQTK_REGISTRY}/iqr_playground:${SMQTK_TAG}-cuda${CUDA_RUNTIME_IMAGE_TAG}
depends_on:
- tpl-caffe-gpu
- tpl-faiss-gpu
build:
# Repo root
context: ..
dockerfile: docker/smqtk_iqr_playground/Dockerfile
target: smqtk-gpu
args:
CUDA_RUNTIME_IMAGE_TAG: # using value from .env file.
CAFFE_COPY_FROM_IMAGE: ${SMQTK_REGISTRY}/tpl-caffe:1.0-cuda${CUDA_DEVEL_IMAGE_TAG}
FAISS_COPY_FROM_IMAGE: ${SMQTK_REGISTRY}/tpl-faiss:${FAISS_VERSION}-cuda${CUDA_DEVEL_IMAGE_TAG}
FAISS_VERSION: # using value from .env file.
93 changes: 50 additions & 43 deletions docker/smqtk_iqr_playground/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,29 @@ SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update \
&& apt-get -y install \
cmake=3.10.2-1ubuntu2.18.04.1 \
cmake \
curl \
less=487-0.1 \
parallel=20161222-1 \
python3-dev=3.6.7-1~18.04 \
less \
parallel \
python3-dev \
python3-pip \
sudo \
vim \
zlib1g-dev \
libjpeg-dev \
# PostgreSQL 10 Installation
postgresql-10=10.15-0ubuntu0.18.04.1 \
postgresql-10 \
# MongoDB Installation
mongodb=1:3.6.3-0ubuntu1.1 \
mongodb \
# Caffe/FAISS TPL deps
libboost-python1.65.1=1.65.1+dfsg-0ubuntu5 \
libboost-system1.65.1=1.65.1+dfsg-0ubuntu5 \
libboost-thread1.65.1=1.65.1+dfsg-0ubuntu5 \
libgoogle-glog0v5=0.3.5-1 \
libgflags2.2=2.2.1-1 \
libhdf5-100=1.10.0-patch1+docs-4 \
libprotobuf10=3.0.0-9.1ubuntu1 \
libopenblas-base=0.2.20+ds-4 \
libboost-python1.65.1 \
libboost-system1.65.1 \
libboost-thread1.65.1 \
libgoogle-glog0v5 \
libgflags2.2 \
libhdf5-100 \
libprotobuf10 \
libopenblas-base \
# Clean up apt resources.
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -50,7 +52,9 @@ RUN pip3 install \
psycopg2-binary==2.8.5 \
# Nice-to-haves
file-magic==0.4.0 \
ipython==7.14.0
ipython==7.14.0 \
joshanderson-kw marked this conversation as resolved.
Show resolved Hide resolved
jedi==0.17.2 \
scikit-learn==0.24.2

###############################################################################
# COPY in FAISS wheel and install
Expand Down Expand Up @@ -82,27 +86,10 @@ COPY --from=caffe_image /caffe-1.0-py3-none-any.whl /
RUN pip3 install /caffe-1.0-py3-none-any.whl \
&& rm /caffe-1.0-py3-none-any.whl

###############################################################################
# SMQTK Installation
#
COPY docs /smqtk/source/docs
COPY etc /smqtk/source/etc
COPY python /smqtk/source/python
COPY requirements /smqtk/source/requirements
COPY src /smqtk/source/src
COPY TPL /smqtk/source/TPL
COPY CMakeLists.txt LICENSE.txt pytest.* README.md setup.* setup_env.* \
/smqtk/source/
RUN mkdir /smqtk/build \
&& cd /smqtk/build \
&& cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr/local \
-DSMQTK_BUILD_FLANN:BOOL=OFF \
/smqtk/source \
&& make install -j$(nproc) \
&& cd / \
&& rm -rf smqtk
# Export language options to use UTF-8, desired by Click
ENV LC_ALL=C.UTF-8 \
LANG=C.UTF-8

# Export language options to use UTF-8, desired by Click
ENV LC_ALL=C.UTF-8 \
LANG=C.UTF-8
Expand All @@ -112,6 +99,26 @@ ENV LC_ALL=C.UTF-8 \
RUN ln -s /usr/share/postgresql-common/pg_wrapper /usr/local/bin/pg_ctl \
&& ln -s /usr/share/postgresql-common/pg_wrapper /usr/local/bin/postgres

###############################################################################
# SMQTK installation
#
RUN mkdir /smqtk/
COPY docs /smqtk/source/docs
COPY pyproject.toml /smqtk/source
COPY README.md /smqtk/source
COPY smqtk_iqr /smqtk/source/smqtk_iqr
RUN cd /smqtk/source && \
pip3 install -U pip && \
pip3 install . && \
cd / && \
rm -rf smqtk

# !!! NOTE THIS KLUDGE !!!
# This symlink is lost during the smqtk-iqr installation, as pip currently
# does not support symlinks, so we re-create it here.
RUN ln -s /usr/local/lib/python3.6/dist-packages/smqtk_iqr/web/search_app/templates/base.html \
/usr/local/lib/python3.6/dist-packages/smqtk_iqr/web/search_app/modules/iqr/templates/base.html

joshanderson-kw marked this conversation as resolved.
Show resolved Hide resolved
# Add ``smqtk`` user
RUN useradd -mr -s /bin/bash smqtk \
# sudo permission for modifying permissions at runtime (see entrypoint.sh).
Expand All @@ -131,19 +138,19 @@ RUN mkdir -p data/{models,configs,logs,db.psql,db.mongo} \

# Configuration for Matplotlib to just use the Agg backend, not Tkinter
COPY --chown=smqtk:smqtk \
devops/docker/smqtk_iqr_playground/matplotlibrc \
docker/smqtk_iqr_playground/matplotlibrc \
.config/matplotlib/

# Copy in general entrypoint and CPU-variant test script
COPY --chown=smqtk:smqtk \
devops/docker/smqtk_iqr_playground/entrypoint.sh \
devops/docker/smqtk_iqr_playground/descr_comp_test.cpu.py \
docker/smqtk_iqr_playground/entrypoint.sh \
docker/smqtk_iqr_playground/descr_comp_test.cpu.py \
/home/smqtk/

# Copy in general and CPU-variant configs
COPY --chown=smqtk:smqtk \
devops/docker/smqtk_iqr_playground/default_confs/* \
devops/docker/smqtk_iqr_playground/default_confs/cpu/* \
docker/smqtk_iqr_playground/default_confs/* \
docker/smqtk_iqr_playground/default_confs/cpu/* \
/home/smqtk/data/configs/

ENTRYPOINT ["/home/smqtk/entrypoint.sh"]
Expand All @@ -155,9 +162,9 @@ EXPOSE 5000 5001
FROM smqtk-cpu AS smqtk-gpu
# Add GPU-variant test script
COPY --chown=smqtk:smqtk \
devops/docker/smqtk_iqr_playground/descr_comp_test.gpu.py \
docker/smqtk_iqr_playground/descr_comp_test.gpu.py \
/home/smqtk/
# Overwrite CPU-variance configs with the GPU variants.
COPY --chown=smqtk:smqtk \
devops/docker/smqtk_iqr_playground/default_confs/gpu/* \
docker/smqtk_iqr_playground/default_confs/gpu/* \
/home/smqtk/data/configs/
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"descriptor_factory": {
"smqtk.representation.descriptor_element.postgres.PostgresDescriptorElement": {
"smqtk_descriptors.impls.descriptor_element.postgres.PostgresDescriptorElement": {
joshanderson-kw marked this conversation as resolved.
Show resolved Hide resolved
"binary_col": "vector",
"create_table": false,
"db_host": "/dev/shm",
Expand All @@ -9,51 +9,50 @@
"db_port": 5432,
"db_user": "smqtk",
"table_name": "descriptors_resnet50_pool5",
"type_col": "type_str",
"uuid_col": "uid"
},
"type": "smqtk.representation.descriptor_element.postgres.PostgresDescriptorElement"
"type": "smqtk_descriptors.impls.descriptor_element.postgres.PostgresDescriptorElement"
},
"descriptor_generator": {
"smqtk.algorithms.descriptor_generator.caffe_descriptor.CaffeDescriptorGenerator": {
"batch_size": 20,
"smqtk_descriptors.impls.descriptor_generator.caffe1.CaffeDescriptorGenerator": {
"batch_size": 10,
Purg marked this conversation as resolved.
Show resolved Hide resolved
"data_layer": "data",
"gpu_device_id": 0,
"image_mean": {
"smqtk.representation.data_element.file_element.DataFileElement": {
"smqtk_dataprovider.impls.data_element.file.DataFileElement": {
"explicit_mimetype": null,
"filepath": "/home/smqtk/caffe/msra_resnet/ResNet_mean.binaryproto",
"readonly": true
},
"type": "smqtk.representation.data_element.file_element.DataFileElement"
"type": "smqtk_dataprovider.impls.data_element.file.DataFileElement"
},
"input_scale": null,
"load_truncated_images": true,
"network_is_bgr": true,
"network_model": {
"smqtk.representation.data_element.file_element.DataFileElement": {
"smqtk_dataprovider.impls.data_element.file.DataFileElement": {
"explicit_mimetype": null,
"filepath": "/home/smqtk/caffe/msra_resnet/ResNet-50-model.caffemodel",
"readonly": true
},
"type": "smqtk.representation.data_element.file_element.DataFileElement"
"type": "smqtk_dataprovider.impls.data_element.file.DataFileElement"
},
"network_prototxt": {
"smqtk.representation.data_element.file_element.DataFileElement": {
"smqtk_dataprovider.impls.data_element.file.DataFileElement": {
"explicit_mimetype": null,
"filepath": "/home/smqtk/caffe/msra_resnet/ResNet-50-deploy.prototxt",
"readonly": true
},
"type": "smqtk.representation.data_element.file_element.DataFileElement"
"type": "smqtk_dataprovider.impls.data_element.file.DataFileElement"
},
"pixel_rescale": null,
"return_layer": "pool5",
"use_gpu": false
},
"type": "smqtk.algorithms.descriptor_generator.caffe_descriptor.CaffeDescriptorGenerator"
"type": "smqtk_descriptors.impls.descriptor_generator.caffe1.CaffeDescriptorGenerator"
},
"descriptor_set": {
"smqtk.representation.descriptor_set.postgres.PostgresDescriptorSet": {
"smqtk_descriptors.impls.descriptor_set.postgres.PostgresDescriptorSet": {
"create_table": false,
"db_host": "/dev/shm",
"db_name": "postgres",
Expand All @@ -67,20 +66,20 @@
"table_name": "descriptor_set_resnet50_pool5",
"uuid_col": "uid"
},
"type": "smqtk.representation.descriptor_set.postgres.PostgresDescriptorSet"
"type": "smqtk_descriptors.impls.descriptor_set.postgres.PostgresDescriptorSet"
},
"optional_data_set": {
"smqtk.representation.data_set.memory_set.DataMemorySet": {
"smqtk_dataprovider.impls.data_set.memory.DataMemorySet": {
"cache_element": {
"smqtk.representation.data_element.file_element.DataFileElement": {
"smqtk_dataprovider.impls.data_element.file.DataFileElement": {
"explicit_mimetype": null,
"filepath": "models/image_elements.dms_cache",
"readonly": false
},
"type": "smqtk.representation.data_element.file_element.DataFileElement"
"type": "smqtk_dataprovider.impls.data_element.file.DataFileElement"
},
"pickle_protocol": -1
},
"type": "smqtk.representation.data_set.memory_set.DataMemorySet"
"type": "smqtk_dataprovider.impls.data_set.memory.DataMemorySet"
}
}
Loading