Skip to content

Commit

Permalink
fixed OpenCV in stable-diffusion-webui and TAM containers
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed May 29, 2024
1 parent 1c15449 commit e0368bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/diffusion/stable-diffusion-webui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#---
# name: stable-diffusion-webui
# group: diffusion
# depends: [pytorch, torchvision, transformers, xformers, pycuda, opencv, onnxruntime]
# depends: [pytorch, torchvision, transformers, xformers, pycuda, opencv:deb, onnxruntime]
# requires: '>=34.1.0'
# docs: docs.md
# notes: disabled on JetPack 4
Expand Down Expand Up @@ -33,7 +33,7 @@ RUN set -ex \
https://github.com/BlafKing/sd-civitai-browser-plus \
&& PYTHONPATH="$AUTOMATIC1111_ROOT_DIR" python3 -c 'from modules import launch_utils; launch_utils.args.skip_python_version_check=True; launch_utils.prepare_environment()' \
# partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' \
&& /opt/opencv_install.sh \
&& /tmp/opencv/install.sh \
# TypeError: 'type' object is not subscriptable \
&& sed 's|dict\[str, OptionInfo\]|dict|g' -i $AUTOMATIC1111_ROOT_DIR/modules/options.py \
&& sed 's|dict\[.*\]|dict|g' -i $AUTOMATIC1111_ROOT_DIR/modules/processing.py \
Expand Down
Empty file modified packages/diffusion/stable-diffusion-webui/install_extensions.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions packages/vit/tam/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ENV LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/python3.8/dist-packages/opencv_python.libs/

RUN mim install mmcv --verbose --no-cache-dir
RUN cd /opt && ./opencv_install.sh
RUN /tmp/opencv/install.sh

# https://github.com/dusty-nv/jetson-containers/issues/326
RUN pip3 install --no-cache-dir --verbose gradio==3.38.0
Expand All @@ -42,4 +42,4 @@ RUN mkdir -p /data/models/tam && \
WORKDIR /

RUN cd /opt/Track-Anything && python3 app.py --help
CMD cd /opt/Track-Anything && python3 app.py
CMD cd /opt/Track-Anything && python3 app.py

0 comments on commit e0368bf

Please sign in to comment.