MCPcopy Create free account

hub / github.com/Vincent-ZHQ/UniS-MMC / functions

Functions109 in github.com/Vincent-ZHQ/UniS-MMC

↓ 6 callersFunction_check_args_tf
(kwargs)
src/augment_ops.py:67
↓ 6 callersFunction_randomly_negate
(v)
src/augment_ops.py:75
↓ 4 callersFunctiondict_to_str
(src_dict)
src/functions.py:21
↓ 3 callersFunctioncollect_metrics
(dataset, y_true, y_pred)
src/metrics.py:5
↓ 3 callersMethodmmc_2
(self, f0, f1, p0, p1, l)
model/model.py:86
↓ 2 callersMethod__init__
(self, args)
model/model.py:29
↓ 2 callersMethod_erase
(self, img, chan, img_h, img_w, dtype)
src/augment_ops.py:695
↓ 2 callersFunctionformat_txt_file
(content)
data/dataloader.py:71
↓ 2 callersMethodget_tokenizer
(self)
model/TextEncoder.py:50
↓ 2 callersMethodinfer
(self, text=None, image=None, data_list=None)
model/model.py:82
↓ 2 callersFunctionremove_tags
(text)
data/dataloader.py:28
↓ 1 callersFunctionMMDataLoader
(args)
data/dataloader.py:174
↓ 1 callersMethodSupMMConLoss
(self, feature_a, feature_b, labels, temperature=0.07)
model/model.py:144
↓ 1 callersMethodUnSupMMConLoss
(self, feature_a, feature_b, temperature=0.07)
model/model.py:162
↓ 1 callersMethodUniSMMConLoss
(self, feature_a, feature_b, predict_a, predict_b, labels, temperature=0.07)
model/model.py:101
↓ 1 callersFunction_get_pixels
(per_pixel, rand_color, patch_size, dtype=torch.float32, device='cuda')
src/augment_ops.py:560
↓ 1 callersFunction_interpolation
(kwargs)
src/augment_ops.py:60
↓ 1 callersFunction_select_rand_weights
(weight_idx=0, transforms=None)
src/augment_ops.py:429
↓ 1 callersFunctioncount_parameters
(model)
src/functions.py:28
↓ 1 callersMethodforward
(self, text=None, image=None, data_list=None, label=None, infer=False)
model/model.py:41
↓ 1 callersMethodget_config
(self)
src/config.py:137
↓ 1 callersFunctionget_optimizer
(model, args)
src/train_food101.py:31
↓ 1 callersMethodget_params
Get parameters for ``crop`` for a random sized crop. Args: img (PIL Image): Image to be cropped. scale (tuple): ran
src/augment_ops.py:602
↓ 1 callersFunctionget_scheduler
(optimizer, args)
src/train_food101.py:24
↓ 1 callersFunctionget_transforms
()
data/dataloader.py:45
↓ 1 callersFunctionload_checkpoint
(model, checkpoint_path, dp=True)
src/functions.py:11
↓ 1 callersFunctionparse_args
()
main.py:73
↓ 1 callersFunctionrand_augment_ops
(magnitude=10, hparams=None, transforms=None)
src/augment_ops.py:423
↓ 1 callersFunctionrun
(args)
main.py:29
↓ 1 callersFunctionsave_checkpoint
(model, checkpoint_path)
src/functions.py:5
↓ 1 callersFunctionset_log
(args)
main.py:46
↓ 1 callersFunctionsetup_seed
(seed)
main.py:22
↓ 1 callersFunctiontest_epoch
(model, dataloader=None)
src/train_food101.py:156
↓ 1 callersFunctiontrain_food101
(args)
src/train_food101.py:174
↓ 1 callersFunctiontrain_valid
(args, model, optimizer, scheduler=None, data=None)
src/train_food101.py:104
↓ 1 callersFunctiontransform
(x, y, matrix)
src/augment_ops.py:131
↓ 1 callersFunctionvalid
(args, model, data=None, best_valid=None, nBetter=None, step=None)
src/train_food101.py:73
Method__MMC
(self)
src/config.py:25
Method__call__
(self, img)
src/augment_ops.py:535
Method__call__
(self, img)
src/augment_ops.py:551
Method__call__
Args: img (PIL Image): Image to be cropped and resized. Returns: PIL Image: Randomly cropped and resized
src/augment_ops.py:642
Method__call__
(self, input)
src/augment_ops.py:715
Method__call__
Args: img (Tensor): Tensor image of size (N, C, H, W). Returns: Tensor: Image with n_holes of dimension l
src/augment_ops.py:738
Method__call__
(self, input)
src/augment_ops.py:786
Method__call__
(self, pil_img)
src/augment_ops.py:795
Method__delattr__
(self, key)
src/functions.py:51
Method__getattr__
(self, key)
src/functions.py:42
Method__getitem__
(self, index)
data/dataloader.py:140
Method__init__
txt_encoder: base / large
model/TextEncoder.py:19
Method__init__
image_encoder: base / large
model/ImageEncoder.py:17
Method__init__
(self, in_dim, out_dim)
model/model.py:19
Method__init__
(self, dropout, in_dim, post_dim, out_dim)
model/model.py:182
Method__init__
(self, args, labels)
data/dataloader.py:117
Method__init__
(self, args)
src/config.py:8
Method__init__
(self, name, prob=0.5, magnitude=10, hparams=None)
src/augment_ops.py:522
Method__init__
(self, ops, num_layers=2, choice_weights=None)
src/augment_ops.py:546
Method__init__
(self, size, scale=(0.08, 1.0), ratio=(3. / 4., 4. / 3.), interpolation='bilinear')
src/augment_ops.py:585
Method__init__
( self, probability=0.5, min_area=0.02, max_area=1/3, min_aspect=0.3, max_aspect=Non
src/augment_ops.py:672
Method__init__
(self, n_holes=1, length=16)
src/augment_ops.py:734
Method__init__
(self, mean, std, inplace=True, use_cuda=True)
src/augment_ops.py:778
Method__len__
(self)
data/dataloader.py:137
Method__setattr__
(self, key, value)
src/functions.py:48
Method__str__
(self)
src/functions.py:57
Function_blur_level_to_arg
(level, _hparams)
src/augment_ops.py:265
Function_distort_level_to_arg
(level, _hparams)
src/augment_ops.py:257
Function_enhance_level_to_arg
(level, _hparams)
src/augment_ops.py:203
Function_posterize_original_level_to_arg
(level, _hparams)
src/augment_ops.py:229
Function_posterize_research_level_to_arg
(level, _hparams)
src/augment_ops.py:235
Function_posterize_tpu_level_to_arg
(level, _hparams)
src/augment_ops.py:241
Function_rotate_level_to_arg
(level, _hparams)
src/augment_ops.py:196
Function_shear_level_to_arg
(level, _hparams)
src/augment_ops.py:208
Function_skew_level_to_arg
(level, _hparams)
src/augment_ops.py:271
Function_solarize_add_level_to_arg
(level, _hparams)
src/augment_ops.py:252
Function_solarize_level_to_arg
(level, _hparams)
src/augment_ops.py:247
Function_translate_abs_level_to_arg
(level, hparams)
src/augment_ops.py:215
Function_translate_rel_level_to_arg
(level, _hparams)
src/augment_ops.py:222
Function_zoom_level_to_arg
(level, _hparams)
src/augment_ops.py:261
Functionauto_contrast
(img, **__)
src/augment_ops.py:144
Functionblur
(img, v, **__)
src/augment_ops.py:418
Functionbrightness
(img, factor, **__)
src/augment_ops.py:188
Functioncolor
(img, factor, **__)
src/augment_ops.py:184
Functioncontrast
(img, factor, **__)
src/augment_ops.py:180
Functiondistort
(img, v, **__)
src/augment_ops.py:277
Functionequalize
(img, **__)
src/augment_ops.py:152
Functionerase
(img, v, **__)
src/augment_ops.py:373
Methodforward
text: (batch_size, 3, seq_len) 3: input_ids, input_mask, segment_ids input_ids: input_ids, input_mask: attention_
model/TextEncoder.py:56
Methodforward
pixel_values:
model/ImageEncoder.py:38
Methodforward
(self, x)
model/model.py:24
Methodforward
(self, input)
model/model.py:189
Methodget_tokenize
(self)
model/TextEncoder.py:53
Methodget_tokenizer
(self)
model/ImageEncoder.py:35
Functioninvert
(img, **__)
src/augment_ops.py:148
Functionposterize
(img, bits_to_keep, **__)
src/augment_ops.py:174
Functionpreprocess_text
(sen)
data/dataloader.py:32
Functionrand_augment_transform
(config_str, hparams)
src/augment_ops.py:438
Functionrotate
(img, degrees, **kwargs)
src/augment_ops.py:111
Functionsharpness
(img, factor, **__)
src/augment_ops.py:192
Functionshear_x
(img, factor, **kwargs)
src/augment_ops.py:79
Functionshear_y
(img, factor, **kwargs)
src/augment_ops.py:84
Functionskew
(img, v, **__)
src/augment_ops.py:389
next →1–100 of 109, ranked by callers