mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 02:12:04 +02:00
[docker] Add installation of meshroomNodes and the NN models
This commit is contained in:
parent
563e5dfdc1
commit
2aabc06485
4 changed files with 42 additions and 9 deletions
|
@ -16,8 +16,7 @@ ENV MESHROOM_DEV=/opt/Meshroom \
|
||||||
MESHROOM_BUNDLE=/opt/Meshroom_bundle \
|
MESHROOM_BUNDLE=/opt/Meshroom_bundle \
|
||||||
AV_INSTALL=/opt/AliceVision_install \
|
AV_INSTALL=/opt/AliceVision_install \
|
||||||
QT_DIR=/opt/Qt/6.6.3/gcc_64 \
|
QT_DIR=/opt/Qt/6.6.3/gcc_64 \
|
||||||
PATH="${PATH}:${MESHROOM_BUNDLE}" \
|
PATH="${PATH}:${MESHROOM_BUNDLE}"
|
||||||
OPENIMAGEIO_LIBRARY=/opt/AliceVision_install/lib
|
|
||||||
|
|
||||||
COPY *.txt *.md *.py ${MESHROOM_DEV}/
|
COPY *.txt *.md *.py ${MESHROOM_DEV}/
|
||||||
COPY ./docs ${MESHROOM_DEV}/docs
|
COPY ./docs ${MESHROOM_DEV}/docs
|
||||||
|
@ -56,6 +55,24 @@ RUN make "-j$(nproc)" && \
|
||||||
${MESHROOM_BUNDLE}/aliceVision/share/man/ \
|
${MESHROOM_BUNDLE}/aliceVision/share/man/ \
|
||||||
aliceVision/share/pkgconfig
|
aliceVision/share/pkgconfig
|
||||||
|
|
||||||
|
# Download meshroomNodes and the models, install the requirements and set all the variables
|
||||||
|
WORKDIR ${MESHROOM_BUNDLE}
|
||||||
|
RUN git clone https://github.com/alicevision/meshroomNodes.git meshroomNodes
|
||||||
|
RUN pip install --upgrade setuptools
|
||||||
|
RUN pip install -r meshroomNodes/requirements.txt
|
||||||
|
RUN rm meshroomNodes/requirements.txt meshroomNodes/setup.py
|
||||||
|
ENV MESHROOM_NODES_PATH="${MESHROOM_BUNDLE}/meshroomNodes/meshroom/nodes"
|
||||||
|
ENV PYTHONPATH="${PYTHONPATH}:${MESHROOM_BUNDLE}/meshroomNodes"
|
||||||
|
|
||||||
|
RUN git clone https://gitlab.com/alicevision/imagepromptnnmodels.git imagePromptNNModels
|
||||||
|
RUN rm imagePromptNNModels/.gitattributes
|
||||||
|
ENV RDS_RECOGNITION_MODEL_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/ram_plus_swin_large_14m.pth"
|
||||||
|
ENV RDS_DETECTION_CONFIG_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/models/GroundingDINO_SwinT_OGC.py"
|
||||||
|
ENV RDS_DETECTION_MODEL_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/groundingdino_swint_ogc.pth"
|
||||||
|
ENV RDS_SEGMENTATION_MODEL_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/sam_vit_h_4b8939.pth"
|
||||||
|
ENV RDS_TOKENIZER_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/tokenizer"
|
||||||
|
ENV TRANSFORMERS_OFFLINE="TRUE"
|
||||||
|
|
||||||
# Enable SSH X11 forwarding, needed when the Docker image
|
# Enable SSH X11 forwarding, needed when the Docker image
|
||||||
# is run on a remote machine
|
# is run on a remote machine
|
||||||
RUN dnf install -y openssh openssh-clients openssh-server xorg-x11-xauth
|
RUN dnf install -y openssh openssh-clients openssh-server xorg-x11-xauth
|
||||||
|
|
|
@ -14,8 +14,7 @@ ENV MESHROOM_DEV=/opt/Meshroom \
|
||||||
MESHROOM_BUNDLE=/opt/Meshroom_bundle \
|
MESHROOM_BUNDLE=/opt/Meshroom_bundle \
|
||||||
AV_INSTALL=/opt/AliceVision_install \
|
AV_INSTALL=/opt/AliceVision_install \
|
||||||
QT_DIR=/opt/Qt/6.6.3/gcc_64 \
|
QT_DIR=/opt/Qt/6.6.3/gcc_64 \
|
||||||
PATH="${PATH}:${MESHROOM_BUNDLE}" \
|
PATH="${PATH}:${MESHROOM_BUNDLE}"
|
||||||
OPENIMAGEIO_LIBRARY=/opt/AliceVision_install/lib
|
|
||||||
|
|
||||||
COPY *.txt *.md *.py ${MESHROOM_DEV}/
|
COPY *.txt *.md *.py ${MESHROOM_DEV}/
|
||||||
COPY ./docs ${MESHROOM_DEV}/docs
|
COPY ./docs ${MESHROOM_DEV}/docs
|
||||||
|
@ -52,6 +51,24 @@ RUN make "-j$(nproc)" && \
|
||||||
${MESHROOM_BUNDLE}/aliceVision/share/man/ \
|
${MESHROOM_BUNDLE}/aliceVision/share/man/ \
|
||||||
aliceVision/share/pkgconfig
|
aliceVision/share/pkgconfig
|
||||||
|
|
||||||
|
# Download meshroomNodes and the models, install the requirements and set all the variables
|
||||||
|
WORKDIR ${MESHROOM_BUNDLE}
|
||||||
|
RUN git clone https://github.com/alicevision/meshroomNodes.git meshroomNodes
|
||||||
|
RUN pip install --upgrade setuptools
|
||||||
|
RUN pip install -r meshroomNodes/requirements.txt
|
||||||
|
RUN rm meshroomNodes/requirements.txt meshroomNodes/setup.py
|
||||||
|
ENV MESHROOM_NODES_PATH="${MESHROOM_BUNDLE}/meshroomNodes/meshroom/nodes"
|
||||||
|
ENV PYTHONPATH="${PYTHONPATH}:${MESHROOM_BUNDLE}/meshroomNodes"
|
||||||
|
|
||||||
|
RUN git clone https://gitlab.com/alicevision/imagepromptnnmodels.git imagePromptNNModels
|
||||||
|
RUN rm imagePromptNNModels/.gitattributes
|
||||||
|
ENV RDS_RECOGNITION_MODEL_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/ram_plus_swin_large_14m.pth"
|
||||||
|
ENV RDS_DETECTION_CONFIG_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/models/GroundingDINO_SwinT_OGC.py"
|
||||||
|
ENV RDS_DETECTION_MODEL_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/groundingdino_swint_ogc.pth"
|
||||||
|
ENV RDS_SEGMENTATION_MODEL_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/sam_vit_h_4b8939.pth"
|
||||||
|
ENV RDS_TOKENIZER_PATH="${MESHROOM_BUNDLE}/imagePromptNNModels/models/tokenizer"
|
||||||
|
ENV TRANSFORMERS_OFFLINE="TRUE"
|
||||||
|
|
||||||
# Enable SSH X11 forwarding, needed when the Docker image
|
# Enable SSH X11 forwarding, needed when the Docker image
|
||||||
# is run on a remote machine
|
# is run on a remote machine
|
||||||
RUN apt install ssh xauth && \
|
RUN apt install ssh xauth && \
|
||||||
|
@ -65,4 +82,3 @@ WORKDIR /root
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
CMD ["/usr/sbin/sshd", "-D"]
|
CMD ["/usr/sbin/sshd", "-D"]
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,14 @@ test -z "$CUDA_VERSION" && CUDA_VERSION=12.1.0
|
||||||
test -z "$ROCKY_VERSION" && ROCKY_VERSION=9
|
test -z "$ROCKY_VERSION" && ROCKY_VERSION=9
|
||||||
|
|
||||||
test -d docker || (
|
test -d docker || (
|
||||||
echo This script must be run from the top level Meshroom directory
|
echo This script must be run from the top level Meshroom directory
|
||||||
exit 1
|
exit 1
|
||||||
)
|
)
|
||||||
|
|
||||||
test -d dl || \
|
test -d dl || \
|
||||||
mkdir dl
|
mkdir dl
|
||||||
test -f dl/qt.run || \
|
test -f dl/qt.run || \
|
||||||
wget --no-check-certificate "https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run" -O "dl/qt.run"
|
wget --no-check-certificate "https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run" -O "dl/qt.run"
|
||||||
|
|
||||||
# DEPENDENCIES
|
# DEPENDENCIES
|
||||||
docker build \
|
docker build \
|
||||||
|
|
|
@ -7,14 +7,14 @@ test -z "$CUDA_VERSION" && CUDA_VERSION=12.1.0
|
||||||
test -z "$UBUNTU_VERSION" && UBUNTU_VERSION=22.04
|
test -z "$UBUNTU_VERSION" && UBUNTU_VERSION=22.04
|
||||||
|
|
||||||
test -d docker || (
|
test -d docker || (
|
||||||
echo This script must be run from the top level Meshroom directory
|
echo This script must be run from the top level Meshroom directory
|
||||||
exit 1
|
exit 1
|
||||||
)
|
)
|
||||||
|
|
||||||
test -d dl || \
|
test -d dl || \
|
||||||
mkdir dl
|
mkdir dl
|
||||||
test -f dl/qt.run || \
|
test -f dl/qt.run || \
|
||||||
wget --no-check-certificate "https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run" -O "dl/qt.run"
|
wget --no-check-certificate "https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run" -O "dl/qt.run"
|
||||||
|
|
||||||
# DEPENDENCIES
|
# DEPENDENCIES
|
||||||
docker build \
|
docker build \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue