https://github.com/tchaton/coordconv-keras
CoordConv Solution from Uber - Keras Implementation
https://github.com/tchaton/coordconv-keras
Last synced: over 1 year ago
JSON representation
CoordConv Solution from Uber - Keras Implementation
- Host: GitHub
- URL: https://github.com/tchaton/coordconv-keras
- Owner: tchaton
- Created: 2018-07-16T08:40:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-16T10:58:33.000Z (almost 8 years ago)
- Last Synced: 2025-01-21T03:24:56.167Z (over 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CoordConv for Keras
Keras implementation of CoordConv from the paper [An intriguing failing of convolutional neural networks and the CoordConv solution](https://arxiv.org/abs/1807.03247).
Extends the `CoordinateChannel` concatenation from only 2D rank (images) to 1D (text / time series) and 3D tensors (video / voxels).
# Usage
Import `coord.py` and call the layer CoordConv2DLayer
```python
from coord import CoordConv2d
# prior to first conv
ip = Input(shape=(64, 64, 2))
x = CoordConv2d()(ip)
...
x = CoordConv2d(with_r=True)(x)
```
Import `coordT.py` and call the layer CoordConv2DTranspose
```python
from coord import CoordConv2DTranspose
# prior to first conv
ip = Input(shape=(64, 64, 2))
x = CoordConv2DTranspose()(ip)
...
x = CoordConv2DTranspose(with_r=True)(x)
```
# Refers
Other Keras implementation : https://github.com/titu1994/keras-coordconv/blob/master/README.md
Pytorch Implementation : https://github.com/mkocabas/CoordConv-pytorch
# Requirements
- Keras 2.2.0+
- Either Tensorflow, Theano or CNTK backend.
- Matplotlib (to plot images only)