Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ASTRAL-Group/ASTRA
/ functions
Functions
656 in github.com/ASTRAL-Group/ASTRA
⨍
Functions
656
◇
Types & classes
97
↳
Endpoints
1
↓ 2 callers
Method
to_dict
(self)
minigpt4/common/config.py:165
↓ 2 callers
Function
translate_level_to_args
(translate_const, MAX_LEVEL, replace_value)
minigpt4/processors/randaugment.py:240
↓ 2 callers
Function
tune_channel
(ch)
minigpt4/processors/randaugment.py:25
↓ 2 callers
Method
unpatchify
(self, x)
image_attr/context_partitioner.py:91
↓ 2 callers
Method
update
(self, value, n=1)
minigpt4/common/logger.py:32
↓ 2 callers
Method
update_img_prompts
(self, img_prompts)
minigpt_utils/prompt_wrapper.py:92
↓ 2 callers
Function
warmup_lr_schedule
Warmup the learning rate
minigpt4/common/optims.py:108
↓ 1 callers
Method
__getitem__
(self, index)
minigpt4/datasets/datasets/caption_datasets.py:44
↓ 1 callers
Method
__init__
(self, model, vis_processor, device='cuda:0')
minigpt4/conversation/conversation.py:142
↓ 1 callers
Method
__init__
vis_root (string): Root directory of images (e.g. coco/images/) ann_root (string): directory to store the annotation file
minigpt4/datasets/datasets/base_dataset.py:16
↓ 1 callers
Method
__init__
vis_root (string): Root directory of images (e.g. coco/images/) ann_root (string): directory to store the annotation file
minigpt4/datasets/datasets/caption_datasets.py:29
↓ 1 callers
Method
__init__
(self)
minigpt4/models/base_model.py:22
↓ 1 callers
Method
__init__
(self, model, max_new_tokens=512, num_beams=1, min_length=1, top_p=0.9, repetition_penalty=1.0,
minigpt_utils/generator.py:20
↓ 1 callers
Method
_add_instance_ids
(self, key="instance_id")
minigpt4/datasets/datasets/base_dataset.py:44
↓ 1 callers
Function
_apply
(x)
minigpt4/datasets/data_utils.py:70
↓ 1 callers
Method
_build_opt_list
(self, opts)
minigpt4/common/config.py:52
↓ 1 callers
Method
_char_range_to_token_range
(self, start_index, end_index)
image_attr/image_attr_minigpt.py:208
↓ 1 callers
Method
_char_range_to_token_range
(self, start_index, end_index)
image_attr/image_attr_llava.py:170
↓ 1 callers
Method
_char_range_to_token_range
(self, start_index, end_index)
image_attr/image_attr_qwen.py:184
↓ 1 callers
Function
_color_scale
(val, max_val)
image_attr/utils.py:403
↓ 1 callers
Method
_convert_to_dot_list
(self, opts)
minigpt4/common/config.py:114
↓ 1 callers
Function
_create_regression_dataset
( num_masks, num_sources, get_prompt_ids, response_ids, alpha, base_seed=0 )
image_attr/utils.py:71
↓ 1 callers
Method
_download_ann
Download annotation files if necessary. All the vision-language datasets should have annotations of unified format. storage_
minigpt4/datasets/builders/base_dataset_builder.py:95
↓ 1 callers
Method
_download_data
(self)
minigpt4/datasets/builders/base_dataset_builder.py:91
↓ 1 callers
Method
_download_vis
(self)
minigpt4/datasets/builders/base_dataset_builder.py:152
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
minigpt4/models/modeling_llama.py:43
↓ 1 callers
Method
_get_attributions_for_ids_range
(self, ids_start_idx, ids_end_idx)
image_attr/image_attr_minigpt.py:256
↓ 1 callers
Method
_get_attributions_for_ids_range
(self, ids_start_idx, ids_end_idx)
image_attr/image_attr_llava.py:218
↓ 1 callers
Method
_get_attributions_for_ids_range
(self, ids_start_idx, ids_end_idx)
image_attr/image_attr_qwen.py:232
↓ 1 callers
Function
_get_google_drive_file_id
(url: str)
minigpt4/common/utils.py:141
↓ 1 callers
Function
_get_llava_response_logit_probs
(dataset, model, processor, tokenizer, response_length, batch_size)
image_attr/utils.py:208
↓ 1 callers
Function
_get_minigpt_response_logit_probs
(dataset, model, processor, tokenizer, response_length, batch_size)
image_attr/utils.py:187
↓ 1 callers
Function
_get_qwen_response_logit_probs
(dataset, model, processor, tokenizer, response_length, batch_size)
image_attr/utils.py:228
↓ 1 callers
Function
_get_response_logit_probs
(dataset, model, tokenizer, response_length, batch_size)
image_attr/utils.py:145
↓ 1 callers
Function
_get_vlm_response_logit_probs
(dataset, model, processor, tokenizer, response_length, batch_size)
image_attr/utils.py:166
↓ 1 callers
Method
_indices_to_token_indices
(self, start_index=None, end_index=None)
image_attr/image_attr_minigpt.py:216
↓ 1 callers
Method
_indices_to_token_indices
(self, start_index=None, end_index=None)
image_attr/image_attr_llava.py:178
↓ 1 callers
Method
_indices_to_token_indices
(self, start_index=None, end_index=None)
image_attr/image_attr_qwen.py:192
↓ 1 callers
Method
_load_checkpoint
Resume from a checkpoint.
minigpt4/runners/runner_base.py:622
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for bi-directional self-attention.
minigpt4/models/modeling_llama.py:25
↓ 1 callers
Function
_make_loader
(dataset, tokenizer, batch_size)
image_attr/utils.py:135
↓ 1 callers
Method
_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
minigpt4/models/modeling_llama.py:442
↓ 1 callers
Method
_reload_best_model
Load the best checkpoint for evaluation.
minigpt4/runners/runner_base.py:602
↓ 1 callers
Method
after_evaluation
(self, **kwargs)
minigpt4/tasks/base_task.py:77
↓ 1 callers
Function
apply_rotary_pos_emb
(q, k, cos, sin, position_ids)
minigpt4/models/modeling_llama.py:116
↓ 1 callers
Function
apply_to_sample
(f, sample)
minigpt4/datasets/data_utils.py:66
↓ 1 callers
Method
before_evaluation
(self, model, dataset, **kwargs)
minigpt4/tasks/base_task.py:74
↓ 1 callers
Method
build
Create by split datasets inheriting torch.minigpt_utils.data.Datasets. # build() can be dataset-specific. Overwrite to customize.
minigpt4/datasets/builders/base_dataset_builder.py:166
↓ 1 callers
Method
build_dataset_config
(config)
minigpt4/common/config.py:88
↓ 1 callers
Method
build_datasets
(self)
minigpt4/datasets/builders/base_dataset_builder.py:45
↓ 1 callers
Method
build_model_config
(config, **kwargs)
minigpt4/common/config.py:57
↓ 1 callers
Method
build_runner_config
(config)
minigpt4/common/config.py:84
↓ 1 callers
Method
collater
(self, samples)
minigpt4/datasets/datasets/base_dataset.py:37
↓ 1 callers
Function
convert_weights_to_fp16
Convert applicable model parameters to fp16
minigpt4/models/eva_vit.py:397
↓ 1 callers
Method
copy
(self)
minigpt4/conversation/conversation.py:87
↓ 1 callers
Function
cosine_lr_schedule
Decay the learning rate
minigpt4/common/optims.py:99
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_minigpt_jb.py:137
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_llava_jb_ood.py:108
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_qwen_jb.py:115
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_llava_typo.py:110
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_minigpt_typo.py:124
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_llava_toxic.py:105
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_qwen_jb_ood.py:116
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_minigpt_jb_ood.py:137
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_minigpt_toxic.py:128
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_qwen_toxic.py:114
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_llava_jb.py:107
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
steer_eval/steering_qwen_typo.py:109
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
utility_eval/minigpt_mmbench.py:148
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
utility_eval/minigpt_mmvet.py:117
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
utility_eval/qwen_mmvet.py:110
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
utility_eval/llava_mmvet.py:109
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
utility_eval/llava_mmbench.py:132
↓ 1 callers
Function
create_custom_forward_hook
(steer_vector, reference_vector, steer_type, alpha)
utility_eval/qwen_mmbench.py:147
↓ 1 callers
Function
create_eva_vit_g
(img_size=224,drop_path_rate=0.4,use_checkpoint=False,precision="fp16")
minigpt4/models/eva_vit.py:415
↓ 1 callers
Method
create_loaders
Create dataloaders for training and validation.
minigpt4/runners/runner_base.py:491
↓ 1 callers
Function
create_runner_config_validator
()
minigpt4/common/config.py:261
↓ 1 callers
Method
default_config_path
(cls, type="default")
minigpt4/datasets/builders/base_dataset_builder.py:88
↓ 1 callers
Method
evaluate
(self, cur_epoch="best", skip_reload=False)
minigpt4/runners/runner_base.py:423
↓ 1 callers
Method
evaluation
(self, model, data_loader, cuda_enabled=True)
minigpt4/tasks/base_task.py:83
↓ 1 callers
Method
fix_init_weight
(self)
minigpt4/models/eva_vit.py:300
↓ 1 callers
Method
forward_features
(self, x)
minigpt4/models/eva_vit.py:324
↓ 1 callers
Method
generate_context_embedding
(self, batch_text_embs, batch_img_embs)
minigpt_utils/prompt_wrapper.py:134
↓ 1 callers
Function
get_abs_path
(rel_path)
minigpt4/common/utils.py:50
↓ 1 callers
Function
get_cached_file_path
()
minigpt4/common/dist_utils.py:123
↓ 1 callers
Method
get_context_emb
(self, conv, img_list)
minigpt4/conversation/conversation.py:215
↓ 1 callers
Function
get_dist_info
()
minigpt4/common/dist_utils.py:93
↓ 1 callers
Function
get_llava_masks_and_logit_probs
( model, processor, tokenizer, num_masks, num_sources, partitioner, get_query_ids,
image_attr/utils.py:277
↓ 1 callers
Method
get_lr_scheduler_class
(cls, name)
minigpt4/common/registry.py:248
↓ 1 callers
Function
get_minigpt_masks_and_logit_probs
( model, processor, tokenizer, num_masks, num_sources, partitioner, get_query_ids,
image_attr/utils.py:333
↓ 1 callers
Method
get_names
(self)
minigpt4/datasets/builders/__init__.py:68
↓ 1 callers
Function
get_options
(row, options)
utility_eval/minigpt_mmbench.py:78
↓ 1 callers
Function
get_options
(row, options)
utility_eval/llava_mmbench.py:62
↓ 1 callers
Function
get_options
(row, options)
utility_eval/qwen_mmbench.py:65
↓ 1 callers
Method
get_prompt
(self)
minigpt4/conversation/conversation.py:54
↓ 1 callers
Function
get_qwen_masks_and_logit_probs
( model, processor, tokenizer, num_masks, num_sources, partitioner, get_query_ids,
image_attr/utils.py:305
↓ 1 callers
Method
get_random_ops
(self)
minigpt4/processors/randaugment.py:336
↓ 1 callers
Method
get_random_ops
(self)
minigpt4/processors/randaugment.py:363
↓ 1 callers
Function
get_redirected_url
Given a URL, returns the URL it redirects to or the original URL in case of no indirection
minigpt4/common/utils.py:78
↓ 1 callers
Method
get_source
(self, index: int)
image_attr/context_partitioner.py:113
← previous
next →
101–200 of 656, ranked by callers