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])
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
171 | Transformer | WHRIA | 2020.10.09 | 155 |
170 | stuff [2] | WHRIA | 2019.07.15 | 151 |
169 | pytorch pretrained | WHRIA | 2020.10.28 | 150 |
168 | 진료실 녹음 스크립트 | WHRIA | 2015.12.02 | 149 |
167 | concat network [3] | WHRIA | 2020.08.27 | 147 |
166 | yolo custom | WHRIA | 2019.07.25 | 147 |
165 | delayed network drive connect | WHRIA | 2018.10.07 | 145 |
164 | 페이닥터 등록 | WHRIA | 2014.10.21 | 145 |
163 | SAS controller SAS 9212-4i | WHRIA | 2019.12.08 | 143 |
162 | pROC package [3] | WHRIA | 2019.05.11 | 143 |
» | model split [1] | WHRIA | 2020.07.30 | 142 |
160 | Micro- and macro-averages | WHRIA | 2019.11.28 | 140 |
159 | 이궁 | WHRIA | 2019.03.12 | 139 |
158 | kakao | WHRIA | 2018.02.25 | 139 |
157 | 모든 code 를 python3 로 migration 중 | WHRIA | 2019.06.08 | 138 |
https://discuss.pytorch.org/t/how-to-extract-features-of-an-image-from-a-trained-model/119/3