Git Product home page Git Product logo

Comments (1)

rocksyne avatar rocksyne commented on August 16, 2024

@LiShuiYu There is no significance. It is solely dependent the library. For example, if you use tensor-flow, this is the method implementation of conv3d

tf.nn.conv3d(
    input,
    filter,
    strides,
    padding,
    data_format='NDHWC',
    dilations=[1, 1, 1, 1, 1],
    name=None
)

The shape of the input parameter must be [batch, in_depth, in_height, in_width, input_channels]
REF: https://www.tensorflow.org/api_docs/python/tf/nn/conv3d

However, if you are using theano, the order will be different. It will be (batch size, input_channels, input depth, input rows, input columns)
Ref: http://deeplearning.net/software/theano/library/tensor/nnet/conv.html#theano.tensor.nnet.conv3d

So there is no significance in the order. The order is different based on how the library wants you to inpu the sequence of parameters.

Therefore, if you use Keras, you will have to check what backend you are using ( either TF or Theano) else you will run into a lot of trouble. In the Keras Conv3D method, there is a parameter called the data_format. You have to set this parameter to either channel value appears first or last.

keras.layers.Conv3D(filters, kernel_size, strides=(1, 1, 1), padding='valid', data_format=None, dilation_rate=(1, 1, 1), activation=None, use_bias=True, kernel_initializer='glorot_uniform', bias_initializer='zeros', kernel_regularizer=None, bias_regularizer=None, activity_regularizer=None, kernel_constraint=None, bias_constraint=None)

The details of this are found here in the Keras documentation: https://keras.io/layers/convolutional/

I hope this clears any confusion. Cheers!

from c3d-tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.