GithubHelp home page GithubHelp logo

Comments (6)

merrymercy avatar merrymercy commented on May 23, 2024

I did not tune the tile size for this workload. A possible quick fix can be adding these lines before this assertion.

if OW % VW != 0:
    while OW % VW != 0:
        VW //= 2
    if CO % (2 * VC) == 0:
        VC *= 2

OW is the output width of this conv layer, VW is the tile size on this dimension.

from tvm-mali.

kaishijeng avatar kaishijeng commented on May 23, 2024

Which file to change?

Thanks,

from tvm-mali.

merrymercy avatar merrymercy commented on May 23, 2024

Add before this line

File "build/bdist.linux-x86_64/egg/topi/mali/conv2d.py", line 184, in _decl_direct
assert OW % VW == 0, "OW: %d VW : %d" % (OW, VW)
AssertionError: OW: 22 VW : 4

from tvm-mali.

kaishijeng avatar kaishijeng commented on May 23, 2024

It works with your change. However, the performance of this model on firefly is not very good (0.75sec/frame on average). I can reproduce your data of Mobilenet on my firefly3399.
My main application is object detection and not able to find any object detection model which NNVM can support (missing operators in NNVM frontend). I am hoping that NNVM can support SSD-Mobilenet very soon.

Thanks,

from tvm-mali.

merrymercy avatar merrymercy commented on May 23, 2024

Thanks for your report. The performance may not be very good for all workloads.
Because currently I only tune for vgg, mobilenet, resnet on 224x224 imagenet images. For other workloads, you need re-tune parameters like tiling factor and unroll flag to get the best performance. I do not have plan to tune for your workloads manually in the near future. But an auto-tuner for tvm is on the plan. Once the auto-tuner is released, we can try it for your task.

from tvm-mali.

kaishijeng avatar kaishijeng commented on May 23, 2024

Thanks

from tvm-mali.

Related Issues (8)

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.