model split
2020.07.30 08:15
https://forums.fast.ai/t/pytorch-best-way-to-get-at-intermediate-layers-in-vgg-and-resnet/5707/2
class ResNet50Bottom(nn.Module): def __init__(self, original_model): super(ResNet50Bottom, self).__init__() self.features = nn.Sequential(*list(original_model.children())[:-2]) def forward(self, x): x = self.features(x) return x res50_model = models.resnet50(pretrained=True) res50_conv2 = ResNet50Bottom(res50_model) outputs = res50_conv2(inputs) outputs.data.shape # => torch.Size([4, 2048, 7, 7])
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1686 | ubuntu cuda nvidia-smi | WHRIA | 2020.08.29 | 853 |
1685 | concat network [3] | WHRIA | 2020.08.27 | 147 |
1684 | GPT2 [1] | WHRIA | 2020.08.03 | 250 |
1683 | scopus [1] | WHRIA | 2020.08.02 | 344 |
1682 | melafind | WHRIA | 2020.08.01 | 771 |
1681 | nvidia dali [1] | WHRIA | 2020.08.01 | 265 |
1680 | pytorch optimize | WHRIA | 2020.08.01 | 126 |
1679 | startup , 미국 | WHRIA | 2020.07.30 | 134 |
1678 | consort , stard | WHRIA | 2020.07.30 | 81 |
» | model split [1] | WHRIA | 2020.07.30 | 142 |
1676 | FTC [1] | WHRIA | 2020.07.28 | 238 |
1675 | 암호화 | WHRIA | 2020.07.26 | 1000 |
1674 | raid 6 | WHRIA | 2020.07.23 | 43 |
1673 | asyncio | WHRIA | 2020.07.23 | 286 |
1672 | amp distributed pytorch [1] | WHRIA | 2020.07.14 | 51 |
https://discuss.pytorch.org/t/how-to-extract-features-of-an-image-from-a-trained-model/119/3