resnet9
ResNet9
¶
A small 9-layer ResNet Tensorflow model for cifar10 image classification. The model architecture is from https://github.com/davidcpage/cifar10-fast
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_size |
Tuple[int, int, int]
|
The size of the input tensor (height, width, channels). |
(32, 32, 3)
|
classes |
int
|
The number of outputs the model should generate. |
10
|
Raises:
Type | Description |
---|---|
ValueError
|
Length of |
ValueError
|
|
Returns:
Type | Description |
---|---|
Model
|
A TensorFlow ResNet9 model. |
Source code in fastestimator/fastestimator/architecture/tensorflow/resnet9.py
residual
¶
A ResNet unit for ResNet9.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
Tensor
|
Input Keras tensor. |
required |
num_channel |
int
|
The number of layer channel. |
required |
Return
Output Keras tensor.