Giter Site home page Giter Site logo

Comments (3)

kanezaki avatar kanezaki commented on July 21, 2024

This is not a bug. “self.bn0” is a batch normalization layer for each convolutional layer component in a standard use case. It still works even if you disable them. “self.bn1” is the batch normalization layer that I particularly mentioned in my paper, which is mandatory for the proposed method. (It is actually uncommon to insert a batch normalization layer after the final classification layer, though.) Thanks!

from pytorch-unsupervised-segmentation.

kktsubota avatar kktsubota commented on July 21, 2024

Thank you for your reply.

I can solve the question thanks to you.
What I meant is that self.bn0 is used twice when args.nConv == 2 and it seems to be weird. In a standard case, each layer is constructed for each use case (an example of a standard use case is here). So, in this case, I think constructing self.bn2 like self.bn0 and using self.bn2 instead of self.bn0 in L61 is usual. I thought this works unexpectedly but I confirmed this also works well.

I have another question.
When args.nConv > 2 is used, this code uses self.conv2 more than one time. This means the weight of self.conv2 is shared for all the Component in Feature Extractor. (Component and Feature Extractor comes from fig. 1 in your paper.) In usual case, I think each conv layer should have its own weight.
So I want to confirm whether this is your intent or not.

from pytorch-unsupervised-segmentation.

kanezaki avatar kanezaki commented on July 21, 2024

Oh, I got what you meant. You're right, I didn't intend to share the weights among different conv layers. I fixed the code and now it seems it's working perfect. Please check it out if you have time. Thanks!!

from pytorch-unsupervised-segmentation.

Related Issues (12)

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.