Skip to content

model split

2020.07.30 08:15

WHRIA 조회 수:144

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])

번호 제목 글쓴이 날짜 조회 수
274 resnest50 caffe WHRIA 2020.06.21 163
273 Transformer WHRIA 2020.10.09 156
272 pytorch pretrained WHRIA 2020.10.28 154
271 concat network [3] WHRIA 2020.08.27 153
270 stuff [2] WHRIA 2019.07.15 151
269 pROC package [3] WHRIA 2019.05.11 150
268 yolo custom WHRIA 2019.07.25 148
267 페이닥터 등록 file WHRIA 2014.10.21 147
266 delayed network drive connect WHRIA 2018.10.07 147
265 SAS controller SAS 9212-4i WHRIA 2019.12.08 145
264 Micro- and macro-averages WHRIA 2019.11.28 144
» model split [1] WHRIA 2020.07.30 144
262 CORS WHRIA 2021.01.22 142
261 Google vs Microsoft: The good, bad, and ugly of the AI arms race WHRIA 2023.02.14 142
260 kakao WHRIA 2018.02.25 140

Powered by Xpress Engine / Designed by Sketchbook

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소