sample_info/scripts/generate_commands.py [440:455]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def foo(which_resnet, *args, **kwargs):
    if which_resnet == 'resnet18':
        batch_size = 250
        num_accumulation_steps = 2
        n_epochs = 500
        config_file = 'sample_info/configs/binary-resnet18-pretrained.json'
    elif which_resnet == 'resnet50':
        batch_size = 100
        num_accumulation_steps = 5
        n_epochs = 500
        config_file = 'sample_info/configs/binary-resnet50-pretrained.json'
    else:
        raise ValueError()
    dataset = 'cats-and-dogs'
    num_train_examples = 1000
    lr = 0.001
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sample_info/scripts/generate_commands.py [533:548]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def foo(which_resnet, *args, **kwargs):
    if which_resnet == 'resnet18':
        batch_size = 250
        num_accumulation_steps = 2
        n_epochs = 500
        config_file = 'sample_info/configs/binary-resnet18-pretrained.json'
    elif which_resnet == 'resnet50':
        batch_size = 100
        num_accumulation_steps = 5
        n_epochs = 500
        config_file = 'sample_info/configs/binary-resnet50-pretrained.json'
    else:
        raise ValueError()
    dataset = 'cats-and-dogs'
    num_train_examples = 1000
    lr = 0.001
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



