deanna-emery commited on
Commit
e5617ca
1 Parent(s): 7be1884
modeling/official/core/config_definitions.py CHANGED
@@ -17,9 +17,9 @@
17
  import dataclasses
18
  from typing import Optional, Sequence, Union
19
 
20
- from official.modeling.hyperparams import base_config
21
- from official.modeling.optimization.configs import optimization_config
22
- from official.modeling.privacy import configs as dp_configs
23
 
24
  OptimizationConfig = optimization_config.OptimizationConfig
25
 
 
17
  import dataclasses
18
  from typing import Optional, Sequence, Union
19
 
20
+ from modeling.official.modeling.hyperparams import base_config
21
+ from modeling.official.modeling.optimization.configs import optimization_config
22
+ from modeling.official.modeling.privacy import configs as dp_configs
23
 
24
  OptimizationConfig = optimization_config.OptimizationConfig
25
 
modeling/official/core/exp_factory.py CHANGED
@@ -14,8 +14,8 @@
14
 
15
  """Experiment factory methods."""
16
 
17
- from official.core import config_definitions as cfg
18
- from official.core import registry
19
 
20
 
21
  _REGISTERED_CONFIGS = {}
 
14
 
15
  """Experiment factory methods."""
16
 
17
+ from modeling.official.core import config_definitions as cfg
18
+ from modeling.official.core import registry
19
 
20
 
21
  _REGISTERED_CONFIGS = {}
modeling/official/modeling/hyperparams/base_config.py CHANGED
@@ -25,7 +25,7 @@ from absl import logging
25
  import tensorflow as tf, tf_keras
26
  import yaml
27
 
28
- from official.modeling.hyperparams import params_dict
29
 
30
 
31
  _BOUND = set()
 
25
  import tensorflow as tf, tf_keras
26
  import yaml
27
 
28
+ from modeling.official.modeling.hyperparams import params_dict
29
 
30
 
31
  _BOUND = set()
modeling/official/modeling/hyperparams/oneof.py CHANGED
@@ -17,7 +17,7 @@
17
  from typing import Optional
18
 
19
  import dataclasses
20
- from official.modeling.hyperparams import base_config
21
 
22
 
23
  @dataclasses.dataclass
 
17
  from typing import Optional
18
 
19
  import dataclasses
20
+ from modeling.official.modeling.hyperparams import base_config
21
 
22
 
23
  @dataclasses.dataclass
modeling/official/modeling/optimization/configs/learning_rate_config.py CHANGED
@@ -16,7 +16,7 @@
16
  from typing import List, Optional
17
 
18
  import dataclasses
19
- from official.modeling.hyperparams import base_config
20
 
21
 
22
  @dataclasses.dataclass
 
16
  from typing import List, Optional
17
 
18
  import dataclasses
19
+ from modeling.official.modeling.hyperparams import base_config
20
 
21
 
22
  @dataclasses.dataclass
modeling/official/modeling/optimization/configs/optimization_config.py CHANGED
@@ -22,10 +22,10 @@ from typing import Optional
22
 
23
  import dataclasses
24
 
25
- from official.modeling.hyperparams import base_config
26
- from official.modeling.hyperparams import oneof
27
- from official.modeling.optimization.configs import learning_rate_config as lr_cfg
28
- from official.modeling.optimization.configs import optimizer_config as opt_cfg
29
 
30
 
31
  @dataclasses.dataclass
 
22
 
23
  import dataclasses
24
 
25
+ from modeling.official.modeling.hyperparams import base_config
26
+ from modeling.official.modeling.hyperparams import oneof
27
+ from modeling.official.modeling.optimization.configs import learning_rate_config as lr_cfg
28
+ from modeling.official.modeling.optimization.configs import optimizer_config as opt_cfg
29
 
30
 
31
  @dataclasses.dataclass
modeling/official/modeling/optimization/configs/optimization_config_test.py CHANGED
@@ -16,9 +16,9 @@
16
 
17
  import tensorflow as tf, tf_keras
18
 
19
- from official.modeling.optimization.configs import learning_rate_config as lr_cfg
20
- from official.modeling.optimization.configs import optimization_config
21
- from official.modeling.optimization.configs import optimizer_config as opt_cfg
22
 
23
 
24
  class OptimizerConfigTest(tf.test.TestCase):
 
16
 
17
  import tensorflow as tf, tf_keras
18
 
19
+ from modeling.official.modeling.optimization.configs import learning_rate_config as lr_cfg
20
+ from modeling.official.modeling.optimization.configs import optimization_config
21
+ from modeling.official.modeling.optimization.configs import optimizer_config as opt_cfg
22
 
23
 
24
  class OptimizerConfigTest(tf.test.TestCase):
modeling/official/modeling/optimization/configs/optimizer_config.py CHANGED
@@ -16,7 +16,7 @@
16
  from typing import List, Optional
17
 
18
  import dataclasses
19
- from official.modeling.hyperparams import base_config
20
 
21
 
22
  @dataclasses.dataclass
 
16
  from typing import List, Optional
