An open API service indexing awesome lists of open source software.

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

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)