Debian Codegraph @

keras_applications/resnet_v2.py

raw symbols SCIP
1 """ResNetV2 models for Keras.
2
3 # Reference paper
4
5 - [Aggregated Residual Transformations for Deep Neural Networks]
6 (https://arxiv.org/abs/1611.05431) (CVPR 2017)
7
8 # Reference implementations
9
10 - [TensorNets]
11 (https://github.com/taehoonlee/tensornets/blob/master/tensornets/resnets.py)
12 - [Torch ResNetV2]
13 (https://github.com/facebook/fb.resnet.torch/blob/master/models/preresnet.lua)
14
15 """
16 from __future__scip-python python python-stdlib 3.11 __future__/__init__: import absolute_importscip-python python python-stdlib 3.11 __future__/absolute_import.absolute_import.
17 from __future__scip-python python python-stdlib 3.11 __future__/__init__: import divisionscip-python python python-stdlib 3.11 __future__/division.division.
18 from __future__scip-python python python-stdlib 3.11 __future__/__init__: import print_functionscip-python python python-stdlib 3.11 __future__/print_function.print_function.
19
20 from . import imagenet_utilsscip-python python Keras_Applications 1.0.8 imagenet_utils/__init__:
21 from .imagenet_utilsscip-python python Keras_Applications 1.0.8 imagenet_utils/__init__: import decode_predictionsscip-python python Keras_Applications 1.0.8 `keras_applications.imagenet_utils`/decode_predictions().
22 from .resnet_commonscip-python python Keras_Applications 1.0.8 resnet_common/__init__: import ResNet50V2scip-python python Keras_Applications 1.0.8 `keras_applications.resnet_common`/ResNet50V2().
23 from .resnet_commonscip-python python Keras_Applications 1.0.8 resnet_common/__init__: import ResNet101V2scip-python python Keras_Applications 1.0.8 `keras_applications.resnet_common`/ResNet101V2().
24 from .resnet_commonscip-python python Keras_Applications 1.0.8 resnet_common/__init__: import ResNet152V2scip-python python Keras_Applications 1.0.8 `keras_applications.resnet_common`/ResNet152V2().
25
26
27 def preprocess_inputscip-python python Keras_Applications 1.0.8 `keras_applications.resnet_v2`/preprocess_input().(xscip-python python Keras_Applications 1.0.8 `keras_applications.resnet_v2`/preprocess_input().(x), **kwargsscip-python python Keras_Applications 1.0.8 `keras_applications.resnet_v2`/preprocess_input().(kwargs)):
28 """Preprocesses a numpy array encoding a batch of images.
29
30 # Arguments
31 x: a 4D numpy array consists of RGB values within [0, 255].
32 data_format: data format of the image tensor.
33
34 # Returns
35 Preprocessed array.
36 """
37 return imagenet_utilsscip-python python Keras_Applications 1.0.8 imagenet_utils/__init__:.preprocess_inputscip-python python Keras_Applications 1.0.8 `keras_applications.imagenet_utils`/preprocess_input().(xscip-python python Keras_Applications 1.0.8 `keras_applications.resnet_v2`/preprocess_input().(x), modescip-python python Keras_Applications 1.0.8 `keras_applications.imagenet_utils`/preprocess_input().(mode)='tf', **kwargsscip-python python Keras_Applications 1.0.8 `keras_applications.resnet_v2`/preprocess_input().(kwargs))