mirror of
https://github.com/AntoineHX/smart_augmentation.git
synced 2025-05-04 20:20:46 +02:00
Pas reg sur apprentissage mag seules
This commit is contained in:
parent
4166922c34
commit
b820f49437
1 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ class Data_augV5(nn.Module): #Optimisation jointe (mag, proba)
|
||||||
Returns:
|
Returns:
|
||||||
Tensor containing the regularisation loss value.
|
Tensor containing the regularisation loss value.
|
||||||
"""
|
"""
|
||||||
if self._fixed_mag:
|
if self._fixed_mag or self._fixed_prob: #Not enough DOF
|
||||||
return torch.tensor(0)
|
return torch.tensor(0)
|
||||||
else:
|
else:
|
||||||
#return reg_factor * F.l1_loss(self._params['mag'][self._reg_mask], target=self._reg_tgt, reduction='mean')
|
#return reg_factor * F.l1_loss(self._params['mag'][self._reg_mask], target=self._reg_tgt, reduction='mean')
|
||||||
|
@ -559,7 +559,7 @@ class Data_augV7(nn.Module): #Proba sequentielles
|
||||||
Returns:
|
Returns:
|
||||||
Tensor containing the regularisation loss value.
|
Tensor containing the regularisation loss value.
|
||||||
"""
|
"""
|
||||||
if self._fixed_mag:
|
if self._fixed_mag or self._fixed_prob: #Not enough DOF
|
||||||
return torch.tensor(0)
|
return torch.tensor(0)
|
||||||
else:
|
else:
|
||||||
#return reg_factor * F.l1_loss(self._params['mag'][self._reg_mask], target=self._reg_tgt, reduction='mean')
|
#return reg_factor * F.l1_loss(self._params['mag'][self._reg_mask], target=self._reg_tgt, reduction='mean')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue