Giter Club home page Giter Club logo

Comments (17)

zhiqwang avatar zhiqwang commented on July 1, 2024 2

Hi @aribornstein , I'm working on integrating YOLOv5 with Lightning here, I am learning the interface of Lightning and flash, and hope I could help to add YOLOv5 to flash.

Now I open a issue in my own repo to test the trainer and inference of Lightning. After this issue is done, I would like to submit a PR for the YOLOv5 task.

And this is my first attempt on Lightning and flash, if there is a problem with the handling, please point it out.

cc @tchaton

from lightning-flash.

zhiqwang avatar zhiqwang commented on July 1, 2024 2

Hi, I postponed the DDL again.

I was a little busy with some other work and didn’t push this task forward. I’m now starting to come back to the development here. I'm very sorry that this affects your progress.

from lightning-flash.

ethanwharris avatar ethanwharris commented on July 1, 2024 2

Hi @weiji14 @zhiqwang yes I think this is in the process of being added to icevision via mmdet. Once the models are in icevision we'll be able to add them into flash 😃

from lightning-flash.

zhiqwang avatar zhiqwang commented on July 1, 2024 1

Hi @aribornstein

I follow the development philosophy of torchvision's retinanet or faster-rcnn, and try to keep the same interface as torchvision. For the aspects of the YOLOv5 model itself, the work on the inference procedure in done, it can load a checkpoint trained by ultralytics, the inference result is also same as ultralytics.

The work on the training procedure is in process. Although It can also be used for training, I didn't train a model on the actual datasets (neither COCO nor VOC). The author of ultralytics added a lot of tricks to his trainer mechanism. I guess there is still some distance to train a model as good as ultralytics .

from lightning-flash.

kaushikb11 avatar kaushikb11 commented on July 1, 2024 1

@aribornstein RetinaNet with other backbones added #121 :)
@zhiqwang That's great!

from lightning-flash.

zhiqwang avatar zhiqwang commented on July 1, 2024 1

Hi @edgarriba , I haven't completely solved the training problem ,( I hope I can resolve this problem before June.

from lightning-flash.

aniketmaurya avatar aniketmaurya commented on July 1, 2024 1

Hi, I have started working on YoloV5 integration with Flash.

from lightning-flash.

aribornstein avatar aribornstein commented on July 1, 2024

That's amazing news !!! Look forward to finally having a clean way of finetuning and comparing different object detectors on TPUs and Distributed Clusters.

from lightning-flash.

stale avatar stale commented on July 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from lightning-flash.

edgarriba avatar edgarriba commented on July 1, 2024

@zhiqwang what's the status on this. Do you have any progress ?

from lightning-flash.

juliangrosshauser avatar juliangrosshauser commented on July 1, 2024

Integrating YOLOv5 into Lightning Flash would result in a license conflict, because YOLOv5 is licensed under GPL-3.0 and Lightning Flash under Apache 2.0. In order to comply with the GPL-3.0 license you need to disclose your source code, which means you wouldn't be able to use Lightning Flash in closed source projects anymore.

from lightning-flash.

ethanwharris avatar ethanwharris commented on July 1, 2024

@juliangrosshauser Presumably this would apply to copying the code only though right? Our intention here is simply to have yolov5 as a dependency which is fine no? E.g. we would be adding support for icevision, which lists yolov5 as a dependency and is itself licensed under Apache 2.0. Please correct me if I am mistaken 😃

from lightning-flash.

juliangrosshauser avatar juliangrosshauser commented on July 1, 2024

@ethanwharris I'm not a lawyer and this isn't legal advice. I think using YOLOv5 in IceVision makes it a derivative work, and IceVision therefore needs to be GPL-3.0 licensed too. If Flash uses IceVision it creates a derivative work again, which means Flash also needs to be distributed under the GPL-3.0 license. I'm not 100% sure that this is correct, but I wouldn't take the risk of integrating a GPL-3.0 licensed package, especially if I want companies to use my project.

Some relevant links:

from lightning-flash.

ethanwharris avatar ethanwharris commented on July 1, 2024

@juliangrosshauser Thanks for the links. As far as the YoloV5 founder is concerned, it seems that using the library in a or your own trained models with different licensing would be fine: ultralytics/yolov5#967 (comment)

from lightning-flash.

juliangrosshauser avatar juliangrosshauser commented on July 1, 2024

Quoting ultralytics/yolov5#967 (comment):

If you simply use this repo without altering it, you own any resulting products (i.e. trained models) and are free to assign them any license you wish as I understand it.

That's probably true for trained models, as long as you're not distributing the models (by providing a REST API for example). AGPL closes this loophole. If you integrate the trained models into your mobile app for example, that you then distribute over app stores, you'd need to disclose the source code again though.

That said, all of that doesn't apply to integrating the package. Flash would still need to be licensed under GPL-3.0 as far as I understand. I might be wrong of course.

from lightning-flash.

zhiqwang avatar zhiqwang commented on July 1, 2024

Hi all here,

Do you plan to add a wrapper of https://github.com/Megvii-BaseDetection/YOLOX ?

from lightning-flash.

weiji14 avatar weiji14 commented on July 1, 2024

Hi all here,

Do you plan to add a wrapper of https://github.com/Megvii-BaseDetection/YOLOX ?

I'm interested in this question as well 😄. If my understanding is correct, the IceVision integration PR at #608 will allow Pytorch Lightning to use all the Object Detection models listed by IceVision under https://github.com/airctic/icevision/tree/0.8.1/icevision/models. And since IceVision has integrations with MMDetection, that would include YOLOX (and all the other listed under https://github.com/open-mmlab/mmdetection/tree/v2.15.1#benchmark-and-model-zoo)? Is that correct?

from lightning-flash.

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.