Put the image into the ./data/images/
Put the label (txt file with same name) into the ./data/labels/
If you want to create the train.txt, Val.txt, Test.txt in random:
python Create_train_val_test.py
If you want to create the test in some determined folder:
python Create_diy_test.py
model = resnet34(pretrained=False, modelpath=model_path)
input size : f x f, average pooling size: f/32
T.Resize((96,96)),
self.avgpool = nn.AvgPool2d(3, stride=1)
Fully connect layer in 'self.fc_hat = nn.Linear(512 * block.expansion, 2)'
self.dropout=nn.Dropout(p=0.8)
python classifier_train.py
python classifier_test.py