You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loading a flux model as usual works fine. pipeline can then be switched to img2img or inpaint without issues.
but once its img2img or inpaint, it cannot be switched back to txt2img since some of the pipeline modules are mandatory to be registered (even if as none) in txt2img and not present in img2img
Reproduction
pipe=FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell")
pipe=AutoPipelineForInpainting.from_pipe(pipe) # this is okpipe=AutoPipelineForText2Image.from_pipe(pipe) # this fails
issue seems to be due to fact that flux txt2img pipeline defines:
has been incorrectly initialized or
<class 'diffusers.pipelines.flux.pipeline_flux_img2img.FluxImg2ImgPipeline'> is incorrectly implemented.
Expected {'text_encoder_2', 'scheduler', 'tokenizer', 'transformer', 'text_encoder', 'tokenizer_2', 'vae'}
to be defined, but
dict_keys(['vae', 'text_encoder', 'text_encoder_2', 'tokenizer', 'tokenizer_2', 'transformer', scheduler', 'image_encoder', 'feature_extractor']) are defined.
Describe the bug
loading a flux model as usual works fine. pipeline can then be switched to img2img or inpaint without issues.
but once its img2img or inpaint, it cannot be switched back to txt2img since some of the pipeline modules are mandatory to be registered (even if as none) in txt2img and not present in img2img
Reproduction
issue seems to be due to fact that flux txt2img pipeline defines:
while img2img and inpaint pipelines only define:
Logs
System Info
diffusers==0.33.0.main
Who can help?
@yiyixuxu @sayakpaul @DN6 @asomoza
The text was updated successfully, but these errors were encountered: