Giter Club home page Giter Club logo

Comments (5)

yaoqi-zd avatar yaoqi-zd commented on July 24, 2024

meet the same problem

02 19:49:05 WRN Unexpected key(s) in state_dict: heads.0.conv_3x3.conv.weight, heads.0.conv_3x3.bn.bias, heads.1.conv_3x3.bn.num_batches_tracked, heads.0.conv_3x3.bn.num_batches_tracked, heads.0.conv_1x1.bias, heads.0.conv_3x3.bn.running_var, heads.1.conv_1x1.bias, heads.1.conv_3x3.bn.weight, heads.1.conv_3x3.conv.weight, heads.1.conv_1x1.weight, heads.0.conv_3x3.bn.running_mean, heads.1.conv_3x3.bn.running_mean, heads.0.conv_3x3.bn.weight, heads.1.conv_3x3.bn.running_var, heads.1.conv_3x3.bn.bias, heads.0.conv_1x1.weight

have you solved it ?

from torchseg.

xyiyy avatar xyiyy commented on July 24, 2024

@yaoqi-zd

        if is_training:
            heads = [BiSeNetHead(conv_channel, out_planes, 2, # 16
                                 True, norm_layer),
                     BiSeNetHead(conv_channel, out_planes, 1,  # 8 
                                 True, norm_layer),
                     BiSeNetHead(conv_channel * 2, out_planes, 1, # 8
                                 False, norm_layer)]
        else:
            heads = [None, None,
                     BiSeNetHead(conv_channel * 2, out_planes, 1, # 8
                                 False, norm_layer)]

The author removes two auxiliary heads in evaluation.

from torchseg.

yaoqi-zd avatar yaoqi-zd commented on July 24, 2024

@xyiyy Thanks a lot!

from torchseg.

Jingchensun avatar Jingchensun commented on July 24, 2024

@ycszen
When I run the train.py from cityscapes.bisenet.R18.speed, the following tip appears:

WRN Missing key(s) in state_dict: layer3.0.bn1.num_batches_tracked, layer1.1.bn1.num_batches_tracked, layer2.1.bn2.num_batches_tracked, layer1.1.bn2.num_batches_tracked, layer1.0.bn1.num_batches_tracked, layer2.0.downsample.1.num_batches_tracked, layer3.1.bn2.num_batches_tracked, layer3.1.bn1.num_batches_tracked, layer3.0.downsample.1.num_batches_tracked, layer2.0.bn1.num_batches_tracked, layer2.0.bn2.num_batches_tracked, layer4.0.bn1.num_batches_tracked, layer4.0.bn2.num_batches_tracked, bn1.num_batches_tracked, layer4.1.bn2.num_batches_tracked, layer4.1.bn1.num_batches_tracked, layer1.0.bn2.num_batches_tracked, layer3.0.bn2.num_batches_tracked, layer4.0.downsample.1.num_batches_tracked, layer2.1.bn1.num_batches_tracked

How should I deal with this problem?

i get the same problem as you

from torchseg.

ycszen avatar ycszen commented on July 24, 2024

This is a log for loading checkpoint.
The new version of PyTorch adds num_batches_tracked parameters in the batch normalization function, which is not contained before.
Therefore, it outputs this log. However, this didn't affect the training performance.

from torchseg.

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.