MCPcopy Create free account

hub / github.com/Christina200/Online-LoRA-official / functions

Functions535 in github.com/Christina200/Online-LoRA-official

Methodavg
(self)
Disjoint/utils.py:62
Functionbar_update
(count, block_size, total_size)
Disjoint/continual_datasets/dataset_utils.py:26
Functionbar_update
(count, block_size, total_size)
Si-blurry/datasets/dataset_utils.py:26
Functionbase_parser
()
Si-blurry/configuration/config_blurry.py:3
Functionbuild_continual_dataloader
(args)
Si-blurry/datasets/my_datasets.py:34
Methodconvert_train_task
(self, task : torch.Tensor, **kwargs)
Si-blurry/models/l2p.py:169
Methodcurrent_task_data
(self,train_loader)
Si-blurry/online_lora.py:685
Methodcurrent_task_data
(self,train_loader)
Si-blurry/methods/_trainer.py:495
Functioncycle
(iterable)
Si-blurry/utils/train_utils.py:6
Functioncycle
(iterable)
Si-blurry/methods/er_baseline.py:15
Methoddisplay
(self, batch)
Si-blurry/utils/metric.py:66
Methoddisplay_summary
(self)
Si-blurry/utils/metric.py:71
Functiondownload_file_from_google_drive
Download a Google Drive file from and place it in root. Args: file_id (str): id of file to be downloaded root (str): Directory to
Disjoint/continual_datasets/dataset_utils.py:152
Functiondownload_file_from_google_drive
Download a Google Drive file from and place it in root. Args: file_id (str): id of file to be downloaded root (str): Directory to
Si-blurry/datasets/dataset_utils.py:152
Methodextra_repr
(self)
Disjoint/continual_datasets/continual_datasets.py:269
Methodextra_repr
(self)
Disjoint/continual_datasets/continual_datasets.py:315
Methodextra_repr
(self)
Si-blurry/datasets/continual_datasets.py:498
Methodextra_repr
(self)
Si-blurry/datasets/continual_datasets.py:544
Methodforward
(self, x, use_new=True)
Disjoint/lora.py:35
Methodforward
(self, x: Tensor, use_new: bool = True)
Disjoint/lora.py:219
Methodforward
(self, x, use_new=True)
Disjoint/lora.py:259
Methodforward
(self, x: Tensor, use_new: bool = True)
Disjoint/lora.py:431
Methodforward
(self, x)
Disjoint/lora.py:476
Methodforward
(self, x: Tensor)
Disjoint/lora.py:608
Methodforward
(self, x: Tensor, use_new: bool = True)
Disjoint/lora.py:760
Methodforward
x, q(query), k(key), v(value) : (B(batch_size), S(seq_len), D(dim)) mask : (B(batch_size) x S(seq_len)) * split D(dim) into (
Disjoint/base_vit.py:263
Methodforward
(self, x)
Disjoint/base_vit.py:295
Methodforward
(self, x, mask)
Disjoint/base_vit.py:312
Methodforward
(self, x, mask=None)
Disjoint/base_vit.py:328
Methodforward
Input has shape `(batch_size, seq_len, emb_dim)`
Disjoint/base_vit.py:341
Methodforward
(self, x, use_new=True)
Si-blurry/utils/lora.py:34
Methodforward
(self, x: Tensor, use_new: bool = True)
Si-blurry/utils/lora.py:225
Methodforward
(self, x, use_new=True)
Si-blurry/utils/lora.py:265
Methodforward
(self, x: Tensor, use_new: bool = True)
Si-blurry/utils/lora.py:470
Methodforward
(self, x)
Si-blurry/utils/lora.py:524
Methodforward
(self, x: Tensor)
Si-blurry/utils/lora.py:663
Methodforward
x, q(query), k(key), v(value) : (B(batch_size), S(seq_len), D(dim)) mask : (B(batch_size) x S(seq_len)) * split D(dim) into (
Si-blurry/utils/base_vit.py:263
Methodforward
(self, x)
Si-blurry/utils/base_vit.py:295
Methodforward
(self, x, mask)
Si-blurry/utils/base_vit.py:312
Methodforward
(self, x, mask=None)
Si-blurry/utils/base_vit.py:328
Methodforward
Input has shape `(batch_size, seq_len, emb_dim)`
Si-blurry/utils/base_vit.py:341
Methodforward
Breaks image into patches, applies transformer, applies MLP head. Args: x (tensor): `b,c,fh,fw`
Si-blurry/utils/base_vit.py:475
Methodforward
(self, query : torch.Tensor, **kwargs)
Si-blurry/models/l2p.py:58
Methodforward
(self, inputs : torch.Tensor, **kwargs)
Si-blurry/models/mvp.py:228
Functionget_args_parser
(subparsers)
Disjoint/configs/sketch_online_lora.py:3
Functionget_args_parser
(subparsers)
Disjoint/configs/cifar100_online_lora.py:3
Functionget_args_parser
(subparsers)
Disjoint/configs/imagenetR_online_lora.py:3
Functionget_args_parser
(subparsers)
Disjoint/configs/core50_online_lora.py:3
Methodget_batch
(self, batch_size, use_weight=False, transform=None)
Si-blurry/utils/datasets.py:169
Methodget_count
(self)
Si-blurry/models/l2p.py:174
Methodget_count
(self)
Si-blurry/models/mvp.py:241
Methodget_data
(self)
Si-blurry/utils/datasets.py:69
Functionget_method
(name)
Si-blurry/methods/__init__.py:9
Functionget_statistics
Returns statistics of the dataset given a string of dataset name. To add new dataset, please add required statistics here
Si-blurry/utils/datasets.py:287
Methodget_task
(self, cur_iter: int)
Si-blurry/utils/online_sampler.py:170
Methodget_task
(self, cur_iter : int)
Si-blurry/utils/online_sampler.py:333
Methodget_task_classes
(self, cur_iter : int)
Si-blurry/utils/online_sampler.py:338
Functionget_test_datalist
(dataset)
Si-blurry/utils/datasets.py:283
Functionget_train_datalist
(dataset, n_tasks, m, n, rnd_seed, cur_iter: int)
Si-blurry/utils/datasets.py:275
Methodget_two_batches
(self, batch_size, test_transform)
Si-blurry/utils/datasets.py:204
Methodget_weight
(self)
Si-blurry/utils/memory.py:76
Functionget_world_size
()
Disjoint/utils.py:202
Methodglobal_avg
(self)
Disjoint/utils.py:67
Functioninit_ckpt_path
(loglevel=logging.INFO)
Disjoint/utils.py:265
Functioninit_distributed_mode
(args)
Disjoint/utils.py:223
Methodis_balanced
(self)
Si-blurry/utils/datasets.py:267
Functionlist_dir
List all directories at a given root Args: root (str): Path to directory whose folders need to be listed prefix (bool, optional):
Disjoint/continual_datasets/dataset_utils.py:108
Functionlist_dir
List all directories at a given root Args: root (str): Path to directory whose folders need to be listed prefix (bool, optional):
Si-blurry/datasets/dataset_utils.py:108
Functionlist_files
List all files ending with a suffix at a given root Args: root (str): Path to directory whose folders need to be listed suffix (st
Disjoint/continual_datasets/dataset_utils.py:129
Functionlist_files
List all files ending with a suffix at a given root Args: root (str): Path to directory whose folders need to be listed suffix (st
Si-blurry/datasets/dataset_utils.py:129
Methodload_fc_parameters
r"""Only safetensors is supported now. pip install safetensor if you do not have one installed yet.
Disjoint/lora.py:143
Methodload_fc_parameters
r"""Only safetensors is supported now. pip install safetensor if you do not have one installed yet.
Si-blurry/utils/lora.py:137
Methodload_fc_parameters
r"""Only safetensors is supported now. pip install safetensor if you do not have one installed yet.
Si-blurry/utils/lora.py:370
Methodload_lora_parameters
r"""Only safetensors is supported now. pip install safetensor if you do not have one installed yet.
Disjoint/lora.py:180
Methodload_lora_parameters
r"""Only safetensors is supported now. pip install safetensor if you do not have one installed yet.\ load both lora and
Disjoint/lora.py:377
Methodload_lora_parameters
r"""Only safetensors is supported now. pip install safetensor if you do not have one installed yet.\ load both lora and
Disjoint/lora.py:707
Methodload_lora_parameters
r"""Only safetensors is supported now. pip install safetensor if you do not have one installed yet.
Si-blurry/utils/lora.py:176
Methodload_lora_parameters
r"""Only safetensors is supported now. pip install safetensor if you do not have one installed yet.\ load both lora and
Si-blurry/utils/lora.py:408
Methodloss_fn
(self, output, target)
Si-blurry/models/l2p.py:165
Methodloss_fn
(self, output, target)
Si-blurry/models/mvp.py:235
Methodmake_cls_dist_set
(self, labels, transform=None)
Si-blurry/utils/datasets.py:227
Methodmake_val_set
(self, size=None, transform=None)
Si-blurry/utils/datasets.py:244
Methodmedian
(self)
Disjoint/utils.py:57
Methodonline_after_task
(self, task_id)
Si-blurry/methods/er_baseline.py:85
Methodonline_after_task
(self, cur_iter)
Si-blurry/methods/mvp.py:152
Methodonline_before_task
(self, task_id)
Si-blurry/methods/er_baseline.py:82
Methodonline_before_task
(self, task_id)
Si-blurry/methods/mvp.py:149
Methodonline_evaluate
(self, test_loader)
Si-blurry/methods/er_baseline.py:132
Methodonline_evaluate
(self, test_loader)
Si-blurry/methods/mvp.py:104
Methodonline_step
(self, images, labels, idx)
Si-blurry/online_lora.py:488
Methodonline_step
(self, images, labels, idx)
Si-blurry/methods/er_baseline.py:25
Methodonline_step
(self, images, labels, idx)
Si-blurry/methods/mvp.py:38
Methodprefix_tuning
(self, x : torch.Tensor, g_prompt : torch.Tensor,
Si-blurry/models/mvp.py:128
Methodprint
(*args, **kwargs)
Si-blurry/online_lora.py:563
Methodprint
(*args, **kwargs)
Si-blurry/methods/_trainer.py:373
Methodprocessed_folder
(self)
Si-blurry/datasets/continual_datasets.py:331
Methodprocessed_folder
(self)
Si-blurry/datasets/continual_datasets.py:407
Methodprompt_tuning
(self, x : torch.Tensor, g_prompt : torch.Tensor,
Si-blurry/models/mvp.py:106
Methodraw_folder
(self)
Si-blurry/datasets/continual_datasets.py:327
Methodraw_folder
(self)
Si-blurry/datasets/continual_datasets.py:403
← previousnext →401–500 of 535, ranked by callers