CoolFace
Apppublic

hololens/stable-diffusion-webui-depthmap-script

sourceHugging Faceupdated 2y agoView on Hugging Face
1likes
misc.cpython-312.pyc12 linesDownload Raw Back to __pycache__
12��f3��^�ddlZddlZddlZddlZd�ZdZdZdZe�de�de��d�Zd4d	�Z	y)�Nc��	tjt�j}t	j5tjjdd�ddg|dtjd��j�dd	S#t$rYy6wxYw)N�GIT�gitz	rev-parse�HEADF�utf8)�cwd�shell�stderr�encodingr�z<none>)�pathlib�Path�__file__�parent�7subprocess�check_output�os�environ�get�DEVNULL�strip�	Exception)�	file_paths �@F:\3dpicmaker\stable-diffusion-webui-depthmap-script\src\misc.py�get_commit_hashrs�����L�L��*�1�1�	��&�&�
�Z�Z�^�^�E�5�
)�;��?���z�/A�/A�F�T�TY�TY�T[�\]�^_�a�	a������s�A<A?�?	B�8Bz&stable-diffusion-webui-depthmap-script�DepthMapzv0.4.8� z (�)c�L�ddl}tjj|�ryt	|�t9ur|g}|D]O}	t
d|d|�|jj|||�tjj|�ry�Qtd|�d|�d���#Y�hxYw)Nr�Downloading�toz?Download failed. Try again later or manually download the file z
 to location �.)10�torchr�path�exists�type�list�print�hub�download_url_to_file�RuntimeError)�filename�url�sha256_hash_prefixr#�cur_urls     r�ensure_file_downloadedr0s����	�w�w�~�~�h����C�y����e�����	��-��$��9��I�I�*�*�7�H�>P�Q��w�w�~�~�h�'��(�	��H�HP�z�Q^�_b�^c�cd�f�g�g��	��s�A11B�B#)N)12rrr
�builtinsr�REPOSITORY_NAME�SCRIPT_NAME�SCRIPT_VERSION�SCRIPT_FULL_NAMEr0��r�<module>r8sK���	����;������!�]�!�N�#3�2�o�6G�5H��J��gr7