Giter Club home page Giter Club logo

residual-attention-network's People

Contributors

deontaepharr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

residual-attention-network's Issues

Ordering of layers in Residual Unit

The original Resnet paper states that

We adopt batch-normalization (BN) [16] right after each convolution and
before activation

But in your implementation (in the residual unit function) the ordering seems to be different.

 # Layer 1
        batch_norm_op_1 = BatchNormalization()(residual_input_data)
        activation_op_1 = Activation('relu')(batch_norm_op_1)
        conv_op_1 = Conv2D(filters=filter1,
                         kernel_size=(1,1),
                         strides=(1,1),
                         padding='same')(activation_op_1)

Great implementation though. Very readable ๐Ÿ‘

build_model(): AttributeError: 'int' object has no attribute 'value'

Thank you for sharing this repository! While recompiling the notebook Residual Attention Network Implementation - Cats vs Dogs Example.ipynb , I got an error in line model = ResidualAttentionNetwork((IMAGE_WIDTH, IMAGE_HEIGHT, IMAGE_CHANNELS), 1, activation='sigmoid').build_model() : AttributeError: 'int' object has no attribute 'value'. You have build_model() function in class ResidualAttentionNetwork (Code/ResidualAttentionNetwork.py) and I do not understand why I got this error. Have you ever encountered such an error?

Issue with running ResidualAttentionNetwork.py

Hey! There seems to be some issue with the code here:

Element-wise Addition

    if identity_x.shape[-1].value != conv_op_3.shape[-1].value:
        filter_n = conv_op_3.shape[-1].value

I tried replacing this with the updated set of code but it shows same error:

Element-wise Addition

    if identity_x.shape.as_list()[-1] != conv_op_3.shape.as_list()[-1]:
        filter_n = conv_op_3.shape.as_list()[-1]

Downgarding tensorflow again effects the other modules and creates issue while implementation. Please help !

TIA

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.