mirror of
https://github.com/AntoineHX/smart_augmentation.git
synced 2025-05-04 04:00:46 +02:00
Encapsulation de KLdiv loss dans mixed_loss
This commit is contained in:
parent
a2135e4709
commit
7742f76d12
2 changed files with 63 additions and 34 deletions
|
@ -183,7 +183,7 @@ if __name__ == "__main__":
|
|||
|
||||
tf_dict = {k: TF.TF_dict[k] for k in tf_names}
|
||||
model = Higher_model(model) #run_dist_dataugV3
|
||||
aug_model = Augmented_model(Data_augV7(TF_dict=tf_dict, N_TF=3, mix_dist=0.8, fixed_prob=False, fixed_mag=False, shared_mag=False), model).to(device)
|
||||
aug_model = Augmented_model(Data_augV5(TF_dict=tf_dict, N_TF=3, mix_dist=0.8, fixed_prob=False, fixed_mag=False, shared_mag=False), model).to(device)
|
||||
#aug_model = Augmented_model(RandAug(TF_dict=tf_dict, N_TF=2), model).to(device)
|
||||
|
||||
print("{} on {} for {} epochs - {} inner_it".format(str(aug_model), device_name, epochs, n_inner_iter))
|
||||
|
@ -192,8 +192,8 @@ if __name__ == "__main__":
|
|||
inner_it=n_inner_iter,
|
||||
dataug_epoch_start=dataug_epoch_start,
|
||||
opt_param=optim_param,
|
||||
print_freq=20,
|
||||
KLdiv=True,
|
||||
print_freq=1,
|
||||
unsup_loss=1,
|
||||
hp_opt=False)
|
||||
|
||||
exec_time=time.process_time() - t0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue