Code Monkey home page Code Monkey logo

Comments (8)

mpartel avatar mpartel commented on July 24, 2024 4

OpenVINO does not support Python 3.10.
3.9 works.

from stable_diffusion.openvino.

shrx avatar shrx commented on July 24, 2024 1

I had to install libomp-dev on ubuntu.

Now I get these errors:

import: unable to open X server `' @ error/import.c/ImportImageCommand/356.
import: unable to open X server `' @ error/import.c/ImportImageCommand/356.
from: can't read /var/mail/stable_diffusion_engine
from: can't read /var/mail/diffusers
import: unable to open X server `' @ error/import.c/ImportImageCommand/356.
import: unable to open X server `' @ error/import.c/ImportImageCommand/356.
./demo.py: 13: Syntax error: "(" unexpected

I am running the demo script on a headless linux machine. Edit: fixed by running python3 demo.py ... instead of ./demo.py ....

from stable_diffusion.openvino.

dankrad avatar dankrad commented on July 24, 2024

Upgrading pip did not help for me with openvino:

Collecting numpy==1.19.5
  Using cached numpy-1.19.5.zip (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting opencv-python==4.5.5.64
  Using cached opencv_python-4.5.5.64-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.5 MB)
Collecting transformers==4.16.2
  Using cached transformers-4.16.2-py3-none-any.whl (3.5 MB)
Collecting diffusers==0.2.4
  Using cached diffusers-0.2.4-py3-none-any.whl (112 kB)
Collecting tqdm==4.64.0
  Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
ERROR: Could not find a version that satisfies the requirement openvino==2022.1.0 (from versions: none)
ERROR: No matching distribution found for openvino==2022.1.0
(venv) df@Kepler:~/test/stable_diffusion.openvino$ pip --version
pip 22.2.2 from /home/df/test/stable_diffusion.openvino/venv/lib/python3.10/site-packages/pip (python 3.10)```

from stable_diffusion.openvino.

teleyinex avatar teleyinex commented on July 24, 2024

Upgrading pip worked for me.

from stable_diffusion.openvino.

bes-dev avatar bes-dev commented on July 24, 2024

@dankrad OpenVINO doesn't support python > 3.9 and Ubuntu >= 22.04, so if you have one of them, pip willn't find openvino package compatible to your environment

from stable_diffusion.openvino.

bes-dev avatar bes-dev commented on July 24, 2024

@mathiasfoster thanks, we'll update our readme following your tips

from stable_diffusion.openvino.

ssenthilanand avatar ssenthilanand commented on July 24, 2024

I am installing in OpenSuse Tumbleweed running under WSL.

I had Python 3.9 and the corresponding pip version. I used:

pip3.9 install --user -r requirements.txt

I got " ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory" error.
libglib was installed. My assumption is that using pip --user means some paths are not set up correctly.

Fixed it by changing opencv-python to opencv-python-headless in requirements.txt

Found the fix in:
aws/studio-lab-examples#14

Now the script runs correctly.

from stable_diffusion.openvino.

LunarTaku avatar LunarTaku commented on July 24, 2024

i keep getting the

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
  File "/Users/lunar/Desktop/stable_diffusion.openvino-master/demo_web.py", line 12, in <module>
    from stable_diffusion_engine import StableDiffusionEngine
  File "/Users/lunar/Desktop/stable_diffusion.openvino-master/stable_diffusion_engine.py", line 5, in <module>
    from openvino.runtime import Core
ModuleNotFoundError: No module named 'openvino'

error, any help?
OS: macos 10.15.7
Core: i7 6600U vPro
RAM: 16GB
ive tried all of the above and nothing has worked so far.

from stable_diffusion.openvino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.