mirror of
https://github.com/AntoineHX/smart_augmentation.git
synced 2025-05-04 12:10:45 +02:00
Resultats TF sequentielles
This commit is contained in:
parent
4f5a309bcc
commit
a389920de3
14 changed files with 5863 additions and 1 deletions
|
@ -671,7 +671,7 @@ def run_dist_dataugV2(model, epochs=1, inner_it=0, dataug_epoch_start=0, print_f
|
|||
optim_copy(dopt=diffopt, opt=inner_opt)
|
||||
|
||||
meta_opt.step()
|
||||
model['data_aug'].adjust_prob(soft=True) #Contrainte sum(proba)=1
|
||||
model['data_aug'].adjust_prob(soft=False) #Contrainte sum(proba)=1
|
||||
|
||||
fmodel = higher.patch.monkeypatch(model, device=None, copy_initial_weights=True)
|
||||
diffopt = higher.optim.get_diff_optim(inner_opt, model.parameters(),fmodel=fmodel, track_higher_grads=high_grad_track)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue