GithubHelp home page GithubHelp logo

Comments (3)

zhiqwang avatar zhiqwang commented on May 16, 2024

Hi @markdjthomas ,

Thanks for the report and your attention here! The trainer with lightning is not stable now, but I'll be looking into fixing this!

from yolort.

zhiqwang avatar zhiqwang commented on May 16, 2024

Hi @markdjthomas

Sorry for not solving this problem for a while, I was on vacation a few days ago.

I've written a unit-test in #87 to reproduce this bug and now it can report the same error in GH Actions. It seems that there are some bugs in the vanilla yolov5 module

https://github.com/zhiqwang/yolov5-rt-stack/blob/c4d3962bc4bb4dccf612dedf67aa9cc9eb89376a/yolort/models/yolo_module.py#L19

One should use the training_step to train a model.

https://github.com/zhiqwang/yolov5-rt-stack/blob/c4d3962bc4bb4dccf612dedf67aa9cc9eb89376a/yolort/models/yolo_module.py#L86-L95

In other words, yolort currently only supports training with following interface (Just test for VOC datasets)

CUDA_VISIBLE_DEVICES=0 python -m yolort.train --data_path ./data-bin/voc_devkit --dataset_type voc --years 2007 2012 --num_gpus 1

And there is a unit-test for training with COCO type dataset here.

My next plan is to integrate self.transform into the model to eliminate this problem.

from yolort.

zhiqwang avatar zhiqwang commented on May 16, 2024

@markdjthomas

I've fixed training with the vanilla module, you can check the unit-test for more details, therefore I'm closing this issue. And please let me know if you have more questions.

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.