You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\*`ssl`, `swsl` - semi-supervised and weakly-supervised learning on ImageNet ([repo](https://github.com/facebookresearch/semi-supervised-ImageNet1K-models)).
358
346
@@ -367,8 +355,9 @@ The following is a list of supported encoders in the SMP. Select the appropriate
367
355
368
356
##### Input channels
369
357
Input channels parameter allows you to create models, which process tensors with arbitrary number of channels.
370
-
If you use pretrained weights from imagenet - weights of first convolution will be reused for
371
-
1- or 2- channels inputs, for input channels > 4 weights of first convolution will be initialized randomly.
358
+
If you use pretrained weights from imagenet - weights of first convolution will be reused. For
359
+
1-channel case it would be a sum of weights of first convolution layer, otherwise channels would be
360
+
populated with weights like `new_weight[:, i] = pretrained_weight[:, i % 3]` and than scaled with `new_weight * 3 / new_in_channels`.
0 commit comments