Open Alx-AI opened 1 year ago
I had the same problem. Need change to: elif task_type == "text2img" or task_type == 'img2img':
There's an easier way to use img2img
, which does not require changing the source code. Just load the normal text2img
model, and then use .generate_img2img(...)
or .mix_images(...)
.
It probably was intended that way, since img2img
and text2img
use the same model, but for some reason the example in README is wrong.
As you can see the init does not accept img2img despite it being supposedly supported.