quivalent to the above.
pipe.set_joint_mode()
sample = pipe(num_inference_steps=20, guidance_scale=8.0) When the mode is set manually, subsequent calls to the pipeline will use the set mode without attempting to infer the mode.
You can reset the mode with UniDiffuserPipeline.reset_mode(), after which the pipeline will once again infer the mode. You can also generate only an image or only text (which the UniDiffuser paper calls “marginal” genera