-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Hi,
I just want to bring an attention that. when trained the resnet18 wit same parameters that was mentioned in the paper, I get different ACC and AUC.
Can anyone give me an insight into what approach I should follow?
I have attached the results of 10 independent runs as well.
code:
data_flag = 'breastmnist'
download = True
NUM_EPOCHS = 100
BATCH_SIZE = 128
lr = 0.001
im_size=224
from torchvision.models import resnet18
import timm
device='cuda'
model = resnet18(num_classes=n_classes).cuda()
criterion = nn.CrossEntropyLoss()
optimizer = optim.Adam(model.parameters(), lr=lr)
scheduler = optim.lr_scheduler.MultiStepLR(optimizer, milestones=[50, 75], gamma=0.1)
The result for im_size=224 is also different.
Metadata
Metadata
Assignees
Labels
No labels