UnboundLocalError: local variable 'config_file_url' referenced before assignment
MohamedAliRashad opened this issue · 1 comments
MohamedAliRashad commented
The error in the title show up when i try to load multiple models from get_kandinsky2
for different tasks
text2img_model = get_kandinsky2("cuda", task_type="text2img", model_version="2.1", use_flash_attention=True)
img2img_model = get_kandinsky2("cuda", task_type="img2img", model_version="2.1", use_flash_attention=True)
Blucknote commented
There is no such task type img2img (yet?) in Kandinsky2.1
Kandinsky-2/kandinsky2/__init__.py
Lines 99 to 104 in c9ec0dd
But there another way mentioned in #22: #22 (comment)