Got exception iterating response when using init image
xwwxyd opened this issue · comments
when I use stability_api.generate() method to generate image with init image parameter, my init image width is 276, height is 183
The init image size must be must be multiples of 64?
Here is the exception error log:
_MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "Exception iterating responses: image dimensions must be multiples of 64, got 183x276"
debug_error_string = "UNKNOWN:Error received from peer ipv4:104.18.21.212:443 {created_time:"2022-12-27T14:17:41.037114+08:00", grpc_status:2, grpc_message:"Exception iterating responses: image dimensions must be multiples of 64, got 183x276"}">
Yep! You can pad or resize your image before sending it in so that its dimensions are multiples of 64. The models produce their best results at their native resolutions or slightly above so using a very small image like that will probably not get a nice output. Try sending in a 512x512 as your init.
yeah! It works when I resize the image to multiples of 64. Thanks!