Skip to content

Commit

Permalink
Merge pull request #62 from tomas-gajarsky/chore/cleaning
Browse files Browse the repository at this point in the history
Polishing
  • Loading branch information
tomas-gajarsky authored Dec 14, 2023
2 parents 2b03df9 + 3f8832d commit c5714fa
Show file tree
Hide file tree
Showing 22 changed files with 2,364 additions and 1,996 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Change Log


## 0.4.1

Released on December 14, 2023.

### Changed
* postprocessor for label confidence pairs to have no offset by default
* Resize transform configs to enable antialiasing by default
* notebook to version 0.4.0 or higher
* notebook to include Action Unit and Valence Arousal predictors


## 0.4.0

Released on December 13, 2023.
Expand Down
1 change: 1 addition & 0 deletions conf/analyzer/predictor/align/synergy_mobilenet_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ preprocessor:
transforms:
- _target_: torchvision.transforms.Resize
size: [120, 120] # List[int]
antialias: True # bool
device:
_target_: torch.device
type: ${analyzer.predictor.align.device.type}
Expand Down
3 changes: 2 additions & 1 deletion conf/analyzer/predictor/au/open_graph_swin_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ preprocessor:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size: [224, 224] # List[int]
antialias: True # bool
- _target_: torchvision.transforms.Normalize
mean: [0.485, 0.456, 0.406] # List[float]
std: [0.229, 0.224, 0.225] # List[float]
Expand Down
3 changes: 2 additions & 1 deletion conf/analyzer/predictor/deepfake/efficientnet_b7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ preprocessor:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size: [380, 380] # List[int]
antialias: True # bool
- _target_: torchvision.transforms.Normalize
mean: [0.485, 0.456, 0.406] # List[float]
std: [0.229, 0.224, 0.225] # List[float]
Expand Down
3 changes: 2 additions & 1 deletion conf/analyzer/predictor/embed/r50_vggface_1m.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ preprocessor:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size: [244, 244] # List[int]
antialias: True # bool
- _target_: torchvision.transforms.Normalize
mean: [0.485, 0.456, 0.406] # List[float]
std: [0.228, 0.224, 0.225] # List[float]
Expand Down
3 changes: 2 additions & 1 deletion conf/analyzer/predictor/fer/efficientnet_b0_7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ preprocessor:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size: [244, 244] # List[int]
antialias: True # bool
- _target_: torchvision.transforms.Normalize
mean: [0.485, 0.456, 0.406] # List[float]
std: [0.229, 0.224, 0.225] # List[float]
Expand Down
3 changes: 2 additions & 1 deletion conf/analyzer/predictor/fer/efficientnet_b2_8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ preprocessor:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size: [260, 260] # List[int]
antialias: True # bool
- _target_: torchvision.transforms.Normalize
mean: [0.485, 0.456, 0.406] # List[float]
std: [0.229, 0.224, 0.225] # List[float]
Expand Down
7 changes: 4 additions & 3 deletions conf/analyzer/predictor/va/elim_al_alexnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ preprocessor:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size: [224, 224] # List[int]
antialias: True
antialias: True # bool
- _target_: torchvision.transforms.Normalize
mean: [0.485, 0.456, 0.406] # List[float]
std: [0.229, 0.224, 0.225] # List[float]
Expand All @@ -33,4 +33,5 @@ postprocessor:
_target_: torch.device
type: ${analyzer.predictor.va.device.type}
optimize_transform: ${analyzer.optimize_transforms}
labels: ["valence", "arousal"] # List
labels: ["valence", "arousal"] # List
offsets: [0, 0] # List
3 changes: 2 additions & 1 deletion conf/analyzer/predictor/verify/adaface_ir101_webface12m.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ preprocessor:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size: [112, 112] # List[int]
antialias: True # bool
- _target_: torchvision.transforms.Normalize
mean: [0.5, 0.5, 0.5] # List[float]
std: [0.5, 0.5, 0.5] # List[float]
Expand Down
3 changes: 2 additions & 1 deletion conf/analyzer/predictor/verify/r100_magface_unpg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ preprocessor:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size: [112, 112] # List[int]
antialias: True # bool
- _target_: torchvision.transforms.Normalize
mean: [0.485, 0.456, 0.406] # List[float]
std: [0.229, 0.224, 0.225] # List[float]
Expand Down
1 change: 1 addition & 0 deletions conf/analyzer/reader/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ transform:
- _target_: facetorch.transforms.SquarePad
- _target_: torchvision.transforms.Resize
size: [1080] # List[int]
antialias: True # bool
1 change: 1 addition & 0 deletions conf/analyzer/unifier/img_244.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ transform:
std: [255., 255., 255.] # List[float]
- _target_: torchvision.transforms.Resize
size: [244, 244] # List[int]
antialias: True # bool
device:
_target_: torch.device
type: ${analyzer.device} # str
Expand Down
1 change: 1 addition & 0 deletions conf/analyzer/unifier/img_260.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ transform:
std: [255., 255., 255.] # List[float]
- _target_: torchvision.transforms.Resize
size: [260, 260] # List[int]
antialias: True # bool
device:
_target_: torch.device
type: ${analyzer.device} # str
Expand Down
1 change: 1 addition & 0 deletions conf/analyzer/unifier/img_380.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ transform:
std: [255., 255., 255.] # List[float]
- _target_: torchvision.transforms.Resize
size: [380, 380] # List[int]
antialias: True # bool
device:
_target_: torch.device
type: ${analyzer.device} # str
Expand Down
31 changes: 21 additions & 10 deletions conf/merged/gpu.merged.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ analyzer:
_target_: torchvision.transforms.Compose
transforms:
- _target_: facetorch.transforms.SquarePad
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size:
- 1080
antialias: True
detector:
_target_: facetorch.analyzer.detector.FaceDetector
downloader:
Expand Down Expand Up @@ -88,10 +89,11 @@ analyzer:
- 255.0
- 255.0
- 255.0
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size:
- 380
- 380
antialias: True
device:
_target_: torch.device
type: ${analyzer.device}
Expand All @@ -111,10 +113,11 @@ analyzer:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size:
- 244
- 244
antialias: True
- _target_: torchvision.transforms.Normalize
mean:
- 0.485
Expand Down Expand Up @@ -152,10 +155,11 @@ analyzer:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size:
- 112
- 112
antialias: True
- _target_: torchvision.transforms.Normalize
mean:
- 0.5
Expand Down Expand Up @@ -193,10 +197,11 @@ analyzer:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size:
- 260
- 260
antialias: True
- _target_: torchvision.transforms.Normalize
mean:
- 0.485
Expand Down Expand Up @@ -242,10 +247,11 @@ analyzer:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size:
- 224
- 224
antialias: True
- _target_: torchvision.transforms.Normalize
mean:
- 0.485
Expand Down Expand Up @@ -325,11 +331,11 @@ analyzer:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size:
- 224
- 224
antialias: true
antialias: True
- _target_: torchvision.transforms.Normalize
mean:
- 0.485
Expand All @@ -354,6 +360,9 @@ analyzer:
labels:
- valence
- arousal
offsets:
- 0
- 0
deepfake:
_target_: facetorch.analyzer.predictor.FacePredictor
downloader:
Expand All @@ -368,10 +377,11 @@ analyzer:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size:
- 380
- 380
antialias: True
- _target_: torchvision.transforms.Normalize
mean:
- 0.485
Expand Down Expand Up @@ -411,10 +421,11 @@ analyzer:
transform:
_target_: torchvision.transforms.Compose
transforms:
- _target_: torchvision.transforms.Resize
- _target_: torchvision.transforms.Resize
size:
- 120
- 120
antialias: True
device:
_target_: torch.device
type: ${analyzer.predictor.align.device.type}
Expand Down
Loading

0 comments on commit c5714fa

Please sign in to comment.