Giter Club home page Giter Club logo

Comments (9)

owulveryck avatar owulveryck commented on July 22, 2024

Maybe related: PR 274 from Gorgonia (from @lynic)

from onnx-go.

chewxy avatar chewxy commented on July 22, 2024

Does yolo use overlapping pooling? i.e. maxpool with a stride of other than size

from onnx-go.

owulveryck avatar owulveryck commented on July 22, 2024

@chewxy the stride of the operator is [1 1] (the third column)

from onnx-go.

owulveryck avatar owulveryck commented on July 22, 2024

I think I got it; the ONNX spec specifies that a ceil_mode attribute can change the behavior of the shape calculus:

ceil_mode : int (default is 0)
Whether to use ceil or floor (default) to compute the output shape.

The calcShape method in Gorgonia does not take this into account; the shape calculation is probably different than what onnx expects.

I will do different tests, but If this is the case, I will have to find a smart solution to implement this without breaking Gorgonia's API 🧐

from onnx-go.

owulveryck avatar owulveryck commented on July 22, 2024

I did not notice that the implementation of the SAME_UPPER was breaking the unit tests of gorgonnx:

--- FAIL: TestONNX (0.04s)
    --- FAIL: TestONNX/TestMaxpool2dSameUpper (0.00s)
        test_structure.go:78:
                Error Trace:    test_structure.go:135
                Error:          Max difference between 1.7640524 and 0.978738 allowed is 1e-06, but difference was 0.7853143811225891
                Messages:       the two tensors should be equal.
    --- FAIL: TestONNX/TestMaxpool2dPrecomputedSameUpper (0.00s)
        test_structure.go:78:
                Error Trace:    test_structure.go:135
                Error:          Max difference between 1 and 7 allowed is 1e-06, but difference was -6
                Messages:       the two tensors should be equal.
FAIL

Let's fix this before going further.

from onnx-go.

owulveryck avatar owulveryck commented on July 22, 2024

Probably related to ONNX issue #1113

from onnx-go.

owulveryck avatar owulveryck commented on July 22, 2024

The problem linked to #74 and because the padding is asymmetric;
this is not implemented in Gorgonia.

from onnx-go.

owulveryck avatar owulveryck commented on July 22, 2024

Should be fixed with PR #80 and PR #295 from Gorgonia

from onnx-go.

owulveryck avatar owulveryck commented on July 22, 2024

Tiny yolo v2 is working, let's make it fast now!

from onnx-go.

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.