Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chu0802/SLA
/ functions
Functions
112 in github.com/chu0802/SLA
⨍
Functions
112
◇
Types & classes
22
↳
Endpoints
1
↓ 9 callers
Function
_float_parameter
(v, max_v)
src/randaugment.py:139
↓ 4 callers
Function
_int_parameter
(v, max_v)
src/randaugment.py:143
↓ 4 callers
Function
download
(url, path, auto_mkdir=True)
data_preparation/data_preparation.py:12
↓ 4 callers
Method
get_predictions
(self, x)
src/model.py:123
↓ 3 callers
Function
CutoutAbs
(img, v, **kwarg)
src/randaugment.py:47
↓ 3 callers
Function
PairEnum2D
Enumerate all pairs of feature in x with 2 dimensions.
src/cdac_loss.py:51
↓ 3 callers
Method
__init__
(self, backbone="resnet34", **kwargs)
src/model.py:53
↓ 3 callers
Method
init
(self, model, t_loader)
src/model.py:30
↓ 3 callers
Method
step
(self)
src/util.py:85
↓ 3 callers
Method
train
(self)
src/trainer.py:79
↓ 2 callers
Method
backward
(ctx, grad_output)
src/model.py:191
↓ 2 callers
Method
base_loss
(self, x, y)
src/model.py:126
↓ 2 callers
Function
evaluation
(loader, model)
src/evaluation.py:4
↓ 2 callers
Method
forward
(self, x, reverse=False)
src/model.py:106
↓ 2 callers
Method
from_args
(cls, args)
src/util.py:108
↓ 2 callers
Method
get_features
(self, x, reverse=False)
src/model.py:120
↓ 2 callers
Function
get_trainer
(base_class, label_trick=None)
src/trainer.py:172
↓ 2 callers
Method
logging
(self, step, info, unit="min")
src/trainer.py:46
↓ 1 callers
Function
PairEnum1D
Enumerate all pairs of feature in x with 1 dimension.
src/cdac_loss.py:41
↓ 1 callers
Method
__init__
(self, loaders, args, **kwargs)
src/trainer.py:141
↓ 1 callers
Function
advbce_unlabeled
Construct adversarial adpative clustering loss.
src/cdac_loss.py:7
↓ 1 callers
Function
arguments_parsing
(path)
src/util.py:26
↓ 1 callers
Function
arguments_parsing
()
data_preparation/data_preparation.py:85
↓ 1 callers
Method
evaluate
(self)
src/trainer.py:56
↓ 1 callers
Method
feature_base_loss
(self, f, y)
src/model.py:129
↓ 1 callers
Function
fixmatch_augment_pool
()
src/randaugment.py:147
↓ 1 callers
Function
get_SLA_trainer
(base_class)
src/trainer.py:139
↓ 1 callers
Method
get_features
(self, x, reverse=False)
src/model.py:74
↓ 1 callers
Function
get_generator
(seed)
src/dataset.py:59
↓ 1 callers
Method
get_list_file_name
(self)
src/dataset.py:152
↓ 1 callers
Method
get_loader
(self)
src/dataset.py:161
↓ 1 callers
Method
get_loader_name
(self)
src/dataset.py:147
↓ 1 callers
Method
get_lr
(self)
src/util.py:101
↓ 1 callers
Method
get_params
(self, lr)
src/model.py:109
↓ 1 callers
Method
get_predictions
(self, x)
src/model.py:80
↓ 1 callers
Method
get_source_loss
(self, step, *data)
src/trainer.py:40
↓ 1 callers
Method
get_target_loss
(self, step, *data)
src/trainer.py:43
↓ 1 callers
Function
grad_reverse
(x, lambd=1.0)
src/model.py:196
↓ 1 callers
Function
init_weights
(m)
src/model.py:11
↓ 1 callers
Function
load_yaml
(path)
src/util.py:21
↓ 1 callers
Function
main
(args)
main.py:29
↓ 1 callers
Function
my_augment_pool
()
src/randaugment.py:168
↓ 1 callers
Function
pairwise_target
Produce pairwise similarity label.
src/cdac_loss.py:16
↓ 1 callers
Function
pil_loader
(path: str)
src/dataset.py:47
↓ 1 callers
Method
ppc_update
(self, step)
src/trainer.py:155
↓ 1 callers
Function
prediction
(loader, model)
src/evaluation.py:18
↓ 1 callers
Function
prepare_text_list
(args)
data_preparation/data_preparation.py:55
↓ 1 callers
Method
refresh
(self)
src/util.py:98
↓ 1 callers
Function
set_seed
(seed)
src/util.py:41
↓ 1 callers
Function
sigmoid_rampup
Exponential rampup from https://arxiv.org/abs/1610.02242
src/cdac_loss.py:59
↓ 1 callers
Method
sla_loss
(self, f, y1, y2, alpha)
src/model.py:132
↓ 1 callers
Method
training_step
(self, step, *data)
src/trainer.py:67
↓ 1 callers
Method
training_step
(self, step, *data)
src/trainer.py:163
↓ 1 callers
Method
unlabeled_training_step
(self, step, ux)
src/trainer.py:124
Function
AutoContrast
(img, **kwarg)
src/randaugment.py:20
Function
Brightness
(img, v, max_v, bias=0)
src/randaugment.py:24
Function
Color
(img, v, max_v, bias=0)
src/randaugment.py:29
Function
Contrast
(img, v, max_v, bias=0)
src/randaugment.py:34
Function
Cutout
(img, v, max_v, bias=0)
src/randaugment.py:39
Function
Equalize
(img, **kwarg)
src/randaugment.py:63
Function
Identity
(img, **kwarg)
src/randaugment.py:67
Function
Invert
(img, **kwarg)
src/randaugment.py:71
Function
Posterize
(img, v, max_v, bias=0)
src/randaugment.py:75
Function
Rotate
(img, v, max_v, bias=0)
src/randaugment.py:80
Function
Sharpness
(img, v, max_v, bias=0)
src/randaugment.py:87
Function
ShearX
(img, v, max_v, bias=0)
src/randaugment.py:92
Function
ShearY
(img, v, max_v, bias=0)
src/randaugment.py:99
Function
Solarize
(img, v, max_v, bias=0)
src/randaugment.py:106
Function
SolarizeAdd
(img, v, max_v, bias=0, threshold=128)
src/randaugment.py:111
Function
TranslateX
(img, v, max_v, bias=0)
src/randaugment.py:123
Function
TranslateY
(img, v, max_v, bias=0)
src/randaugment.py:131
Method
__call__
(self, img)
src/randaugment.py:199
Method
__call__
(self, img)
src/randaugment.py:217
Method
__getitem__
(self, idx)
src/dataset.py:76
Method
__init__
(self, root, list_file, transform, strong_transform=None)
src/dataset.py:66
Method
__init__
(self, sampler)
src/dataset.py:89
Method
__init__
( self, dataset, batch_size, worker_init_fn=None, generator=None,
src/dataset.py:99
Method
__init__
(self, args, domain_type, mode, labeled=None, strong_transform=False)
src/dataset.py:132
Method
__init__
(self, args, strong_transform=False)
src/dataset.py:198
Method
__init__
(self, n, m)
src/randaugment.py:192
Method
__init__
(self, n, m)
src/randaugment.py:210
Method
__init__
(self, optimizer, num_iters, step=0, final_lr=None)
src/util.py:77
Method
__init__
(self, loaders, args, backbone="resnet34")
src/trainer.py:18
Method
__init__
(self, loaders, args, backbone="resnet34", unlabeled_method="mme")
src/trainer.py:120
Method
__init__
(self, size)
src/model.py:24
Method
__init__
(self, in_dim, hidden_dim=512, num_classes=65, temp=0.05)
src/model.py:64
Method
__init__
( self, backbone="resnet34", hidden_dim=512, output_dim=65, temp=0.05,
src/model.py:85
Method
__iter__
(self)
src/dataset.py:92
Method
__iter__
(self)
src/dataset.py:123
Method
__iter__
(self)
src/dataset.py:223
Method
__len__
(self)
src/dataset.py:73
Method
__len__
(self)
src/dataset.py:127
Method
__len__
(self)
src/dataset.py:240
Method
cdac_loss
(self, step, x, x1, x2)
src/model.py:152
Function
decorator
(func)
src/util.py:58
Function
download_DomainNet
(args)
data_preparation/data_preparation.py:36
Function
download_OfficeHome
(args)
data_preparation/data_preparation.py:23
Method
forward
(self, x, T=1.0)
src/model.py:47
Method
forward
(self, x)
src/model.py:59
Method
forward
(self, x, reverse=False)
src/model.py:70
next →
1–100 of 112, ranked by callers