Team Ai
Modelpublic

fernandoperlar/preprocessing_image

sourceHugging Faceupdated 5y agoView on Hugging Face
0likes
Misc.cpython-38.pyc9 linesDownload Raw Back to __pycache__
1U

2�,�aY�@s*ddlZddlZddlZGdd�d�ZdS)�Nc@seZdZdd�Zddd�ZdS)�computercCshtd�tjj��D]}td|j�d|j���qttj�d��dkrdtd�t��	�dkrdt3d��dS)	NzAvailable devices:z- z: �GPUrzE4Cannot run model on GPU. Do you want to run it with the CPU? [Y/N]: �Yz)Execution of the model has been canceled!)�print�tf�config�experimental�list_physical_devices�device_type�name�len�input�upper�5SystemExit)�device�r�[c:\Users\ferna\OneDrive\Trabajo\CEIEC\MammoEchoThermo\mammo-echo-thermo\src\scripts\Misc.py�check_available_devicessz computer.check_available_devicesTcCsZ|r"tj�d|�r"t�d|�tj�d�s8t�d�tj�d|�sVt�d|�dS)Nzoutput/�output)�os�path�exists�shutil�rmtree�makedirs)Z	subfolder�newrrr�create_output_folders6zcomputer.create_output_folderN)T)�__name__�7__module__�__qualname__rrrrrrrs8r)�9tensorflowrrrrrrrr�<module>s