lambda-networks icon indicating copy to clipboard operation
lambda-networks copied to clipboard

Lambda Layer for Multiscale Training

Open lufanma opened this issue 5 years ago • 5 comments

Does Lambda Layer support multiscale training, it seems like that you have to specify n?

lufanma avatar Oct 31 '20 06:10 lufanma

@Lufan111 if you mean whether you can train a lambda layer to be agnostic to the image size, you will want to use the version with the localized context (keyword r)

lucidrains avatar Oct 31 '20 18:10 lucidrains

@Lufan111 if you mean whether you can train a lambda layer to be agnostic to the image size, you will want to use the version with the localized context (keyword r)

Thanks for reply. Well, I mean if I can use the global context version for different image sizes while multiscale training, since the H*W is actually different per batch. Does the current code version support this?

lufanma avatar Nov 01 '20 03:11 lufanma

@Lufan111 it won't work for global context if the images differ in size across batches, only for local context

lucidrains avatar Nov 01 '20 04:11 lucidrains

@Lufan111 it won't work for global context if the images differ in size across batches, only for local context

Okay~ I see... As for Appendix D "Experimental Details" COCO object detection part, "apply multi-scale jitter of [0.1, 2.0] during training", so you just use different arg 'r' for local context right? not for multi-scale global images?

lufanma avatar Nov 01 '20 05:11 lufanma

@Lufan111 yup, so if you look at the beginning of Appendix D, the author(s) detail the architecture they settled on. they use a local context of 23x23 unless if the intra-depth dimension is greater than 1, in which case they lower that to 7x7

lucidrains avatar Nov 02 '20 02:11 lucidrains