17
 
18
  import dataclasses
19
+ from modeling.official.modeling.hyperparams import base_config
20
 
21
 
22
  @dataclasses.dataclass
modeling/official/modeling/tf_utils.py CHANGED
@@ -20,7 +20,7 @@ import six
20
  import tensorflow as tf, tf_keras
21
 
22
  from tensorflow.python.util import deprecation
23
- from official.modeling import activations
24
 
25
 
26
  @deprecation.deprecated(
 
20
  import tensorflow as tf, tf_keras
21
 
22
  from tensorflow.python.util import deprecation
23
+ from modeling.official.modeling import activations
24
 
25
 
26
  @deprecation.deprecated(
modeling/official/projects/movinet/configs/movinet.py CHANGED
@@ -25,12 +25,12 @@ frame-rate associated with them. See the main paper for more details.
25
 
26
  import dataclasses
27
 
28
- from official.core import config_definitions as cfg
29
- from official.core import exp_factory
30
- from official.modeling import hyperparams
31
- from official.vision.configs import backbones_3d
32
- from official.vision.configs import common
33
- from official.vision.configs import video_classification
34
 
35
 
36
  @dataclasses.dataclass
 
25
 
26
  import dataclasses
27
 
28
+ from modeling.official.core import config_definitions as cfg
29
+ from modeling.official.core import exp_factory
30
+ from modeling.official.modeling import hyperparams
31
+ from modeling.official.vision.configs import backbones_3d
32
+ from modeling.official.vision.configs import common
33
+ from modeling.official.vision.configs import video_classification
34
 
35
 
36
  @dataclasses.dataclass
modeling/official/projects/movinet/modeling/movinet_layers_a2_modified.py CHANGED
@@ -21,8 +21,8 @@ from typing import Any, Mapping, Optional, Sequence, Tuple, Union
21
 
22
  import tensorflow as tf, tf_keras
23
 
24
- from official.modeling import tf_utils
25
- from official.vision.modeling.layers import nn_layers
26
 
27
  # Default kernel weight decay that may be overridden
28
  KERNEL_WEIGHT_DECAY = 1.5e-5
 
21
 
22
  import tensorflow as tf, tf_keras
23
 
24
+ from modeling.official.modeling import tf_utils
25
+ from modeling.official.vision.modeling.layers import nn_layers
26
 
27
  # Default kernel weight decay that may be overridden
28
  KERNEL_WEIGHT_DECAY = 1.5e-5
modeling/official/projects/movinet/modeling/movinet_model_a2_modified.py CHANGED
@@ -21,10 +21,10 @@ from typing import Any, Dict, Mapping, Optional, Sequence, Tuple, Union
21
  from absl import logging
22
  import tensorflow as tf, tf_keras
23
 
24
- from official.projects.movinet.configs import movinet as cfg
25
- from official.projects.movinet.modeling import movinet_layers_a2_modified
26
- from official.vision.modeling import backbones
27
- from official.vision.modeling import factory_3d as model_factory
28
 
29
 
30
  @tf_keras.utils.register_keras_serializable(package='Vision')
 
21
  from absl import logging
22
  import tensorflow as tf, tf_keras
23
 
24
+ from modeling.official.projects.movinet.configs import movinet as cfg
25
+ from modeling.official.projects.movinet.modeling import movinet_layers_a2_modified
26
+ from modeling.official.vision.modeling import backbones
27
+ from modeling.official.vision.modeling import factory_3d as model_factory
28
 
29
 
30
  @tf_keras.utils.register_keras_serializable(package='Vision')
modeling/official/vision/configs/backbones_3d.py CHANGED
@@ -18,7 +18,7 @@ from typing import Optional, Tuple
18
  # Import libraries
19
  import dataclasses
20
 
21
- from official.modeling import hyperparams
22
 
23
 
24
  @dataclasses.dataclass
 
18
  # Import libraries
19
  import dataclasses
20
 
21
+ from modeling.official.modeling import hyperparams
22
 
23
 
24
  @dataclasses.dataclass
modeling/official/vision/configs/common.py CHANGED
@@ -19,8 +19,8 @@ from typing import List, Optional
19
 
20
  # Import libraries
21
 
22
- from official.core import config_definitions as cfg
23
- from official.modeling import hyperparams
24
 
25
 
26
  @dataclasses.dataclass
 
19
 
20
  # Import libraries
21
 
22
+ from modeling.official.core import config_definitions as cfg
23
+ from modeling.official.modeling import hyperparams
24
 
25
 
26
  @dataclasses.dataclass
modeling/official/vision/configs/video_classification.py CHANGED
@@ -15,12 +15,12 @@
15
  """Video classification configuration definition."""
16
  import dataclasses
17
  from typing import Optional, Tuple, Union
18
- from official.core import config_definitions as cfg
19
- from official.core import exp_factory
20
- from official.modeling import hyperparams
21
- from official.modeling import optimization
22
- from official.vision.configs import backbones_3d
23
- from official.vision.configs import common
24
 
25
 
26
  @dataclasses.dataclass
 
15
  """Video classification configuration definition."""
16
  import dataclasses
17
  from typing import Optional, Tuple, Union
18
+ from modeling.official.core import config_definitions as cfg
19
+ from modeling.official.core import exp_factory
20
+ from modeling.official.modeling import hyperparams
21
+ from modeling.official.modeling import optimization
22
+ from modeling.official.vision.configs import backbones_3d
23
+ from modeling.official.vision.configs import common
24
 
25
 
26
  @dataclasses.dataclass
modeling/official/vision/modeling/backbones/efficientnet.py CHANGED
@@ -21,11 +21,11 @@ from typing import Any, List, Tuple
21
 
22
  import tensorflow as tf, tf_keras
23
 
24
- from official.modeling import hyperparams
25
- from official.modeling import tf_utils
26
- from official.vision.modeling.backbones import factory
27
- from official.vision.modeling.layers import nn_blocks
28
- from official.vision.modeling.layers import nn_layers
29
 
30
  layers = tf_keras.layers
31
 
 
21
 
22
  import tensorflow as tf, tf_keras
23
 
24
+ from modeling.official.modeling import hyperparams
25
+ from modeling.official.modeling import tf_utils
26
+ from modeling.official.vision.modeling.backbones import factory
27
+ from modeling.official.vision.modeling.layers import nn_blocks
28
+ from modeling.official.vision.modeling.layers import nn_layers
29
 
30
  layers = tf_keras.layers
31
 
modeling/official/vision/modeling/backbones/resnet_3d.py CHANGED
@@ -18,11 +18,11 @@ from typing import Callable, List, Tuple, Optional
18
  # Import libraries
19
  import tensorflow as tf, tf_keras
20
 
21
- from official.modeling import hyperparams
22
- from official.modeling import tf_utils
23
- from official.vision.modeling.backbones import factory
24
- from official.vision.modeling.layers import nn_blocks_3d
25
- from official.vision.modeling.layers import nn_layers
26
 
27
  layers = tf_keras.layers
28
 
 
18
  # Import libraries
19
  import tensorflow as tf, tf_keras
20
 
21
+ from modeling.official.modeling import hyperparams
22
+ from modeling.official.modeling import tf_utils
23
+ from modeling.official.vision.modeling.backbones import factory
24
+ from modeling.official.vision.modeling.layers import nn_blocks_3d
25
+ from modeling.official.vision.modeling.layers import nn_layers
26
 
27
  layers = tf_keras.layers
28
 
modeling/official/vision/modeling/backbones/vit.py CHANGED
@@ -20,11 +20,11 @@ from typing import Optional, Tuple
20
  from absl import logging
21
  import tensorflow as tf, tf_keras
22
 
23
- from official.modeling import activations
24
- from official.vision.modeling.backbones import factory
25
- from official.vision.modeling.backbones.vit_specs import VIT_SPECS
26
- from official.vision.modeling.layers import nn_blocks
27
- from official.vision.modeling.layers import nn_layers
28
 
29
 
30
  layers = tf_keras.layers
 
20
  from absl import logging
21
  import tensorflow as tf, tf_keras
22
 
23
+ from modeling.official.modeling import activations
24
+ from modeling.official.vision.modeling.backbones import factory
25
+ from modeling.official.vision.modeling.backbones.vit_specs import VIT_SPECS
26
+ from modeling.official.vision.modeling.layers import nn_blocks
27
+ from modeling.official.vision.modeling.layers import nn_layers
28
 
29
 
30
  layers = tf_keras.layers
modeling/official/vision/modeling/factory_3d.py CHANGED
@@ -17,10 +17,10 @@
17
  # Import libraries
18
  import tensorflow as tf, tf_keras
19
 
20
- from official.core import registry
21
- from official.vision.configs import video_classification as video_classification_cfg
22
- from official.vision.modeling import video_classification_model
23
- from official.vision.modeling import backbones
24
 
25
  _REGISTERED_MODEL_CLS = {}
26
 
 
17
  # Import libraries
18
  import tensorflow as tf, tf_keras
19
 
20
+ from modeling.official.core import registry
21
+ from modeling.official.vision.configs import video_classification as video_classification_cfg
22
+ from modeling.official.vision.modeling import video_classification_model
23
+ from modeling.official.vision.modeling import backbones
24
 
25
  _REGISTERED_MODEL_CLS = {}
26
 
modeling/official/vision/modeling/layers/nn_layers.py CHANGED
@@ -19,8 +19,8 @@ from typing import Any, Callable, Dict, List, Mapping, Optional, Tuple, Union
19
  from absl import logging
20
  import tensorflow as tf, tf_keras
21
 
22
- from official.modeling import tf_utils
23
- from official.vision.ops import spatial_transform_ops
24
 
25
 
26
  # Type annotations.
 
19
  from absl import logging
20
  import tensorflow as tf, tf_keras
21
 
22
+ from modeling.official.modeling import tf_utils
23
+ from modeling.official.vision.ops import spatial_transform_ops
24
 
25
 
26
  # Type annotations.