Code Monkey home page Code Monkey logo

Comments (3)

gau-nernst avatar gau-nernst commented on September 26, 2024

Hi @virilo,

For my setup of 2x 3090 GPUs, it takes around 1 day to train for most models. The trained weights of YOLOv5 backbone are already there.

from vision_toolbox import backbones

model = backbones.darknet_yolov5m(pretrained=True)
model(inputs)                       # last feature map, stride 32
model.forward_features(inputs)      # list of 4 feature maps, stride 4, 8, 16, 32
model.get_out_channels()            # channels of output feature maps

If you want to use the weights for object detection with the YOLOv5 repo, you will have to port the weights to match the keys' names.

Cheers

from vision-toolbox.

virilo avatar virilo commented on September 26, 2024

Thanks a lot @gau-nernst !

I'm feeding it with a batch of one single 512x512 image normalized to [0,1]

Using this input, model(inputs) returns me a tensor with a size of [1, 768, 16, 16]

How could I get the inference bounding boxes from this output?

Cheers

from vision-toolbox.

gau-nernst avatar gau-nernst commented on September 26, 2024

Hello @virilo,

I only implement the backbone part of YOLOv5. If you want to do object detection, you have to follow the original YOLOv5 repo.

YOLOv5 does provide pre-trained weights on COCO. You can use them to fine-tune on your dataset.

from vision-toolbox.

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.