GithubHelp home page GithubHelp logo

Inference code about lanedet HOT 8 CLOSED

turoad avatar turoad commented on July 22, 2024
Inference code

from lanedet.

Comments (8)

Turoad avatar Turoad commented on July 22, 2024

Thank for your interest.

What is you need in the inference code, e.g., do visualization?
Currently, we support visualization in validate phase by adding --view.

As for MoblieNet, We haven't tested it. We will consider testing it and updating the configs. It may have faster inference speed but relatively low accuracy.

from lanedet.

cf206cd avatar cf206cd commented on July 22, 2024

Well, not only visualization, some (including me) may need to deploy it on some embedding devices, so maybe we can implement a class to do inference without complicated config and data loader?

from lanedet.

Turoad avatar Turoad commented on July 22, 2024

OK, I will consider add the inference code. The config cannot be removed. We need the config to define network, preprocess or others.

from lanedet.

cf206cd avatar cf206cd commented on July 22, 2024

And maybe another advice... It would be better if you can change the input of the model to be only images just like mmdetection. It seems to be a batch with both images and labels now and it`s not convenient for inference. Thank you for your good job!

from lanedet.

Turoad avatar Turoad commented on July 22, 2024

The input is a dict. If you don't have labels, just get the img, like this: https://github.com/Turoad/lanedet/blob/main/lanedet/models/net/detector.py#L19.
If the dataset don't have any label, we can handle this case. I don't think it's inconvenient.

from lanedet.

Turoad avatar Turoad commented on July 22, 2024

By the way, we don't have labels during validate in a batch. Do you run the code and get labels?

from lanedet.

Turoad avatar Turoad commented on July 22, 2024

@cf206cd I have added the MobileNetV2(https://github.com/Turoad/lanedet/blob/main/configs/laneatt/resnet18_culane.py) and the tools/detect.py.

from lanedet.

cf206cd avatar cf206cd commented on July 22, 2024

Wow! Amazing! Thank you so much!

from lanedet.

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.