Giter Site home page Giter Site logo

Comments (3)

shiyutang avatar shiyutang commented on July 3, 2024

the training process with different learning rate setting is shown below:
image

from mcd_da.

Lufei-github avatar Lufei-github commented on July 3, 2024

看你有跑通这篇代码,所以想请教你个问题!我是python2.7,pytorch1.0跑的segmentation的代码!

看到有报这个错误,RuntimeError: cuda runtime error (59) : device-side assert triggered at ...

网上说是计算损失的时候label不是从0开始的,pytorch必须是(0,n-1)的label才不会报错,然后这篇论文在设置label的时候,类别个数设置为20,有一个类别作者说是背景。但是我现在想,我的这个报错会不会与作者设置的20个label有关!
请问你在跑这篇代码的时候有遇到这个问题吗?

或者你知道这是哪里出错了吗?多有打扰,期待你的答复!!!

from mcd_da.

happyzhouch avatar happyzhouch commented on July 3, 2024

看你有跑通这篇代码,所以想请教你个问题!我是python2.7,pytorch1.0跑的segmentation的代码!

看到有报这个错误,RuntimeError: cuda runtime error (59) : device-side assert triggered at ...

网上说是计算损失的时候label不是从0开始的,pytorch必须是(0,n-1)的label才不会报错,然后这篇论文在设置label的时候,类别个数设置为20,有一个类别作者说是背景。但是我现在想,我的这个报错会不会与作者设置的20个label有关!
请问你在跑这篇代码的时候有遇到这个问题吗?

或者你知道这是哪里出错了吗?多有打扰,期待你的答复!!!

你好,我对作者关于这两个数据"synthia", "city16"设置的16个类别这里有疑问, 0-15是15个实际的类别,255是背景,那在代码里args.n_class就等于16, 那么这句话: weight[args.n_class - 1] = 0 # Ignore background loss, 其实是将标签为15 的类别的weight设为0了,而不是将背景weight设为0的啊?

from mcd_da.

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.