CoolFace
Apppublic

Florii/Aesthetic_RVC

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
processing.cpython-39.pyc34 linesDownload Raw Back to __pycache__
1a

2zye) �@srddlZej�d�ddlZe��ZddlmZmZm	Z	m3Z4ddlmZe�Z
ddlZddlZdd�Zdd�ZdS)	�Nz..)�change_info�extract_small_model�merge�	show_info)�I18nAutocCstj�|�tj�|�d��s2ddiddiddifSz�t|�tj�|�d�d��t}t|���d��	d�d�	d�d�}|d	|d5}}d|vr�|ddkr�dnd
}|t6|�|fWd�WS1s�0YWn*t��ddiddiddifYS0dS)Nz	train.log�__type__�update�r�7r�	������sample_rate�if_f0�version�v2�v1)
�os�path�exists�replace�basename�open�eval�read�strip�split�str�	traceback�	print_exc)�	ckpt_path�f�info�sr�f0r�r$�RC:\Users\marce\Downloads\Applio\Applio-RVC-Fork-Recode-Beautify\tabs\processing.py�change_info_s�&2r&c
CsRt�����tjtd�d����t����Bt����tjtd�dddtd�d�}tjd	dtd8�ddd�}tjtd
�ddd�}tj	td�ddgddd�}tj	td�ddgddd�}Wd�n1s�0Yt���ttjtd�ddtd�d�}tjtd�ddtd�d�}tjtd�dddtd�d�}tjtd�ddd�}Wd�n1�sT0YWd�n1�st0Ytj9td�d d!�}	|	�t||||||||g|�Wd�n1�s�0YWd�n1�s�0Yt����Ntjtd"�d���t����t���Ftjtd#�ddtd�d�}10tjtd$�dddtd�d�}Wd�n1�sn0Yt���@tjtd%�td�dddd&�}tjtd�ddd�}
Wd�n1�s�0YWd�n1�s�0Ytj11td'�d d!�}|�t
|12||g|
�Wd�n1�s.0YWd�n1�sN0Yt����tjtd(�d���t���zt���Ptjtd#�ddtd�d�}tjtd�ddd�}tj13td)�d d!�}Wd�n1�s�0YWd�n1�s�0Y|�t|g|�Wd�n1�s.0YWd�n1�sN0Yt�����tjtd*�d����t����t���rtjtd�ddtd�d�}tjtd
�ddd�}tj	td�ddgddd�}tj	td�gd+�ddd�}Wd�n1�s0Yt���Xtjtd#�td�dd,�}tjtd�dddtd�d�}tjtd�ddd�}Wd�n1�sx0YWd�n1�s�0Yt���8tj14td-�d d!�}|�t|g|||g�Wd�n1�s�0Y|�t||||||g|�Wd�n1�s$0YWd�n1�sD0YdS).Nz/Model fusion, can be used to test timbre fusion)�labelzName:��TzName for saving)r'�value�	max_lines�interactive�placeholderrzWeight for Model A:g�?)�minimum�maximumr'r*r,z%Whether the model has pitch guidance.)r'r*r,zModel architecture version:rr)r'�choicesr*r,zTarget sample rate:�40k�48kzPath to Model A:z
Path to model)r'r*r,r-zPath to Model B:zModel information to be placed:�zModel information to be placedzOutput information:)r'r*r+�Fusion�primary)�variantzModify model informationzPath to Model:z!Model information to be modified:zSave file name:)r'r-r*r+r,ZModifyzView model information�ViewzModel extraction)�32kr1r2)r'r-r,ZExtract)�gr�Group�	Accordion�i18n�Row�Column�Textbox�Slider�Checkbox�Radio�Button�clickrrr�changer&r)Z
name_to_save0Zalpha_aZif_f0_Z	version_2Zsr_Zckpt_aZckpt_bZinfo__Zinfo4Zbut6Z15ckpt_path0�info_Z
name_to_save1Zinfo5�but7Z16ckpt_path1Zinfo6Zbut8�	save_nameZif_f0__Z	version_1Zsr__Z17ckpt_path2Zinfo___Zinfo7Zbut9r$r$r%�processing_%sX�1819�����$20���21�F�22�D2324��&25�26�FT272829�30�RP31����&32��33�F34�$�rI)�sysr�appendr�getcwd�now_dir�'lib.infer.infer_libs.train.process_ckptrrrr�assets.i18n.i18nrr<�gradior9rr&rIr$r$r$r%�<module>s