Skip to content

Instantly share code, notes, and snippets.

View Vishruit's full-sized avatar

Vishruit Kulshreshtha Vishruit

  • IITM
  • India
View GitHub Profile
@indraforyou
indraforyou / backend_updated.py
Created November 21, 2016 00:46
Keras 3d Deconvolution
from keras.backend import *
from keras.backend.tensorflow_backend import _preprocess_conv3d_input, _preprocess_conv3d_kernel, _preprocess_border_mode, _postprocess_conv3d_output
def _preprocess_deconv3d_output_shape(shape, dim_ordering):
if dim_ordering == 'th':
shape = (shape[0], shape[2], shape[3], shape[4], shape[1])
return shape
def deconv3d(x, kernel, output_shape, strides=(1, 1, 1),
border_mode='valid',