MCPcopy Create free account

hub / github.com/ASTRAL-Group/ASTRA / functions

Functions656 in github.com/ASTRAL-Group/ASTRA

↓ 1 callersMethodget_task_class
(cls, name)
minigpt4/common/registry.py:240
↓ 1 callersMethodget_vocabulary
(self)
minigpt_utils/text_attacker.py:33
↓ 1 callersMethodglobal_avg
(self)
minigpt4/common/logger.py:109
↓ 1 callersMethodhotflip_attack
(self, grad, token, increase_loss=False, num_candidates=1)
minigpt_utils/text_attacker.py:66
↓ 1 callersMethodinit_Qformer
(cls, num_query_token, vision_width, cross_attention_freq=2)
minigpt4/models/blip2.py:46
↓ 1 callersMethodinit_tokenizer
(cls)
minigpt4/models/blip2.py:30
↓ 1 callersMethodinit_vision_encoder
( cls, model_name, img_size, drop_path_rate, use_grad_checkpoint, precision )
minigpt4/models/blip2.py:61
↓ 1 callersFunctioninterpolate_pos_embed
(model, checkpoint_model)
minigpt4/models/eva_vit.py:373
↓ 1 callersMethodlist_lr_schedulers
(cls)
minigpt4/common/registry.py:272
↓ 1 callersMethodlist_tasks
(cls)
minigpt4/common/registry.py:264
↓ 1 callersFunctionload_image_from_base64
(image)
utility_eval/minigpt_mmbench.py:75
↓ 1 callersFunctionload_image_from_base64
(image)
utility_eval/llava_mmbench.py:59
↓ 1 callersFunctionload_image_from_base64
(image)
utility_eval/qwen_mmbench.py:62
↓ 1 callersFunctionload_images_from_folder
(folder, args)
steer_eval/steering_minigpt_jb.py:66
↓ 1 callersFunctionload_images_from_folder
(folder, args)
steer_eval/steering_llava_jb_ood.py:52
↓ 1 callersFunctionload_images_from_folder
(folder, args)
steer_eval/steering_qwen_jb.py:46
↓ 1 callersFunctionload_images_from_folder
(folder, args)
steer_eval/steering_llava_toxic.py:50
↓ 1 callersFunctionload_images_from_folder
(folder, args)
steer_eval/steering_qwen_jb_ood.py:49
↓ 1 callersFunctionload_images_from_folder
(folder, args)
steer_eval/steering_minigpt_jb_ood.py:69
↓ 1 callersFunctionload_images_from_folder
(folder, args)
steer_eval/steering_minigpt_toxic.py:64
↓ 1 callersFunctionload_images_from_folder
(folder, args)
steer_eval/steering_qwen_toxic.py:49
↓ 1 callersFunctionload_images_from_folder
(folder, args)
steer_eval/steering_llava_jb.py:49
↓ 1 callersFunctionload_images_from_folder
(folder)
extract_ref/extracting_activations_minigpt_ref.py:46
↓ 1 callersFunctionload_images_from_folder
(folder)
extract_ref/extracting_activations_qwen_ref.py:21
↓ 1 callersFunctionload_images_from_folder
(folder)
extract_ref/extracting_activations_llava_ref.py:21
↓ 1 callersFunctionload_images_from_folder
(folder)
extract_attr/extract_llava_jb_attr.py:17
↓ 1 callersFunctionload_images_from_folder
(folder)
extract_attr/extract_minigpt_toxic_attr.py:23
↓ 1 callersFunctionload_images_from_folder
(folder)
extract_attr/extract_qwen_toxic_attr.py:24
↓ 1 callersFunctionload_images_from_folder
(folder)
extract_attr/extract_qwen_jb_attr.py:17
↓ 1 callersFunctionload_images_from_folder
(folder)
extract_attr/extract_minigpt_jb_attr.py:17
↓ 1 callersFunctionload_images_from_folder
(folder)
extract_attr/extract_llava_toxic_attr.py:23
↓ 1 callersFunctionload_preprocess
Load preprocessor configs and construct preprocessors. If no preprocessor is specified, return BaseProcessor, which does not do any preproce
minigpt4/models/__init__.py:61
↓ 1 callersMethodlog_config
(self)
minigpt4/runners/runner_base.py:656
↓ 1 callersMethodmodel
A property to get the DDP-wrapped model on the device.
minigpt4/runners/runner_base.py:79
↓ 1 callersFunctionparse_args
()
steer_eval/steering_minigpt_jb.py:22
↓ 1 callersFunctionparse_args
()
steer_eval/steering_llava_jb_ood.py:18
↓ 1 callersFunctionparse_args
()
steer_eval/steering_qwen_jb.py:17
↓ 1 callersFunctionparse_args
()
steer_eval/steering_llava_typo.py:19
↓ 1 callersFunctionparse_args
()
steer_eval/steering_minigpt_typo.py:24
↓ 1 callersFunctionparse_args
()
steer_eval/steering_llava_toxic.py:18
↓ 1 callersFunctionparse_args
()
steer_eval/steering_qwen_jb_ood.py:17
↓ 1 callersFunctionparse_args
()
steer_eval/steering_minigpt_jb_ood.py:22
↓ 1 callersFunctionparse_args
()
steer_eval/steering_minigpt_toxic.py:23
↓ 1 callersFunctionparse_args
()
steer_eval/steering_qwen_toxic.py:18
↓ 1 callersFunctionparse_args
()
steer_eval/steering_llava_jb.py:18
↓ 1 callersFunctionparse_args
()
steer_eval/steering_qwen_typo.py:20
↓ 1 callersFunctionparse_args
()
utility_eval/minigpt_mmbench.py:20
↓ 1 callersFunctionparse_args
()
utility_eval/minigpt_mmvet.py:24
↓ 1 callersFunctionparse_args
()
utility_eval/llava_mmvet.py:20
↓ 1 callersFunctionparse_args
()
utility_eval/llava_mmbench.py:17
↓ 1 callersFunctionparse_args
()
utility_eval/qwen_mmbench.py:19
↓ 1 callersFunctionparse_args
()
extract_ref/extracting_activations_minigpt_ref.py:17
↓ 1 callersFunctionparse_args
()
extract_act/extracting_activations_minigpt_jb.py:14
↓ 1 callersFunctionparse_args
()
extract_act/extracting_activations_minigpt_toxic.py:15
↓ 1 callersMethodplot_loss
(self)
minigpt_utils/text_attacker.py:186
↓ 1 callersFunctionposterize_level_to_args
(MAX_LEVEL)
minigpt4/processors/randaugment.py:270
↓ 1 callersMethodpre_caption
(self, caption)
minigpt4/processors/blip_processors.py:49
↓ 1 callersMethodprune_heads
(self, heads)
minigpt4/models/Qformer.py:299
↓ 1 callersFunctionrecord_cuda_stream
(batch)
minigpt4/datasets/datasets/dataloader_utils.py:114
↓ 1 callersFunctionreorg_datasets_by_split
Organizes datasets by split. Args: datasets: dict of torch.minigpt_utils.data.Dataset objects by name. Returns: Dict of
minigpt4/datasets/data_utils.py:99
↓ 1 callersFunctionrotate_level_to_args
(MAX_LEVEL, replace_value)
minigpt4/processors/randaugment.py:278
↓ 1 callersFunctionrtp_read
(text_file)
datasets/harmful_corpus/split_toxicity_set.py:5
↓ 1 callersMethodsave_attention_map
(self, attention_map)
minigpt4/models/Qformer.py:155
↓ 1 callersFunctionsetup_for_distributed
This function disables printing when not in master process
minigpt4/common/dist_utils.py:17
↓ 1 callersMethodsetup_output_dir
(self)
minigpt4/runners/runner_base.py:348
↓ 1 callersMethodsetup_task
(cls, **kwargs)
minigpt4/tasks/base_task.py:26
↓ 1 callersFunctionsolarize_level_to_args
(MAX_LEVEL)
minigpt4/processors/randaugment.py:258
↓ 1 callersFunctionsplit_text
Split response into parts and return the parts, start indices, and separators.
image_attr/utils.py:19
↓ 1 callersFunctionstep_lr_schedule
Decay the learning rate
minigpt4/common/optims.py:115
↓ 1 callersMethodsynchronize_between_processes
(self)
minigpt4/common/logger.py:115
↓ 1 callersMethodtrain
(self)
minigpt4/runners/runner_base.py:363
↓ 1 callersMethodtrain_epoch
(self, epoch)
minigpt4/runners/runner_base.py:434
↓ 1 callersMethodtrain_step
(self, model, samples)
minigpt4/tasks/base_task.py:67
↓ 1 callersMethodupdate_adv_prompt
(self, adv_prompt_tokens, idx, new_token)
minigpt_utils/text_attacker.py:102
↓ 1 callersMethodvalid_step
(self, model, samples)
minigpt4/tasks/base_task.py:71
↓ 1 callersMethodvalidate
Convert yaml config (dict-like) to list, required by argparse.
minigpt4/common/config.py:226
↓ 1 callersMethodvit_to_cpu
(self)
minigpt4/models/mini_gpt4.py:123
Method__call__
(self, input_ids: torch.LongTensor, scores: torch.FloatTensor)
minigpt4/conversation/conversation.py:118
Method__call__
(self, item)
minigpt4/processors/base_processor.py:16
Method__call__
(self, img)
minigpt4/processors/randaugment.py:340
Method__call__
(self, frames)
minigpt4/processors/randaugment.py:367
Method__call__
(self, caption)
minigpt4/processors/blip_processors.py:34
Method__call__
(self, item)
minigpt4/processors/blip_processors.py:88
Method__call__
(self, item)
minigpt4/processors/blip_processors.py:128
Method__call__
(self, input_ids: torch.LongTensor, scores: torch.FloatTensor)
minigpt_utils/generator.py:10
Method__getattr__
(self, attr)
minigpt4/common/logger.py:94
Method__getattr__
(self, name)
minigpt4/datasets/datasets/dataloader_utils.py:109
Method__getitem__
(self, key)
minigpt4/common/config.py:212
Method__getitem__
(self, index)
minigpt4/datasets/datasets/caption_datasets.py:72
Method__getitem__
(self, index)
minigpt4/datasets/datasets/cc_sbu_dataset.py:31
Method__init__
( self, model: Any, tokenizer: Any, pretrained_model_name_or_path: str,
image_attr/image_attr_minigpt.py:45
Method__init__
( self, model: Any, tokenizer: Any, pretrained_model_name_or_path: str,
image_attr/image_attr_llava.py:36
Method__init__
(self, lasso_alpha: float = 0.01)
image_attr/solver.py:38
Method__init__
(self, image: Image, source_type: str = "patch", image_size: int = 224)
image_attr/context_partitioner.py:56
Method__init__
(self, context: str, source_type: str = "sentence")
image_attr/context_partitioner.py:150
Method__init__
( self, model: Any, tokenizer: Any, pretrained_model_name_or_path: str,
image_attr/image_attr_qwen.py:37
Method__init__
(self, cfg, task, model, datasets, job_id)
minigpt4/runners/runner_base.py:46
Method__init__
(self, stops=[], encounters=1)
minigpt4/conversation/conversation.py:114
Method__init__
(self)
minigpt4/tasks/image_text_pretrain.py:14
Method__init__
(self, **kwargs)
minigpt4/tasks/base_task.py:20
← previousnext →201–300 of 656, ranked by callers