lightning-bolts icon indicating copy to clipboard operation
lightning-bolts copied to clipboard

Implementation of Efficient-Net and Efficient-Det in Pytorch Lightning

Open bilel-bj opened this issue 4 years ago • 15 comments

🚀 Feature

Implementation of Efficient-Net and Efficient-Det in Pytorch Lightning

Motivation

These two algorithms are the state of the art in Image classification and Object detection. Providing an implementation in Pytorch LIghtning will attract many data scientist to adopt this promising framework

Alternatives

https://paperswithcode.com/paper/efficientdet-scalable-and-efficient-object

bilel-bj avatar Mar 30 '20 04:03 bilel-bj

when you say implementation means everything including the network from scratch, or just mixing lightning with e.g torchvision SOTA models ?

edgarriba avatar Mar 30 '20 11:03 edgarriba

It is not actually provided in TorchVision. We can only find 8it in Torch Hub. It will be attractive that we find some easy way to use these algorithms in Lightning. Thanks for your support.

bilel-bj avatar Mar 30 '20 12:03 bilel-bj

Hi guys, is this still on? I can give a helping hand in starting the 6th of May and work for 2-4 weeks for this one.

danielkurniadi avatar Apr 27 '20 15:04 danielkurniadi

I think so far, there is no-one working on this, so if you want to, we'd appreciate that :)

justusschock avatar Apr 27 '20 15:04 justusschock

Will do that, but gimme some time. I'm on another finishing project. I'll let get back here asap I promise.

danielkurniadi avatar Apr 27 '20 15:04 danielkurniadi

@iqDF Sorry for the late reply. Of course you can ping me whenever you need :) I recently get spammed with github notifications, so I mussed have missed this one :) As for documentation: Yes, a few doctest examples would be nice.

And for the hparams, just include a default that matches the hparams you used to achieve the reported results :)

justusschock avatar May 15 '20 05:05 justusschock

@iqDF how is it going here?

Borda avatar May 28 '20 19:05 Borda

@Borda Hi I almost thought this was abandoned due to delay inactivity in the forum. Anyway here is the progress:

  1. Currently I have used several detection models (efficient det included) in pytorch + lightning for my kaggle project.
  2. The implementation needs to be tidy up. I use it for competition currently but tidying up should be quick, but I'll take my time for one week.
  3. Performance wise, I'll just use pretrained one from https://github.com/google/automl

danielkurniadi avatar May 29 '20 16:05 danielkurniadi

everyone is busy, but seeing this landed would be great, I personally would love to try it... if you start a draft PR we can help you with some work... :]

Borda avatar May 29 '20 17:05 Borda

Any updates on this? Hoping to try this out.

bguan avatar Aug 21 '20 20:08 bguan

Maybe @teddykoker would be interested in finishing this one.... 🐰

Borda avatar Aug 21 '20 23:08 Borda

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.

stale[bot] avatar Oct 21 '20 01:10 stale[bot]

Hi people. What's the state of the EfficientDet implementation? I took a look at this WIP branch but it only seems to have the BiFPN module implemented. As you know EfficientDet is EfficientNet + BiFPN... If we can implement this it would attract lots of users since EfficientDets are still SOTA in object detection while being very lightweight to fit into edge devices.

JVGD avatar Jan 14 '21 08:01 JVGD

@oke-aditya I'm sure your PRs like #475 are waiting for our reviews for so long, but let me mention you here since you might be interested in this one.

akihironitta avatar Jan 16 '21 08:01 akihironitta

😅 No worries @akihironitta reviewing takes time.

I think efficient net will be added to torchvision soon. Have a look here.

Once efficient net is supported by torchvision adding efficient det will be easier.

#31 BiFPN block can then be added to create efficient det. We should rather avoid timm dependency for efficient net and use from torchvision when it supports.

Since efficient net, ResNet, ResNext, mobilenet all are classification models directly from torchvision, it might make sense to add classification trainer ?

There are other recent classification approaches such as DeiT (FB research) Lambda Networks etc So maybe a Classification API is worth adding for bolts ?

oke-aditya avatar Jan 16 '21 08:01 oke-aditya