prepare_image
in Kandinsky pipelines doesn't support torch.Tensor
#11060
Labels
prepare_image
in Kandinsky pipelines doesn't support torch.Tensor
#11060
Hi, I want to report a bug in Kandinsky pipelines.
diffusers/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py
Lines 413 to 420 in 2f0f281
According to the above contents, elements in
image
can be eitherPIL.Image.Image
ortorch.Tensor
.diffusers/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py
Lines 98 to 104 in 2f0f281
However, the
prepare_image
function is only forPIL.Image.Image
, and does not supporttorch.Tensor
.Can you resolve this problem by implementing an image resize function for
torch.Tensor
?The text was updated successfully, but these errors were encountered: