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 | 의료영상분석장치 분류 코드 | WHRIA | 2020.04.22 | 53 |
1683 | exif javascript orientation | WHRIA | 2020.04.30 | 53 |
1682 | git 특정 버젼 | WHRIA | 2020.07.11 | 53 |
1681 | boost 1.35 build | WHRIA | 2016.05.01 | 54 |
1680 | lvm 확장 [1] | WHRIA | 2019.12.25 | 54 |
1679 | annotation service | WHRIA | 2020.05.03 | 54 |
1678 | 학술저널 받는법 | WHRIA | 2015.11.30 | 55 |
1677 | chatbot | WHRIA | 2020.04.03 | 55 |
1676 | mysql 암호화 [2] | WHRIA | 2020.04.24 | 55 |
1675 | acquihire [1] | WHRIA | 2020.05.05 | 55 |
1674 | software validation [1] | WHRIA | 2020.05.10 | 55 |
1673 | raid 6 | WHRIA | 2020.07.23 | 55 |
1672 | cloudfront | WHRIA | 2023.04.09 | 58 |
1671 | 윈도우 raid ahci 전환 | WHRIA | 2019.12.26 | 59 |
1670 | zerohq encryption [5] | WHRIA | 2020.04.23 | 59 |
https://discuss.pytorch.org/t/how-to-extract-features-of-an-image-from-a-trained-model/119/3