`width` and `height` not working on Inference API


I’m using the python hub library to make a call to the inference API but the height and width parameters seem to be ignored and the size of the resulting image is always the same.

I’ve tried with several different models and didn’t have any luck. When I run the model in Automatic or ComfyUI it can produce any dimension, so the model is not an issue.

Any ideas?

1 Like

Update: tested locally and was able to run inference with no issues.

Turned out to be a bug with HuggingFace. Looks like they already fixed it.