change image out put size

#46
by sgodoy - opened

how do i change my image output size when I change the 115 by 115 it say the size is invalid it keep on saying

0it [00:00, ?it/s]
Traceback (most recent call last):
File "C:\Users\godoy\Desktop\fiffuse\waifu\diffusers-dml\examples\inference\dml_onnx.py", line 210, in
image = pipe(prompt, height=768, width=832, num_inference_steps=50, guidance_scale=7.5, eta=0.0, execution_provider="DmlExecutionProvider")["sample"][0]
File "C:\Users\godoy\Desktop\fiffuse\waifu\waifu\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "C:\Users\godoy\Desktop\fiffuse\waifu\diffusers-dml\examples\inference\dml_onnx.py", line 167, in call
noise_pred = unet_sess.run(None, inp)[0]
File "C:\Users\godoy\Desktop\fiffuse\waifu\waifu\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 200, in run
return self._sess.run(output_names, input_feed, run_options)
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Got invalid dimensions for input: latent_model_input for the following indices
index: 2 Got: 96 Expected: 64
index: 3 Got: 104 Expected: 64
Please fix either the inputs or the model.

please help

Image dimensions should be a multiple of 8. For example, 120 x 120 would be a valid pair.

Sign up or log in to comment