All Projects → walsvid → Coordconv

walsvid / Coordconv

Licence: mit
Pytorch implementation of "An intriguing failing of convolutional neural networks and the CoordConv solution" - https://arxiv.org/abs/1807.03247

Projects that are alternatives of or similar to Coordconv

Dsp Theory
Theory of digital signal processing (DSP): signals, filtration (IIR, FIR, CIC, MAF), transforms (FFT, DFT, Hilbert, Z-transform) etc.
Stars: ✭ 437 (+506.94%)
Mutual labels:  jupyter-notebook, convolution
Yann
This toolbox is support material for the book on CNN (http://www.convolution.network).
Stars: ✭ 41 (-43.06%)
Mutual labels:  jupyter-notebook, convolution
Anomaly detection
This is a times series anomaly detection algorithm, implemented in Python, for catching multiple anomalies. It uses a moving average with an extreme student deviate (ESD) test to detect anomalous points.
Stars: ✭ 50 (-30.56%)
Mutual labels:  jupyter-notebook, convolution
Big Data Engineering Coursera Yandex
Big Data for Data Engineers Coursera Specialization from Yandex
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Cs231n
My Solution to Assignments of CS231n in Winter2016
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Smart On Fhir.github.io
SMART on FHIR Docs
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
3d Shapes
This repository contains the 3D shapes dataset, used in Kim, Hyunjik and Mnih, Andriy. "Disentangling by Factorising." In Proceedings of the 35th International Conference on Machine Learning (ICML). 2018. to assess the disentanglement properties of unsupervised learning methods.
Stars: ✭ 72 (+0%)
Mutual labels:  jupyter-notebook
Hadron Collider Machine Learning
Materials for "Addressing Large Hadron Collider Challenges by Machine Learning" Coursera MOOC
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Hacktoberfest2020
Contribute for hacktoberfest 2020
Stars: ✭ 72 (+0%)
Mutual labels:  jupyter-notebook
Prml notes
该项目是关于机器学习经典书籍《Pattern Recognition and Machine Learning》的学习笔记,我用python实现了书中的一些实例,希望帮助感兴趣的人更好的理解
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Mlhep2016
Machine Learning in High Energy Physics 2016
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Advanced Lane Detection
An advanced lane-finding algorithm using distortion correction, image rectification, color transforms, and gradient thresholding.
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Cbe30338
Chemical Process Control
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Deep Learning Map
Map of deep learning and notes from papers.
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Ge tutorials
Learn how to add data validation and documentation to a data pipeline built with dbt and Airflow.
Stars: ✭ 72 (+0%)
Mutual labels:  jupyter-notebook
Srgan Keras
Implementation of SRGAN in Keras. Try at: www.fixmyphoto.ai
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Attack Datasources
This content is analysis and research of the data sources currently listed in ATT&CK.
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Ag Ve Bilgi Guvenligi Ders Notlari
Ağ ve Bilgi Güvenliği; Linux & Temel Komutlar, Python, Risk Analizi, Kriptoloji, Stenografi, Zararlı Kod Analizi, Sızma Testi, Pasif Bilgi Toplama, Pasif Bilgi Toplama, Ağ Güvenliği, Zaafiyet Keşfi, Zararlı Kod Oluşturma Yöntemleri, Dijital Adli Analiz, Web Güvenliği, Sosyal Mühendislik Saldırıları, Mobil Sistem Güvenliği konularında sunum ve uygulamaların olduğu ağ ve bilgi güvenliği ders sayfası.
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Mlatimperial2017
Materials for the course of machine learning at Imperial College organized by Yandex SDA
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook
Static resources
Stars: ✭ 71 (-1.39%)
Mutual labels:  jupyter-notebook

CoordConv

Pytorch implementation of CoordConv for N-D ConvLayers, and the experiments.

Reference from the paper: An intriguing failing of convolutional neural networks and the CoordConv solution

Extends the CoordinateChannel concatenation from 2D to 1D and 3D tensors.

Requirements

  • pytorch 0.4.0
  • torchvision 0.2.1
  • torchsummary 1.3
  • sklearn 0.19.1

Usage

from coordconv import CoordConv1d, CoordConv2d, CoordConv3d

class Net(nn.Module):
    def __init__(self):
        super(Net, self).__init__()
        self.coordconv = CoordConv2d(2, 32, 1, with_r=True)
        self.conv1 = nn.Conv2d(32, 64, 1)
        self.conv2 = nn.Conv2d(64, 64, 1)
        self.conv3 = nn.Conv2d(64,  1, 1)
        self.conv4 = nn.Conv2d( 1,  1, 1)

    def forward(self, x):
        x = self.coordconv(x)
        x = F.relu(self.conv1(x))
        x = F.relu(self.conv2(x))
        x = F.relu(self.conv3(x))
        x = self.conv4(x)
        x = x.view(-1, 64*64)
        return x

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
net = Net().to(device)

Experiments

Implement experiments from origin paper.

Coordinate Classification

Use experiments/generate_data.py to generate Uniform and Quadrant datasets for Coordinate Classification task.

Use experiments/train_and_test.py to train and test neural network model.

Uniform Datasets

Train Test Predictions

Quadrant Datasets

Train Test Predictions
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].