Commit 5fd25faa authored by Fan Yang's avatar Fan Yang Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 378339245
parent 28f6bdc0
...@@ -69,7 +69,15 @@ class PseudoLabelDataConfig(cfg.DataConfig): ...@@ -69,7 +69,15 @@ class PseudoLabelDataConfig(cfg.DataConfig):
"""Psuedo Label input config for training.""" """Psuedo Label input config for training."""
input_path: str = '' input_path: str = ''
data_ratio: float = 1.0 # Per-batch ratio of pseudo-labeled to labeled data. data_ratio: float = 1.0 # Per-batch ratio of pseudo-labeled to labeled data.
is_training: bool = True
dtype: str = 'float32'
shuffle_buffer_size: int = 10000
cycle_length: int = 10
aug_rand_hflip: bool = True aug_rand_hflip: bool = True
aug_type: Optional[ aug_type: Optional[
Augmentation] = None # Choose from AutoAugment and RandAugment. Augmentation] = None # Choose from AutoAugment and RandAugment.
file_type: str = 'tfrecord' file_type: str = 'tfrecord'
# Keep for backward compatibility.
aug_policy: Optional[str] = None # None, 'autoaug', or 'randaug'.
randaug_magnitude: Optional[int] = 10
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment