zoo/unet/unet_c.py
def contracting(self, x, **metaparameters):
        """ Construct Contracting Path (leftside)
            x      : input tensor to contracting path
            groups : contracting path groups
        """
        groups = metaparameters['groups']

        # Add each group on contracting path
        e_groups = [] # construct expansive groups
        for group in groups:
            n_filters = group['n_filters']
            crop      = group['crop']
            x, f = self.contract_group(x, n_filters, crop)
            # add parameters for corresponding expansive group
            e_groups.insert( 0, { 'n_filters': n_filters, 'fmap': f } )

        # Output from contracting path
        # Double the number of filters from the last path
        x = self.Conv2D(x, n_filters*2, (3, 3), strides=1, padding='valid')

        return x, e_groups
 Construct Contracting Path (leftside)
            x      : input tensor to contracting path
            groups : contracting path groups
        
Construct Contracting Path (leftside)
x      : input tensor to contracting path
groups : contracting path groups
Construct Contracting Path ( leftside ) x : input tensor to contracting path groups : contracting path groups
def contracting(self, x, **metaparameters):
        groups = metaparameters['groups']
        e_groups = [] 
        for group in groups:
            n_filters = group['n_filters']
            crop      = group['crop']
            x, f = self.contract_group(x, n_filters, crop)
            e_groups.insert( 0, { 'n_filters': n_filters, 'fmap': f } )
        x = self.Conv2D(x, n_filters*2, (3, 3), strides=1, padding='valid')
        return x, e_groups
def contracting ( self , x , ** metaparameters ) : groups = metaparameters [ 'groups' ] e_groups = [ ] for group in groups : n_filters = group [ 'n_filters' ] crop = group [ 'crop' ] x , f = self . contract_group ( x , n_filters , crop ) e_groups . insert ( 0 , { 'n_filters' : n_filters , 'fmap' : f } ) x = self . Conv2D ( x , n_filters * 2 , ( 3 , 3 ) , strides = 1 , padding = 'valid' ) return x , e_groups
Construct Contracting Path (leftside)
x      : input tensor to contracting path
groups : contracting path groups
Construct Contracting Path ( leftside ) x : input tensor to contracting path groups : contracting path groups
""" Construct Contracting Path (leftside)
            x      : input tensor to contracting path
            groups : contracting path groups
        """ # Add each group on contracting path # construct expansive groups # add parameters for corresponding expansive group # Output from contracting path # Double the number of filters from the last path
self
x