Closed ms1design closed 2 weeks ago
Hi, I have the same issue. @ms1design where you able to solve it or work around it?
Unfortunately, no, but I haven't tried yet tbh. I have this on my to-do list for when I have more time available.
I think I fixed it in #541
Thanks @ai-and-i , took a deeper look and fixed it another way in https://github.com/dusty-nv/jetson-containers/commit/e0368bf4d0ce319171596600f0bdae3b4a7be045
It was related to the CUDA-enabled opencv wheels being called opencv-contrib-python
not opencv-python
, but yet I was blacklisting opencv-python
on the pip server from mirroring PyPi (so it wouldn't install the non-CUDA versions). So I disabled that one since it was creating errors during pip installs, and instead reinstalled the OpenCV-CUDA binaries near the end of the build.
Perfect, thanks for the quick fix!
Fixed in e0368bf4d0ce319171596600f0bdae3b4a7be045, closing.
Hi @dusty-nv,
Just taking a note that we had a breaking change in
opencv
that negatively impacted thediffusion
containers breaking the builds:In
opencv
we have new way of install/building: https://github.com/dusty-nv/jetson-containers/blob/487dc4ffbd93d59ed7d4450636cabb2fd074c071/packages/opencv/Dockerfile#L25-L29But this fails hard on
stable-diffusion
container whereinvisible-watermark
dependency requiresopencv-python
and cannot find proper distribution.Same with
stable-diffusion-webui
: https://github.com/dusty-nv/jetson-containers/blob/487dc4ffbd93d59ed7d4450636cabb2fd074c071/packages/diffusion/stable-diffusion-webui/Dockerfile#L35-L36Started to fix that in hope it's a quick one – running the
opencv
install/build sh scripts, but I gave up when realised that it starts thebuild.sh
fromopencv
.build.sh
requires the unavailable environment variables (accessible only when buildingopencv
cotnainer): https://github.com/dusty-nv/jetson-containers/blob/487dc4ffbd93d59ed7d4450636cabb2fd074c071/packages/opencv/config.py#L9-L12