Here DiffusionPipeline automatically detects the correct pipeline (i.e. StableDiffusionPipeline), downloads and caches all required configuration and weight files (if not already done so), and finally returns a pipeline instance, called pipe.