mirror of
https://github.com/AntoineHX/smart_augmentation.git
synced 2025-05-04 12:10:45 +02:00
leger chgt mag regularisation
This commit is contained in:
parent
64282bda3a
commit
cc737b7997
5 changed files with 21 additions and 8 deletions
|
@ -52,6 +52,9 @@ TF_dict={ #Dataugv5
|
|||
#'Equalize': (lambda mag: None),
|
||||
}
|
||||
|
||||
TF_no_mag={'Identity', 'FlipUD', 'FlipLR'}
|
||||
TF_ignore_mag= TF_no_mag | {'Solarize', 'Posterize'}
|
||||
|
||||
def int_image(float_image): #ATTENTION : legere perte d'info (granularite : 1/256 = 0.0039)
|
||||
return (float_image*255.).type(torch.uint8)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue