bes-dev / stable_diffusion.openvino

Apache License 2.0
1.53k stars 207 forks source link

UNET model input precision conversion fix #119

Closed tomdol closed 1 year ago

tomdol commented 1 year ago

This PR fixes an issue reported both here https://stackoverflow.com/questions/75213370/stable-diffusion-with-openvino-failed-to-set-input-blob-with-precision-i64-if and here https://github.com/bes-dev/stable_diffusion.openvino/issues/118

The UNET model expects f64 data type for the input named "t" while the values generated by tqdm are 64-bit ints.

bes-dev commented 1 year ago

:+1: