o
    Gi                     @   s  d dl mZ ddlmZmZmZmZmZmZm	Z	 i Z
i ZddgiZe rEe	ddrEzd dlmZmZ eed	< eed
< W n	 eyD   Y nw ze rLe sOe W n eyf   ddlmZ e
ee Y nw dged< esperze rwe sze W n ey   ddlT Y dS w ddlmZ dS d dlZeee d eedeje< e
 D ]\ZZeeje ee qe D ]\ZZeeje ee qdS )    )TYPE_CHECKING   )DIFFUSERS_SLOW_IMPORTOptionalDependencyNotAvailable_LazyModuleget_objects_from_moduleis_torch_availableis_transformers_availableis_transformers_versionpipeline_outputGlmImagePipelineOutputz>=z4.57.4) GlmImageForConditionalGenerationGlmImageProcessorr   r   )$dummy_torch_and_transformers_objectsGlmImagePipelinepipeline_glm_image)*   )r   N__file__)module_spec)typingr   utilsr   r   r   r   r   r	   r
   _dummy_objects_additional_imports_import_structuretransformersr   r   ImportErrorr   update*utils.dummy_torch_and_transformers_objectsr   r   sys__name__globals__spec__modulesitemsnamevaluesetattr r(   r(   Z/home/ubuntu/.local/lib/python3.10/site-packages/diffusers/pipelines/glm_image/__init__.py<module>   sV    $

