model split
2020.07.30 09: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])
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1684 | GPT2 [1] | WHRIA | 2020.08.03 | 289 |
1683 | scopus [1] | WHRIA | 2020.08.02 | 381 |
1682 | melafind | WHRIA | 2020.08.01 | 792 |
1681 | nvidia dali [1] | WHRIA | 2020.08.01 | 413 |
1680 | pytorch optimize | WHRIA | 2020.08.01 | 254 |
1679 | startup , 미국 | WHRIA | 2020.07.30 | 180 |
1678 | consort , stard | WHRIA | 2020.07.30 | 115 |
» | model split [1] | WHRIA | 2020.07.30 | 166 |
1676 | FTC [1] | WHRIA | 2020.07.28 | 262 |
1675 | 암호화 | WHRIA | 2020.07.26 | 1034 |
1674 | raid 6 | WHRIA | 2020.07.23 | 77 |
1673 | asyncio | WHRIA | 2020.07.23 | 328 |
1672 | amp distributed pytorch [1] | WHRIA | 2020.07.14 | 78 |
1671 | git 특정 버젼 | WHRIA | 2020.07.11 | 75 |
1670 | naver rexnet clova AI [1] | WHRIA | 2020.07.04 | 339 |
https://discuss.pytorch.org/t/how-to-extract-features-of-an-image-from-a-trained-model/119/3