openvino_notebooks icon indicating copy to clipboard operation
openvino_notebooks copied to clipboard

Instant-id return black image and report invalid value encountered in cast

Open dannyweng88122 opened this issue 11 months ago • 5 comments

Describe the bug When I executed this jupyter it reports "C:\Users\tester\Desktop\test\openvino_notebooks\openvino_env\Lib\site-packages\diffusers\image_processor.py:147: RuntimeWarning: invalid value encountered in cast images = (images * 255).round().astype("uint8")" and return the black image

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Installation instructions (Please mark the checkbox) [x] I followed the installation guide at https://github.com/openvinotoolkit/openvino_notebooks#-installation-guide to install the notebooks.

Additional context Add any other context about the problem here.

dannyweng88122 avatar Jan 02 '25 04:01 dannyweng88122

Hi @dannyweng88122 Which Jupyter notebook you are running?

Aznie-Intel avatar Jan 04 '25 00:01 Aznie-Intel

Hi @Aznie-Intel,

My installation package version is like below,

PS C:\Users\tester\Desktop\test\openvino_notebooks> pip freeze about-time==4.2.1 accelerate==1.2.1 aiofiles==23.2.1 aiohappyeyeballs==2.4.4 aiohttp==3.11.11 aiosignal==1.3.2 alive-progress==3.2.0 annotated-types==0.7.0 anyio==4.7.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.4 attrs==24.3.0 autograd==1.7.0 babel==2.16.0 beautifulsoup4==4.12.3 bleach==6.2.0 certifi==2024.12.14 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cma==3.2.2 colorama==0.4.6 comm==0.2.2 contourpy==1.3.1 cycler==0.12.1 datasets==3.2.0 debugpy==1.8.11 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.15 diffusers==0.32.1 dill==0.3.8 executing==2.1.0 fastapi==0.115.6 fastjsonschema==2.21.1 ffmpy==0.5.0 filelock==3.16.1 fonttools==4.55.3 fqdn==1.5.1 frozenlist==1.5.0 fsspec==2024.9.0 gdown==5.2.0 gradio==5.9.1 gradio_client==1.5.2 grapheme==0.6.0 h11==0.14.0 httpcore==1.0.7 httpx==0.28.1 huggingface-hub==0.27.0 idna==3.10 imageio==2.36.1 importlib_metadata==8.5.0 ipykernel==6.29.5 ipython==8.31.0 ipywidgets==8.1.5 isoduration==20.11.0 jedi==0.19.2 Jinja2==3.1.5 joblib==1.4.2 json5==0.10.0 jsonpointer==3.0.0 jsonschema==4.23.0 jsonschema-specifications==2024.10.1 jstyleson==0.0.2 jupyter-events==0.11.0 jupyter-lsp==2.2.5 jupyter_client==8.6.3 jupyter_core==5.7.2 jupyter_server==2.15.0 jupyter_server_terminals==0.5.3 jupyterlab==4.3.4 jupyterlab_pygments==0.3.0 jupyterlab_server==2.27.3 jupyterlab_widgets==3.0.13 kiwisolver==1.4.8 lazy_loader==0.4 markdown-it-py==3.0.0 MarkupSafe==2.1.5 matplotlib==3.10.0 matplotlib-inline==0.1.7 mdurl==0.1.2 mistune==3.1.0 mpmath==1.3.0 multidict==6.1.0 multiprocess==0.70.16 natsort==8.4.0 nbclient==0.10.2 nbconvert==7.16.4 nbformat==5.10.4 nest-asyncio==1.6.0 networkx==3.3 ninja==1.11.1.3 nncf==2.14.1 notebook_shim==0.2.4 numpy==2.1.3 opencv-python==4.10.0.84 openvino==2024.6.0 openvino-telemetry==2024.5.0 orjson==3.10.13 overrides==7.7.0 packaging==24.2 pandas==2.2.3 pandocfilters==1.5.1 parso==0.8.4 peft==0.14.0 pillow==11.0.0 platformdirs==4.3.6 prometheus_client==0.21.1 prompt_toolkit==3.0.48 propcache==0.2.1 psutil==6.1.1 pure_eval==0.2.3 pyarrow==18.1.0 pycparser==2.22 pydantic==2.10.4 pydantic_core==2.27.2 pydot==2.0.0 pydub==0.25.1 Pygments==2.18.0 pymoo==0.6.1.3 pyparsing==3.2.0 PySocks==1.7.1 python-dateutil==2.9.0.post0 python-json-logger==3.2.1 python-multipart==0.0.20 pytz==2024.2 pywin32==308 pywinpty==2.0.14 PyYAML==6.0.2 pyzmq==26.2.0 referencing==0.35.1 regex==2024.11.6 requests==2.32.3 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.9.4 rpds-py==0.22.3 ruff==0.8.4 safehttpx==0.1.6 safetensors==0.4.5 scikit-image==0.25.0 scikit-learn==1.6.0 scipy==1.14.1 semantic-version==2.10.0 Send2Trash==1.8.3 shellingham==1.5.4 six==1.17.0 sniffio==1.3.1 soupsieve==2.6 stack-data==0.6.3 starlette==0.41.3 sympy==1.13.1 tabulate==0.9.0 terminado==0.18.1 threadpoolctl==3.5.0 tifffile==2024.12.12 tinycss2==1.4.0 tokenizers==0.21.0 tomlkit==0.13.2 torch==2.5.1 tornado==6.4.2 tqdm==4.67.1 traitlets==5.14.3 transformers==4.47.1 typer==0.15.1 types-python-dateutil==2.9.0.20241206 typing_extensions==4.12.2 tzdata==2024.2 uri-template==1.3.0 urllib3==2.3.0 uvicorn==0.34.0 wcwidth==0.2.13 webcolors==24.11.1 webencodings==0.5.1 websocket-client==1.8.0 websockets==14.1 widgetsnbextension==4.0.13 wrapt==1.17.0 xxhash==3.5.0 yarl==1.18.3 zipp==3.21.0

dannyweng88122 avatar Jan 06 '25 03:01 dannyweng88122

I am currently running the InstantID Jupyter notebook from OpenVINO and successfully generating the output image shown below: instant id

Are you able to run this notebook on your system?

Aznie-Intel avatar Jan 07 '25 02:01 Aznie-Intel

I also successfully completed the steps you showed but I get an error when executing ov_pipe. Please help to check this error.

Run inference steps: image image

dannyweng88122 avatar Jan 08 '25 02:01 dannyweng88122

Hi @dannyweng88122 , I encountered the same error when running with FP32, as shown below. However, I was able to run the code with FP16, although the generated image output remains blank.

FP32: jupyter instant id

FP16: instant id f16

I will forward this issue to the relevant team for further review and will keep you updated with any progress.

Aznie-Intel avatar Jan 09 '25 02:01 Aznie-Intel

This issue will be closed in a week because of 9 months of no activity.

github-actions[bot] avatar Oct 11 '25 00:10 github-actions[bot]

Closing the issue as there has been no activity. If you are still seeing the issue on the latest branch, please re-open the issue or create a new one.

jgespino avatar Nov 18 '25 22:11 jgespino