vitoplantamura / OnnxStream

Lightweight inference library for ONNX files, written in C++. It can run Stable Diffusion XL 1.0 on a RPI Zero 2 (or in 298MB of RAM) but also Mistral 7B on desktops and servers. ARM, x86, WASM, RISC-V supported. Accelerated by XNNPACK.
https://yolo.vitoplantamura.com/
Other
1.86k stars 84 forks source link

Runtime error : fatal error in worker thread: "read_file: invalid size of file." #9

Closed har-in-air closed 1 year ago

har-in-air commented 1 year ago

Hi, my platform is Ubuntu 22.04, AMD Ryzen 5 2500U with 12GB RAM, about 6.5GB available as per "free -h" Built without issues. Extracted the weights archive to compiled executable directory. Getting a run time error ./sd --models-path ./SD/ --steps 3

----------------[start]------------------ positive_prompt: a photo of an astronaut riding a horse on mars negative_prompt: ugly, blurry output_png_path: ./result.png steps: 3 ----------------[prompt]------------------ === ERROR === DiskPrefetchWeightsProvider::provide: fatal error in worker thread: "read_file: invalid size of file."

I also tried "--rpi" based on your solution for another issue, but I get the same error.

har-in-air commented 1 year ago

Sorry, it was an issue with extracting the weights archive. I installed and used "unrar" and that worked.

theskyblockman commented 11 months ago

Hello, could someone tell me which archive was not extracted properly, by running ./sd --xl --models-path stable-diffusion-xl-base-1.0-onnxstream/ --rpi I get the same error as above

theskyblockman commented 11 months ago

I've figured it, you must install LFS before cloning the repo