-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ccfd85
commit 9934875
Showing
27 changed files
with
197 additions
and
254 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "services/deoldify-colorizer/DeOldify"] | ||
path = services/deoldify-colorizer/DeOldify | ||
url = https://github.com/jantic/DeOldify |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
FROM pytorch/pytorch:1.4-cuda10.1-cudnn7-runtime | ||
|
||
ARG git_owner="singnet" | ||
ARG git_repo="dnn-model-services" | ||
ARG git_branch="master" | ||
ARG snetd_version | ||
|
||
ENV SINGNET_REPOS=/opt/singnet | ||
ENV DNN_REPO_NAME=${git_repo} | ||
ENV SERVICES_FOLDER=${SINGNET_REPOS}/${DNN_REPO_NAME}/services | ||
ENV SERVICE_NAME=deoldify-colorizer | ||
|
||
RUN mkdir -p ${SINGNET_REPOS} | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
git \ | ||
wget \ | ||
nano \ | ||
curl | ||
|
||
# OpenCV dependencies | ||
RUN apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev | ||
|
||
# Installing SNET Daemon | ||
RUN SNETD_GIT_VERSION=`curl -s https://api.github.com/repos/singnet/snet-daemon/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")' || echo "v3.1.3"` && \ | ||
SNETD_VERSION=${snetd_version:-${SNETD_GIT_VERSION}} && \ | ||
cd /tmp && \ | ||
wget https://github.com/singnet/snet-daemon/releases/download/${SNETD_VERSION}/snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \ | ||
tar -xvf snet-daemon-${SNETD_VERSION}-linux-amd64.tar.gz && \ | ||
mv snet-daemon-${SNETD_VERSION}-linux-amd64/snetd /usr/bin/snetd | ||
|
||
# Cloning service repository, downloading models | ||
RUN cd ${SINGNET_REPOS} && \ | ||
git clone -b ${git_branch} https://github.com/${git_owner}/${DNN_REPO_NAME}.git && \ | ||
cd ${DNN_REPO_NAME}/utils && \ | ||
./get_colorize_model.sh | ||
|
||
# DeOldify Repository | ||
RUN cd ${SINGNET_DIR}/${SERVICE_NAME} && \ | ||
git submodule update --init -- DeOldify && \ | ||
cd DeOldify && \ | ||
pip install -r requirements.txt | ||
|
||
# Building protobuf messages | ||
RUN cd ${SERVICES_FOLDER}/${SERVICE_NAME} && \ | ||
pip install -U pip && \ | ||
pip install -r requirements.txt && \ | ||
sh buildproto.sh | ||
|
||
WORKDIR ${SERVICES_FOLDER}/${SERVICE_NAME} |
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
File renamed without changes.
File renamed without changes.
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,5 @@ | ||
registry = { | ||
"colorization_service": { | ||
"grpc": 7003, | ||
}, | ||
} |
Oops, something went wrong.