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])
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1684 | GPT2 [1] | WHRIA | 2020.08.03 | 263 |
1683 | scopus [1] | WHRIA | 2020.08.02 | 356 |
1682 | melafind | WHRIA | 2020.08.01 | 783 |
1681 | nvidia dali [1] | WHRIA | 2020.08.01 | 334 |
1680 | pytorch optimize | WHRIA | 2020.08.01 | 164 |
1679 | startup , 미국 | WHRIA | 2020.07.30 | 155 |
1678 | consort , stard | WHRIA | 2020.07.30 | 92 |
» | model split [1] | WHRIA | 2020.07.30 | 149 |
1676 | FTC [1] | WHRIA | 2020.07.28 | 243 |
1675 | 암호화 | WHRIA | 2020.07.26 | 1018 |
1674 | raid 6 | WHRIA | 2020.07.23 | 55 |
1673 | asyncio | WHRIA | 2020.07.23 | 309 |
1672 | amp distributed pytorch [1] | WHRIA | 2020.07.14 | 61 |
1671 | git 특정 버젼 | WHRIA | 2020.07.11 | 53 |
1670 | naver rexnet clova AI [1] | WHRIA | 2020.07.04 | 273 |
https://discuss.pytorch.org/t/how-to-extract-features-of-an-image-from-a-trained-model/119/3