Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vincent-ZHQ/UniS-MMC
/ functions
Functions
109 in github.com/Vincent-ZHQ/UniS-MMC
⨍
Functions
109
◇
Types & classes
15
↓ 6 callers
Function
_check_args_tf
(kwargs)
src/augment_ops.py:67
↓ 6 callers
Function
_randomly_negate
(v)
src/augment_ops.py:75
↓ 4 callers
Function
dict_to_str
(src_dict)
src/functions.py:21
↓ 3 callers
Function
collect_metrics
(dataset, y_true, y_pred)
src/metrics.py:5
↓ 3 callers
Method
mmc_2
(self, f0, f1, p0, p1, l)
model/model.py:86
↓ 2 callers
Method
__init__
(self, args)
model/model.py:29
↓ 2 callers
Method
_erase
(self, img, chan, img_h, img_w, dtype)
src/augment_ops.py:695
↓ 2 callers
Function
format_txt_file
(content)
data/dataloader.py:71
↓ 2 callers
Method
get_tokenizer
(self)
model/TextEncoder.py:50
↓ 2 callers
Method
infer
(self, text=None, image=None, data_list=None)
model/model.py:82
↓ 2 callers
Function
remove_tags
(text)
data/dataloader.py:28
↓ 1 callers
Function
MMDataLoader
(args)
data/dataloader.py:174
↓ 1 callers
Method
SupMMConLoss
(self, feature_a, feature_b, labels, temperature=0.07)
model/model.py:144
↓ 1 callers
Method
UnSupMMConLoss
(self, feature_a, feature_b, temperature=0.07)
model/model.py:162
↓ 1 callers
Method
UniSMMConLoss
(self, feature_a, feature_b, predict_a, predict_b, labels, temperature=0.07)
model/model.py:101
↓ 1 callers
Function
_get_pixels
(per_pixel, rand_color, patch_size, dtype=torch.float32, device='cuda')
src/augment_ops.py:560
↓ 1 callers
Function
_interpolation
(kwargs)
src/augment_ops.py:60
↓ 1 callers
Function
_select_rand_weights
(weight_idx=0, transforms=None)
src/augment_ops.py:429
↓ 1 callers
Function
count_parameters
(model)
src/functions.py:28
↓ 1 callers
Method
forward
(self, text=None, image=None, data_list=None, label=None, infer=False)
model/model.py:41
↓ 1 callers
Method
get_config
(self)
src/config.py:137
↓ 1 callers
Function
get_optimizer
(model, args)
src/train_food101.py:31
↓ 1 callers
Method
get_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 callers
Function
get_scheduler
(optimizer, args)
src/train_food101.py:24
↓ 1 callers
Function
get_transforms
()
data/dataloader.py:45
↓ 1 callers
Function
load_checkpoint
(model, checkpoint_path, dp=True)
src/functions.py:11
↓ 1 callers
Function
parse_args
()
main.py:73
↓ 1 callers
Function
rand_augment_ops
(magnitude=10, hparams=None, transforms=None)
src/augment_ops.py:423
↓ 1 callers
Function
run
(args)
main.py:29
↓ 1 callers
Function
save_checkpoint
(model, checkpoint_path)
src/functions.py:5
↓ 1 callers
Function
set_log
(args)
main.py:46
↓ 1 callers
Function
setup_seed
(seed)
main.py:22
↓ 1 callers
Function
test_epoch
(model, dataloader=None)
src/train_food101.py:156
↓ 1 callers
Function
train_food101
(args)
src/train_food101.py:174
↓ 1 callers
Function
train_valid
(args, model, optimizer, scheduler=None, data=None)
src/train_food101.py:104
↓ 1 callers
Function
transform
(x, y, matrix)
src/augment_ops.py:131
↓ 1 callers
Function
valid
(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
Function
auto_contrast
(img, **__)
src/augment_ops.py:144
Function
blur
(img, v, **__)
src/augment_ops.py:418
Function
brightness
(img, factor, **__)
src/augment_ops.py:188
Function
color
(img, factor, **__)
src/augment_ops.py:184
Function
contrast
(img, factor, **__)
src/augment_ops.py:180
Function
distort
(img, v, **__)
src/augment_ops.py:277
Function
equalize
(img, **__)
src/augment_ops.py:152
Function
erase
(img, v, **__)
src/augment_ops.py:373
Method
forward
text: (batch_size, 3, seq_len) 3: input_ids, input_mask, segment_ids input_ids: input_ids, input_mask: attention_
model/TextEncoder.py:56
Method
forward
pixel_values:
model/ImageEncoder.py:38
Method
forward
(self, x)
model/model.py:24
Method
forward
(self, input)
model/model.py:189
Method
get_tokenize
(self)
model/TextEncoder.py:53
Method
get_tokenizer
(self)
model/ImageEncoder.py:35
Function
invert
(img, **__)
src/augment_ops.py:148
Function
posterize
(img, bits_to_keep, **__)
src/augment_ops.py:174
Function
preprocess_text
(sen)
data/dataloader.py:32
Function
rand_augment_transform
(config_str, hparams)
src/augment_ops.py:438
Function
rotate
(img, degrees, **kwargs)
src/augment_ops.py:111
Function
sharpness
(img, factor, **__)
src/augment_ops.py:192
Function
shear_x
(img, factor, **kwargs)
src/augment_ops.py:79
Function
shear_y
(img, factor, **kwargs)
src/augment_ops.py:84
Function
skew
(img, v, **__)
src/augment_ops.py:389
next →
1–100 of 109, ranked by callers