Method__init__(self, args: dict, lam: float = 10, alpha: float = 0.2, n_epochs: int = 10, bpa=None)
methods/pt_map/pt_map_loss.py:113
Method__init__(self, set_name, labels, num_episodes,
num_way, num_shot, num_query, const_loader,
datasets/samplers.py:7
Method__init__(self, nb_layers, in_planes, out_planes, block, stride, dropRate=0.0)
models/wrn_mixup_model.py:73
Method__init__(self, depth=28, widen_factor=10, num_classes=200, loss_type='dist', per_img_std=False, stride=1,
models/wrn_mixup_model.py:118
Methodforward(self, x, target=None, mixup=False, mixup_hidden=True, mixup_alpha=None, lam=0.4)
models/res_mixup_model.py:142
Methodforward(self, x, target=None, mixup=False, mixup_hidden=True, mixup_alpha=None, lam=0.4, return_logits=True)
models/wrn_mixup_model.py:151
Functionget_fs_labels Prepare few-shot labels. For example for 5-way, 1-shot, 2-query: [0, 1, 2, 3, 4, 0, 1, 2, 3, 4, ...]
utils.py:226