GithubHelp home page GithubHelp logo

SpeedUp with microsoft/nni about yolort HOT 3 OPEN

zhiqwang avatar zhiqwang commented on June 5, 2024
SpeedUp with microsoft/nni

from yolort.

Comments (3)

chandan-wiai avatar chandan-wiai commented on June 5, 2024 2

Taking the discussion forward from here.

Does this mean, I can take my checkpoint trained on yolort.models.YOLOv5 and load as shown above, and that model object won't have 'transform' module?

Hi @chandan-wiai , I guess not in this scenario. There are no parameters or buffers in YOLOTransform modules, it should be easy theoretically. Maybe we should build the model as following from this api:

from yolort.models.yolo import yolov5_darknet_pan_s_r60  # aka yolov5s

model = yolov5_darknet_pan_s_r60()  # we do not specify pretrained=True, i.e. do not load default weights
model.load_state_dict(torch.load('checkpoint_from_yolort.pt'))
model.eval()

We can also discuss this ticket at #484 so as not to disturb more people for questions not related to nni.

Got it. Basically directly doing this step. I think this should help. Thanks.

from yolort.

chandan-wiai avatar chandan-wiai commented on June 5, 2024

BTW @zhiqwang , why return a nested tensor as it is done here because I don't see samples.image_sizes being used anywhere?

from yolort.

zhiqwang avatar zhiqwang commented on June 5, 2024

Hi @chandan-wiai , NestedTensor can be removed I guess, I didn't do it because I'm working on other projects now. See #471 for more details, and contributions are welcome here.

from yolort.

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.