e9d5373461b0a037716722a461cb12416aa5d1bc,test.py,,,#,169
Before Change
model_ft = models.resnet50(pretrained=False)
num_ftrs = model_ft.fc.in_features
add_block = []
add_block += [nn.Dropout()]
add_block += [nn.Linear(num_ftrs,256)]
add_block += [nn.BatchNorm1d(256)]
add_block += [nn.LeakyReLU(0.1)]
add_block += [nn.Linear(256, 751)]
model_ft.fc = nn.Sequential(*add_block)
model = load_network(model_ft)
// remove the final fc layer
After Change
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Load Collected data Trained model
print("-------test-----------")
model_structure = ft_net(751)
model = load_network(model_structure)
// Remove the final fc layer and classifier layer
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: e9d5373461b0a037716722a461cb12416aa5d1bc
Time: 2018-01-01
Author: zzheng@joo-ml1-dev.j.cinglevue.com
File Name: test.py
Class Name:
Method Name:
Project Name: keras-team/keras
Commit Name: 13b255dfd832dd78bca90fac142325df534d51be
Time: 2018-12-01
Author: mkaze@users.noreply.github.com
File Name: examples/babi_rnn.py
Class Name:
Method Name:
Project Name: philipperemy/keras-tcn
Commit Name: 0cfe82c6beb9a28a5ff7da81b86fa0e93c388f14
Time: 2019-11-20
Author: premy@cogent.co.jp
File Name: tasks/save_reload_model.py
Class Name:
Method Name: