DecodingRaphael / unraphael

Python toolkit for unraveling image similarity with a focus on artistic practice
https://unraphael.readthedocs.io
Apache License 2.0
2 stars 1 forks source link

Streamlit page crashes #50

Closed stefsmeets closed 2 months ago

stefsmeets commented 3 months ago

https://unraphael.streamlit.app/preprocess https://unraphael.streamlit.app/detect_objects

It gives:

ImportError: libGL.so.1: cannot open shared object file: No such file or directory when importing opencv. This seems to me like it is not getting the opencv headless.

Second, ultralytics fails to install:

  × No solution found when resolving dependencies:
  ╰─▶ Because any of:
          ultralytics<=8.0.6
          ultralytics>=8.0.35,<=8.0.128
          ultralytics>=8.0.130,<=8.0.151

This might be because we are running on Python 3.12:

...
we can conclude that any of:
          ultralytics<8.0.7
          ultralytics>8.0.34,<8.0.129
          ultralytics>8.0.129,<8.0.152
      depends on torchvision>=0.8.1. (1)
      Because the current Python version (3.12.3) does not satisfy
      Python>=3.7,<=3.11 and any of:
          ultralytics>=8.0.7,<=8.0.11
          ultralytics>=8.0.13,<=8.0.14
          ultralytics>=8.0.16,<=8.0.34
...
stefsmeets commented 3 months ago

I mananged to solve the pytorch issue, but now opencv is causing issues.

stefsmeets commented 3 months ago

Our use of opencv is fairly limited, I think we should consider moving completely to scikit-image

stefsmeets commented 2 months ago

rembg also depends on opencv, so eliminating it from our workflow does not solve the problem.