Error: invalid type: integer `224`, expected an array of length 2
geocine opened this issue · 2 comments
geocine commented
From documentation I converted the SD1.5 model as follows:
To convert a float32 model from HF (recommended for CPU inference):
python3 scripts/hf2pyke.py runwayml/stable-diffusion-v1-5 ~/pyke-diffusers-sd15/
Then I ran the https://github.com/pykeio/diffusers/blob/main/examples/stable-diffusion.rs
May Cargo.toml
looks like this
[dependencies]
pyke-diffusers = "0.1"
decahedron1 commented
Sorry, I won't be able to fix this issue for another few hours, but the issue is on line 379 of hf2pyke.py
. I believe the end should read else [crop, crop]
. Could you try that patch and reconvert the model and see if that fixes it?
geocine commented
Yes the error is gone . This is working