This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Clean and simple Keras implementation of network architectures described in: | |
| - (ResNet-50) [Deep Residual Learning for Image Recognition](https://arxiv.org/pdf/1512.03385.pdf). | |
| - (ResNeXt-50 32x4d) [Aggregated Residual Transformations for Deep Neural Networks](https://arxiv.org/pdf/1611.05431.pdf). | |
| Python 3. | |
| """ | |
| from keras import layers | |
| from keras import models |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import keras.backend as kb | |
| from keras.layers import Layer | |
| def _kb_linspace(num): | |
| num = kb.cast(num, kb.floatx()) | |
| return kb.arange(0, num, dtype=kb.floatx()) / (num - 1) | |
| def _kb_grid_coords(width, height): | |
| w, h = width, height | |
OlderNewer