Skip to content

Commit

Permalink
[Bug] Revise flip transformation in some conditional gan's setting (#…
Browse files Browse the repository at this point in the history
…1331)

revise flip transformation in some conditional gan's setting
  • Loading branch information
LeoXing1996 authored Oct 19, 2022
1 parent 1e741ea commit d1725ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions configs/_base_/datasets/cifar10_nopad.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# custom_imports = dict(
# imports=['mmcls.datasets.transforms'], allow_failed_imports=False)
cifar_pipeline = [
dict(type='Flip', flip_ratio=0.5, direction='horizontal'),
dict(type='Flip', keys=['img'], flip_ratio=0.5, direction='horizontal'),
dict(type='PackEditInputs')
]
cifar_dataset = dict(
Expand Down
2 changes: 1 addition & 1 deletion configs/_base_/datasets/imagenet_128.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
dict(type='LoadImageFromFile', key='img'),
dict(type='RandomCropLongEdge', keys=['img']),
dict(type='Resize', scale=(128, 128), keys=['img'], backend='pillow'),
dict(type='Flip', flip_ratio=0.5, direction='horizontal'),
dict(type='Flip', keys=['img'], flip_ratio=0.5, direction='horizontal'),
dict(type='PackEditInputs')
]

Expand Down

0 comments on commit d1725ae

Please sign in to comment.