Skip to content

model split

2020.07.30 08:15

WHRIA 조회 수:150

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 우분투 7.10 으로 업그레이드 WHRIA 2007.12.03 7761
1683 partimage 사용법 WHRIA 2011.04.25 7754
1682 VirtualBox WHRIA 2007.10.07 7754
1681 비상 [1] WHRIA 2007.11.12 7752
1680 토미그린 (tomygreen) 해외 핸드폰 (nexus 4) 에 설치하기 file WHRIA 2013.04.03 7735
1679 Pidgin WHRIA 2007.09.01 7733
1678 이랬으면 좋겠네. WHRIA 2012.07.15 7731
1677 Interpretation of the Outputs of Deep Learning Model Trained with Skin Cancer Dataset [1] WHRIA 2018.06.02 7713
1676 추석 WHRIA 2007.09.25 7708
1675 frame WHRIA 2008.12.11 7703
1674 Minor update WHRIA 2007.08.09 7689
1673 Face It. WHRIA 2007.08.09 7682
1672 gomphoto 1.0.1 file WHRIA 2013.01.10 7679
1671 whria.net 복구 WHRIA 2012.12.09 7672
1670 whria.net 홈페이지에 음악 삽입 WHRIA 2013.01.17 7625

Powered by Xpress Engine / Designed by Sketchbook

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소