GithubHelp home page GithubHelp logo

Comments (4)

kazuto1011 avatar kazuto1011 commented on May 20, 2024 1

Thank you for suggesting the revision. As far as I can see the last snippet, I think the issue is related to the improved ASPP module in the v3+ rather than the non-biased conv in ResNet. The yielding of the ResNet part is done in the "1x" scope without causing the NoneType error. The script train.py is made just for parsing and training the params in the v2 model. The reported error is due to the fact that the v3+ ASPP does not have biasses, while the v2 one has them.
Anyway, I think we need more strict modification for adapting it to v3/v3+, e.g., batch norms should also be observed/trained. I'm sorry but this codebase does not assume the v3/v3+ training now.

from deeplab-pytorch.

SunnerLi avatar SunnerLi commented on May 20, 2024

I think you are right!
However, I hope that the the training part of v3/v3+ can be bare soon
Very thanks for your contribution!

from deeplab-pytorch.

Ericargus avatar Ericargus commented on May 20, 2024

class _ConvBatchNormReLU(nn.Sequential):
def init(
self,
in_channels,
out_channels,
kernel_size,
stride,
padding,
dilation,
relu=True,
):
super(_ConvBatchNormReLU, self).init()
self.add_module(
"conv",
nn.Conv2d(
in_channels=in_channels,
out_channels=out_channels,
kernel_size=kernel_size,
stride=stride,
padding=padding,
dilation=dilation,
bias=False,
),
)
###
I think the problem is in you _ConvBatchNormReLU function, because you set conv's bias to be False

from deeplab-pytorch.

kazuto1011 avatar kazuto1011 commented on May 20, 2024

Do you mean the _ConvBatchNormReLU in v3+ ASPP? I have mentioned above:

The reported error is due to the fact that the v3+ ASPP does not have biasses, while the v2 one has them.

The non-biased conv is from the official implementation. And the init part is just for v2 here.

from deeplab-pytorch.

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.