Giter VIP home page Giter VIP logo

tensorflow's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @VeeranjaneyuluToka
  • ๐Ÿ‘€ Iโ€™m interested in Computer Vision, Machine Learning and mathematics
  • ๐ŸŒฑ Iโ€™m currently learning recent techniques in Object Detection and tracking
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on discussing different ML algos and mathematical derivation.
  • ๐Ÿ“ซ Reach me on [email protected]

tensorflow's People

Watchers

 avatar  avatar

tensorflow's Issues

Encoder (Dense connection without flatten) & Decoder input does not have reshape

@VeeranjaneyuluToka

Please let me know if my understanding is correct here or not?

Encoder - Dense connection without Flatten

class ConvAutoEncoder(HyperModel):
    def __init__(self, input_shape, is_deeper=False):
--snip--
    """ encoder """
    def encoder(self, input_img, hp):

        conv1 = tf.keras.layers.Conv2D(32, (3, 3), activation='relu', padding='same')(input_img) #224 x 224 x 32
        conv1 = tf.keras.layers.BatchNormalization()(conv1)
        conv1 = tf.keras.layers.Conv2D(32, (3, 3), activation='relu', padding='same')(conv1)
--snip--
        conv6 = tf.keras.layers.Conv2D(512, (3, 3), activation='relu', padding='same')(conv5)
        conv6 = tf.keras.layers.BatchNormalization()(conv6)
        conv6 = tf.keras.layers.Conv2D(512, (3, 3), activation='relu', padding='same')(conv6)
        conv6 = tf.keras.layers.BatchNormalization()(conv6)

        # Comment (asinha) : conv6 output would be (14,14,512)
        # However, we do not flatten this before building a dense below this
        # would this be correct?

        dense = tf.keras.layers.Dense(16, activation='relu', name='encoder')(conv6)

Decoder : Input does not reshape the encoded input before applying a Conv layer

class ConvAutoEncoder(HyperModel):
    def __init__(self, input_shape, is_deeper=False):
--snip--
    """ decoder """
    def decoder(self, dense, hp):

        # Comment (asinha) : If we are getting a dense input, which I am believing a vector if 16 (as 
        # per last layer at encoder), needs to be reshaped before we apply a CONV2D(256)
        # Also I do not understand why do we have #56x56x128 added ahead of conv5?

        conv5 = tf.keras.layers.Conv2D(256, (3, 3), activation='relu', padding='same')(dense) #56 x 56 x 128
        conv5 = tf.keras.layers.BatchNormalization()(conv5)
        conv5 = tf.keras.layers.Conv2D(256, (3, 3), activation='relu', padding='same')(conv5)
        conv5 = tf.keras.layers.BatchNormalization()(conv5)

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.