Team Ai
Apppublic

David310/Detect_AI-generated_Image

sourceHugging Faceupdated 2y agoView on Hugging Face
4likes
train_options.cpython-38.pyc7 linesDownload Raw Back to __pycache__
1U

2��^f��@s ddlmZGdd�de�ZdS)�)�BaseOptionsc@seZdZdd�ZdS)�TrainOptionscCs�t�||�}|jdtdd�|jdddd�|jdtd	d3d�|jddd
d�|jdtddd�|jdtddd�|jdtddd�|jdtddd�|jdtddd�|jdtddd�|jdtdd d�|jd!td"d#d�|jd$td%d&d�d'|_|S)(Nz--earlystop_epoch�)�type�defaultz4--data_aug�5store_truezTif specified, perform additional data augmentation (photometric, blurring, jpegging))�action�helpz--optim�adamzoptim to use [sgd, adam])rrr	z--new_optimz0new optimizer instead of loading the optim statez--loss_freqi�z(frequency of showing loss on tensorboardz--save_epoch_freqrz4frequency of saving checkpoints at the end of epochsz
--epoch_countzcthe starting epoch count, we save the model by <epoch_count>, <epoch_count>+<save_latest_freq>, ...z--last_epoch�����z0starting epoch count for scheduler intializationz
--train_split�trainztrain, val, test, etcz--val_split�valz--niter�dz
total epochesz--beta1g�������?zmomentum term of adamz--lrg-C��6?zinitial learning rate for adamT)r�6initialize�add_argument�int�str�float�isTrain)�self�parser�r�=/root/autodl-tmp/UniversalFakeDetect/options/train_options.pyrs zTrainOptions.initializeN)�__name__�7__module__�__qualname__rrrrrrsrN)Zbase_optionsrrrrrr�<module>s