Skip to content

reproducibility #14

Description

@mehrnia

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.

Image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions