Add photo models
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-08-06 15:20:32 +00:00
parent 0c4c26158a
commit e821f9f23c
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -27,6 +27,17 @@ RUN git clone --depth=1 https://github.com/DeadSix27/waifu2x-converter-cpp \
#RUN apt-file update \ #RUN apt-file update \
# && /freeze.sh waifu2x-converter-cpp # && /freeze.sh waifu2x-converter-cpp
FROM alpine as photo-models
RUN mkdir /usr/local/share/waifu2x-converter-cpp-photo \
&& cd /usr/local/share/waifu2x-converter-cpp-photo \
&& wget \
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/noise0_model.json \
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/noise1_model.json \
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/noise2_model.json \
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/noise3_model.json \
https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/scale2.0x_model.json
FROM debian:testing-slim FROM debian:testing-slim
#COPY --from=builder /tmp/frozen_packages /tmp/frozen_packages #COPY --from=builder /tmp/frozen_packages /tmp/frozen_packages
@ -40,6 +51,7 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local /usr/local COPY --from=builder /usr/local /usr/local
COPY --from=photo-models /usr/local/share/waifu2x-converter-cpp-photo /usr/local/share/waifu2x-converter-cpp-photo
RUN ldconfig RUN ldconfig