Git Product home page Git Product logo

Comments (8)

cumtcsys avatar cumtcsys commented on May 21, 2024 7

I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.

from yolo_v3_tutorial_from_scratch.

pypeaday avatar pypeaday commented on May 21, 2024 2

@ayooshkathuria can you please update the blog and close this issue? The code base and tutorial both have grid_size = inp_dim//stride which leads to the error mentioned in this issue.

from yolo_v3_tutorial_from_scratch.

ghostPath avatar ghostPath commented on May 21, 2024 1

I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.

I konw why. Thx

Hi @ghostPath , I got the different result as well.
Would you mind to share your insight ?

我觉得是因为权重是随机初始化的?

from yolo_v3_tutorial_from_scratch.

ghostPath avatar ghostPath commented on May 21, 2024

I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.

but the result I got is different with the blog

wx20181025-231310 2x

from yolo_v3_tutorial_from_scratch.

ghostPath avatar ghostPath commented on May 21, 2024

I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.

I konw why. Thx

from yolo_v3_tutorial_from_scratch.

allenwu5 avatar allenwu5 commented on May 21, 2024

I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.

I konw why. Thx

Hi @ghostPath , I got the different result as well.
Would you mind to share your insight ?

from yolo_v3_tutorial_from_scratch.

allenwu5 avatar allenwu5 commented on May 21, 2024

I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.

I konw why. Thx

Hi @ghostPath , I got the different result as well.
Would you mind to share your insight ?

我觉得是因为权重是随机初始化的?

Thank you @ghostPath .
I think you're right.
I just found related paragraph:

At this point, our network has random weights, and will not produce the correct output. We need to load a weight file in our network. We'll be making use of the official weight file for this purpose.

from yolo_v3_tutorial_from_scratch.

feng3245 avatar feng3245 commented on May 21, 2024

I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.

but the result I got is different with the blog

wx20181025-231310 2x

It's just random weights. It's expected to be random and different

from yolo_v3_tutorial_from_scratch.

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.