Efficient-AI-Backbones icon indicating copy to clipboard operation
Efficient-AI-Backbones copied to clipboard

Tiny-Net PyTorch Model Creation

Open rsomani95 opened this issue 4 years ago • 6 comments

The TinyNet file says that timm==0.1.2 is required. However, this version does not have the efficientnet modules that are imported in the model file.

Additionally, there's also a missing import for the Swish activation. What's the correct version of timm to use this model?

Thanks!

rsomani95 avatar Oct 30 '21 01:10 rsomani95

Looks like timm==0.4.8 works, with some more additional imports from timm.models.efficientnet_blocks

rsomani95 avatar Oct 30 '21 01:10 rsomani95

Thanks for the correction.

iamhankai avatar Nov 01 '21 07:11 iamhankai

Hi @iamhankai, I added a PR to timm making the model compatible with the latest version here: https://github.com/rwightman/pytorch-image-models/pull/1037

rsomani95 avatar Dec 14 '21 14:12 rsomani95

@rsomani95 Good job! Thanks for the contribution.

iamhankai avatar Dec 15 '21 01:12 iamhankai

@iamhankai Hi, I want extend tinynet on a object detection task, but the tinynet constructions coulpled with input resolution, how to take a suitable one for detection task like we want train with input at 640?

lucasjinreal avatar Jun 28 '22 03:06 lucasjinreal

@jinfagang The simple solution is use the resolution ratio in classification task.

iamhankai avatar Jun 28 '22 03:06 iamhankai