Code Monkey home page Code Monkey logo

Comments (5)

gaojie0105 avatar gaojie0105 commented on June 13, 2024

darknet: l.delta[obj_index] = 0 - l.output[obj_index];
caffe-yolo9000: diff[index + 4] = -1 * noobject_scale_ * (0 - swap_data[index + 4]) * (swap_data[index + 4]) * (1 - swap_data[index + 4]);
按我理解,这部分是是否是前景的loss,这个loss就是L2 loss,求导应该是它本身才对,就像darknet一样,不明白为什么你的偏导会这么复杂,希望得到你的帮助,谢谢

from caffe-yolo9000.

choasup avatar choasup commented on June 13, 2024

caffe-yolo9000: diff[index + 4] = -1 * noobject_scale_ * (0 - swap_data[index + 4]) * (swap_data[index + 4]) * (1 - swap_data[index + 4]);

due to
p(obj) = sigmoid(swap_data[index + 4])

from caffe-yolo9000.

gaojie0105 avatar gaojie0105 commented on June 13, 2024

哦,后面两项时sigmoid的导数,谢谢。
//if (iter < 12800 / bottom[0]->num()){
// vector truth;
// truth.clear();
// truth.push_back((i + .5) / side_); //center of i,j
// truth.push_back((j + .5) / side_);
// truth.push_back((biases_[2 * n]) / side_); //anchor boxes
// truth.push_back((biases_[2 * n + 1]) / side_);
// delta_region_box(truth, swap_data, biases_, n, index, i, j, side_, side_, diff, .01);
//}
再请教个问题,这部分代码是什么意思,darknet是有求delta_region_box,delta_region_class的。

from caffe-yolo9000.

choasup avatar choasup commented on June 13, 2024

just like warm-up ... you can refer to darknet.

from caffe-yolo9000.

gaojie0105 avatar gaojie0105 commented on June 13, 2024

明白了,谢谢

from caffe-yolo9000.

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.