Skip to content

Commit 1cb357f

Browse files
authored
Update beheaded_inception3.py
1 parent 76663d7 commit 1cb357f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

homework04/beheaded_inception3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def forward(self, x):
4343

4444

4545
def beheaded_inception_v3(transform_input=True):
46-
model= BeheadedInception3(transform_input=transform_input)
46+
model= BeheadedInception3(transform_input=transform_input, init_weights=False)
4747
inception_url = 'https://download.pytorch.org/models/inception_v3_google-1a9a5a14.pth'
4848
model.load_state_dict(load_url(inception_url))
4949
return model

0 commit comments

Comments
 (0)