Giter Site home page Giter Site logo

Comments (7)

REFunction avatar REFunction commented on August 28, 2024

What is mIoU when you say "normal"?
I am training

from bisenet.

REFunction avatar REFunction commented on August 28, 2024

I have got 0.38 mIoU

from bisenet.

YuGuii avatar YuGuii commented on August 28, 2024

What is mIoU when you say "normal"?
I am training

0.56 miou

from bisenet.

REFunction avatar REFunction commented on August 28, 2024

What is mIoU when you say "normal"?
I am training

0.56 miou

Did you change any hyper-parameters? Or just keep them original?

from bisenet.

YuGuii avatar YuGuii commented on August 28, 2024

What is mIoU when you say "normal"?
I am training

0.56 miou

Did you change any hyper-parameters? Or just keep them original?

Below is my hyperparameter settings:

if __name__ == '__main__':
    params = [
        '--num_epochs', '300',
        '--data', 'data/CamVid',
        '--learning_rate', '0.001',
        '--num_classes', '32',
        '--num_workers', '6', 
        '--batch_size', '4',
        '--crop_height', '640',
        '--crop_width', '640',
        '--checkpoint_step', '5',
        '--context_path', 'resnet34'
    ]

I use the resnet34 as my Basemodel and add Kaiming initialization,

for example:

class Spatial_path(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.convblock1 = ConvBlock(in_channels=3, out_channels=64)
        self.convblock2 = ConvBlock(in_channels=64, out_channels=128)
        self.convblock3 = ConvBlock(in_channels=128, out_channels=256)
        self.init_weight()

    def forward(self, input):
        x = self.convblock1(input)
        x = self.convblock2(x)
        x = self.convblock3(x)
        return x
    
    def init_weight(self):
        for ly in self.children():
            if isinstance(ly, nn.Conv2d):
                nn.init.kaiming_normal_(ly.weight, a=1)
                if not ly.bias is None: nn.init.constant_(ly.bias, 0)    

The settings of other modules are the same as this one.
I am not sure if these operations will help you.

from bisenet.

REFunction avatar REFunction commented on August 28, 2024

What is mIoU when you say "normal"?
I am training

0.56 miou

Did you change any hyper-parameters? Or just keep them original?

Below is my hyperparameter settings:

if __name__ == '__main__':
    params = [
        '--num_epochs', '300',
        '--data', 'data/CamVid',
        '--learning_rate', '0.001',
        '--num_classes', '32',
        '--num_workers', '6', 
        '--batch_size', '4',
        '--crop_height', '640',
        '--crop_width', '640',
        '--checkpoint_step', '5',
        '--context_path', 'resnet34'
    ]

I use the resnet34 as my Basemodel and add Kaiming initialization,

for example:

class Spatial_path(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.convblock1 = ConvBlock(in_channels=3, out_channels=64)
        self.convblock2 = ConvBlock(in_channels=64, out_channels=128)
        self.convblock3 = ConvBlock(in_channels=128, out_channels=256)
        self.init_weight()

    def forward(self, input):
        x = self.convblock1(input)
        x = self.convblock2(x)
        x = self.convblock3(x)
        return x
    
    def init_weight(self):
        for ly in self.children():
            if isinstance(ly, nn.Conv2d):
                nn.init.kaiming_normal_(ly.weight, a=1)
                if not ly.bias is None: nn.init.constant_(ly.bias, 0)    

The settings of other modules are the same as this one.
I am not sure if these operations will help you.

Thank you for your help. I would like to have a try.

from bisenet.

kjjeong78 avatar kjjeong78 commented on August 28, 2024

I have got a similar result on the main page.
However, my mIoU is 0.366. ;)

from bisenet.

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.