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

Installation issues and Windows run script #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV OPENCV_VERSION "3.4.8"

RUN apt-get update && apt-get install -y curl bzip2 libgl1-mesa-glx

RUN curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh > /tmp/conda.sh
RUN curl -L https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh > /tmp/conda.sh
RUN bash /tmp/conda.sh -b -p /opt/conda && \
/opt/conda/bin/conda update -n base conda && \
/opt/conda/bin/conda install -y -c pytorch faiss-${FAISS_CPU_OR_GPU}=${FAISS_VERSION} && \
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ scikit-image==0.14.0
moviepy==0.2.3.5
tqdm==4.26.0
dlib
imutils
imutils==0.5.3
imageio<2.7
21 changes: 21 additions & 0 deletions run_powershell.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
param($PicturesDir="c:\Users\$env:UserName\Pictures", $ProjectDir="$pwd", $ContainerName="Photomosaic")

$env:HostIP = (
Get-NetIPConfiguration |
Where-Object {
$_.IPv4DefaultGateway -ne $null -and
$_.NetAdapter.Status -ne "Disconnected"
}
).IPv4Address.IPAddress

docker run --rm --name $ContainerName `
--mount type=bind,source="$ProjectDir",target="/project" `
--mount type=bind,source="$PicturesDir",target="/pics" `
-p "8888:8888/tcp" -e "DISPLAY=$env:HostIP:0" `
mosaic-conda:latest `
jupyter notebook `
--allow-root `
--ip 0.0.0.0 `
--no-browser `
--NotebookApp.token='' `
--notebook-dir=/project