MCPcopy Create free account

hub / github.com/PKU-Alignment/align-anything / functions

Functions3,036 in github.com/PKU-Alignment/align-anything

↓ 1 callersMethoddecode_and_get_logits
(self, embedded_features, text_feats, padding_mask=None)
projects/eval-anything/eval_anything/third_party/SPOC/spoc_model/early_fusion_tsfm_models.py:211
↓ 1 callersMethoddecode_prompt_responses
Decode the input_ids to get prompts and responses Args: actor_batch: Batch containing input_ids Returns:
align_anything/trainers/text_to_text/ppo_remote_rm.py:267
↓ 1 callersMethoddisplay_task_results
Display evaluation results using both console table and Gradio interface. Args: results (dict[str, dict[str, dict[str, float]]]):
projects/eval-anything/eval_anything/pipeline/base_task.py:139
↓ 1 callersMethoddistribute_target
(self, observations)
align_anything/models/spoc_models/models/allenact_transformer_models/allenact_dino_transformer.py:576
↓ 1 callersFunctiondownload_and_rename_file
(info)
projects/eval-anything/scripts/download_objaverse_houses.py:24
↓ 1 callersFunctiondownload_datasets
(repo_id, files, local_dir)
projects/eval-anything/scripts/download_dataset.py:26
↓ 1 callersFunctiondownload_malicious_instruct_models
自动下载MaliciousInstruct评估模型从Google Drive Args: drive_folder_id (str): Google Drive文件夹ID local_dir (str): 本地保存目录 force_
projects/eval-anything/eval_anything/benchmarks/text_to_text/MaliciousInstruct/utils.py:119
↓ 1 callersMethoddynamic_change_instruction
(self, task: Optional[SubTaskType], goal: str)
projects/eval-anything/eval_anything/third_party/SPOC/environment/navigation_sensors.py:187
↓ 1 callersMethodencode_bbox
(self, observations)
align_anything/models/spoc_models/models/allenact_transformer_models/allenact_dino_transformer.py:591
↓ 1 callersMethodencode_imgs
(self, imgs)
projects/eval-anything/eval_anything/third_party/SPOC/spoc_model/text_cond_visual_encoder.py:181
↓ 1 callersMethodencode_imgs
(self, imgs)
align_anything/models/spoc_models/models/transformer_models/text_cond_visual_encoder.py:162
↓ 1 callersMethodencode_imgs
(self, imgs)
align_anything/models/spoc_models/models/transformer_models/text_cond_visual_encoder.py:430
↓ 1 callersMethodencode_observation
(task_info, str_max_len: Union[str, int])
projects/eval-anything/eval_anything/third_party/SPOC/environment/navigation_sensors.py:148
↓ 1 callersMethodencode_text
(self, preproc_text_input)
align_anything/models/spoc_models/models/transformer_models/text_cond_visual_encoder.py:152
↓ 1 callersFunctionestimate_pass_at_k
Estimates pass@k of each problem and returns them in an array.
projects/eval-anything/eval_anything/utils/utils.py:415
↓ 1 callersFunctionestimator
Calculates 1 - comb(n - c, k) / comb(n, k).
projects/eval-anything/eval_anything/utils/utils.py:424
↓ 1 callersMethodeval
Evaluate the model on the evaluation dataset.
align_anything/trainers/text_to_text/rm_score.py:97
↓ 1 callersFunctioneval_sample_to_normalized_eval_sample
( task_type: str, sample: EvalSample, index: int )
projects/eval-anything/eval_anything/dataloader/tv2act_dataloader.py:152
↓ 1 callersMethodeval_unsafe_labels
Safety judgement on given question-answer pairs. The safety judgement is based on the generated response of LLMs. Args:
projects/eval-anything/eval_anything/benchmarks/text_to_text/salad_bench/evaluator.py:354
↓ 1 callersFunctionevaluate_flames
Evaluate the Flames benchmark.
projects/eval-anything/eval_anything/benchmarks/text_to_text/Flames/utils.py:214
↓ 1 callersMethodevaluate_on_task
(self, input_task: InferenceInput, agent: AbstractAgent)
projects/eval-anything/eval_anything/pipeline/tv2act_benchmark.py:345
↓ 1 callersFunctionevaluate_with_GPT4
(question, response)
projects/eval-anything/eval_anything/benchmarks/text_to_text/FakeAlignment/eval.py:55
↓ 1 callersMethodextract_audios_from_conversation
Extract all audios from the conversation with consistent format
projects/eval-anything/eval_anything/utils/mm_data_manager.py:354
↓ 1 callersFunctionextract_content
(tag, text)
projects/eval-anything/eval_anything/benchmarks/text_to_text/HExPHI/utils.py:60
↓ 1 callersFunctionextract_cot_and_answer
Extract chain of thought (CoT) and final answer from response. Args: response: Model response
projects/eval-anything/eval_anything/benchmarks/text_to_text/DeceptionBench/utils.py:101
↓ 1 callersMethodextract_frames
(self, frames: List[PIL.Image])
align_anything/utils/process_video.py:35
↓ 1 callersMethodextract_from_conversation
Implement abstract method to extract images from conversation.
projects/eval-anything/eval_anything/utils/mm_data_manager.py:201
↓ 1 callersMethodextract_images_from_conversation
Extract all images from the conversation with consistent format
projects/eval-anything/eval_anything/utils/mm_data_manager.py:107
↓ 1 callersFunctionextract_json_from_response
(response_list)
projects/eval-anything/eval_anything/benchmarks/text_to_text/aegis_aicontent_safety_dataset/utils.py:64
↓ 1 callersFunctionextract_label_from_content
(resp: str)
projects/eval-anything/eval_anything/benchmarks/text_to_text/salad_bench/text_utils.py:21
↓ 1 callersFunctionextract_score_and_reason
Extract score and reason, supporting multiple formats
projects/intermt/intermt_bench/crucial_step_recognition/recognition_inference.py:93
↓ 1 callersMethodextract_videos_from_conversation
Extract all videos and their metadata from the conversation. Args: conversation: Conversation object Returns:
projects/eval-anything/eval_anything/utils/mm_data_manager.py:558
↓ 1 callersFunctionfetch_image
(ele: dict[str, str | Image.Image], size_factor: int = IMAGE_FACTOR)
align_anything/utils/process_qwen2vl.py:104
↓ 1 callersFunctionfetch_video
(ele: dict, image_factor: int = IMAGE_FACTOR)
align_anything/utils/process_qwen2vl.py:292
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_video_to_text/preference.py:98
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_to_text/preference.py:98
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_image_to_text/preference.py:114
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_image_to_text/preference.py:305
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_audio_to_text/preference.py:90
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_to_image/preference.py:91
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_to_video/preference.py:90
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_image_to_text_image/preference.py:89
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_image_to_text_image/preference.py:172
↓ 1 callersMethodfilter_indices
(self)
align_anything/datasets/text_to_audio/preference.py:90
↓ 1 callersMethodfind_closest_room_of_list
(self, room_ids, return_id_and_dist: bool = False)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:1279
↓ 1 callersFunctionfind_det
(text)
projects/eval-anything/eval_anything/third_party/SPOC/utils/task_spec_to_instruction.py:140
↓ 1 callersFunctionfind_det
(text)
align_anything/utils/spoc_utils/task_spec_to_instruction.py:162
↓ 1 callersFunctionfind_similar_problem
(problem)
align_anything/models/remote_rm/reward_server.py:65
↓ 1 callersFunctionfirst_corner_to_other_vertices_vectors
(box)
projects/eval-anything/eval_anything/third_party/SPOC/utils/data_generation_utils/navigation_utils.py:134
↓ 1 callersFunctionfirst_corner_to_other_vertices_vectors
(box)
align_anything/utils/spoc_utils/bbox_utils.py:79
↓ 1 callersMethodformat_chat_sample
(self, raw_conversation: list[dict[str, Any]])
align_anything/configs/template.py:100
↓ 1 callersMethodformat_preference_sample
(self, raw_sample: dict[str, Any])
align_anything/configs/template.py:61
↓ 1 callersFunctionformat_sample
(raw_sample: dict[str, Any])
projects/text_image_to_text_image/pre_tokenize_parallel_example.py:130
↓ 1 callersFunctionformat_sample
(raw_sample: dict[str, Any])
projects/text_image_to_text_image/pre_tokenize_example.py:49
↓ 1 callersFunctionformat_sample_AA
Specified for align anything internal dataset. You can customize a similar function for you own dataset.
projects/text_image_to_text_image/prompt_only_tokenize_example.py:133
↓ 1 callersFunctionformat_sample_cham
Formatting input sample, and change the related keys according to the training dataset.
projects/text_image_to_text_image/pre_tokenize_parallel_example.py:52
↓ 1 callersFunctionformat_sample_janus
(piece, vl_chat_processor)
projects/janus/preference_text_to_image.py:43
↓ 1 callersFunctionformat_sample_janus
(piece, vl_chat_processor)
projects/janus/supervised_text_to_image.py:45
↓ 1 callersMethodformat_unmatched_supervised_sample
( self, raw_sample_for_prompt: dict[str, Any], raw_sample_for_response: dict[str, Any] )
align_anything/configs/template.py:85
↓ 1 callersMethodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
align_anything/models/chameleon.py:71
↓ 1 callersMethodforward
( self, input_ids: torch.LongTensor = None, pixel_values: torch.FloatTensor = None,
align_anything/models/gemma3.py:49
↓ 1 callersMethodforward
(self, x)
align_anything/models/modeling_emu3/mllm/modeling_emu3.py:258
↓ 1 callersMethodforward
(self, *args, **kwargs)
align_anything/models/spoc_models/models/allenact_transformer_models/separate_actor_critic.py:29
↓ 1 callersMethodforward_encoder
(self, observations: ObservationType)
align_anything/models/spoc_models/models/allenact_transformer_models/allenact_dino_transformer.py:284
↓ 1 callersMethodfrom_dataset_dir
Load the tasks from a directory containing {dataset_dir}/{subset}/*/hdf5_sensors.hdf5 files.
align_anything/utils/spoc_utils/data_utils.py:263
↓ 1 callersMethodfrom_dict
(cls, data: Dict)
projects/eval-anything/eval_anything/utils/data_type.py:443
↓ 1 callersMethodfrom_dir
Load the houses from a directory containing {subset}.jsonl.gz files.
align_anything/utils/spoc_utils/data_utils.py:113
↓ 1 callersMethodgen_responses
args: prompts: list of prompts responses: list of responses returns: list of booleans, True if th
projects/eval-anything/eval_anything/benchmarks/text_to_text/aegis_aicontent_safety_dataset/utils.py:144
↓ 1 callersFunctiongenerate
(args)
projects/eval-anything/eval_anything/benchmarks/text_to_text/Flames/infer.py:119
↓ 1 callersFunctiongenerate
( inference_inputs, inference_outputs, data_path, output_path, max_length, val_bsz_per_gpu )
projects/eval-anything/eval_anything/benchmarks/text_to_text/Flames/utils.py:132
↓ 1 callersFunctiongenerate_all_hypernyms_with_exclusions
( synset: Union[str, Synset], excluded: Union[Set[str], str], include_self_synset: bool = True, )
projects/eval-anything/eval_anything/third_party/SPOC/utils/synset_utils.py:16
↓ 1 callersFunctiongenerate_all_hypernyms_with_exclusions
( synset: Union[str, Synset], excluded: Union[Set[str], str], include_self_synset: bool = True, )
align_anything/utils/spoc_utils/synset_utils.py:31
↓ 1 callersFunctiongenerate_answer_by_vllm
(problems: list[str], model_name_or_path: str)
projects/lang_feedback/base_gen.py:63
↓ 1 callersFunctiongenerate_answer_by_vllm
(problems: list[str], model_name_or_path: str)
projects/lang_feedback/refine_gen.py:65
↓ 1 callersFunctiongenerate_answer_by_vllm
(problems: list[str], model_name_or_path: str)
projects/lang_feedback/critique_gen.py:63
↓ 1 callersMethodgenerate_completions
Generate multiple completions based on the given prompt. Here, we set num_return_sequences = self.num_generations, which requires tha
align_anything/trainers/text_to_text/grpo.py:212
↓ 1 callersFunctiongenerate_hash_uid
Generate a unique hash for caching based on input data. Args: to_hash: Data to hash Returns: Hash string
projects/intermt/intermt_bench/score_evaluation/api_utils.py:172
↓ 1 callersFunctiongenerate_hash_uid
Generate a unique hash for caching based on input data. Args: to_hash: Data to hash Returns: Hash string
projects/intermt/intermt_bench/pair_comparison/api_utils.py:172
↓ 1 callersFunctiongenerate_hash_uid
Generate a unique hash for caching based on input data. Args: to_hash: Data to hash Returns: Hash string
projects/intermt/intermt_bench/crucial_step_recognition/api_utils.py:172
↓ 1 callersFunctiongenerate_hash_uid
Generates a unique hash for a given model and arguments.
projects/eval-anything/eval_anything/utils/cached_requests.py:26
↓ 1 callersFunctiongenerate_score
(data_path)
projects/eval-anything/eval_anything/benchmarks/text_to_text/Flames/infer.py:153
↓ 1 callersFunctiongenerate_score
(data_path, input_path=None)
projects/eval-anything/eval_anything/benchmarks/text_to_text/Flames/utils.py:175
↓ 1 callersMethodgenerate_uuid
(cls, to_hash: Union[dict, tuple, list, str])
projects/eval-anything/eval_anything/utils/uuid.py:40
↓ 1 callersFunctiongenerate_with_vllm
Generate text using vLLM. Args: prompts: List of prompts to generate from. tokenizer: Tokenizer to use. vllm_engines: Lis
align_anything/utils/vllm_utils/vllm_sampling.py:29
↓ 1 callersMethodgeneration
(self, inputs: List[InferenceInput])
projects/eval-anything/eval_anything/models/api_lm.py:38
↓ 1 callersMethodget_absolute_hand_position
(controller)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_state.py:399
↓ 1 callersMethodget_action_list
(self)
projects/eval-anything/eval_anything/models/hf_vla.py:35
↓ 1 callersMethodget_action_processor
(self)
projects/eval-anything/eval_anything/third_party/SPOC/spoc_model/preprocessors.py:130
↓ 1 callersMethodget_action_processor
(self)
align_anything/models/spoc_models/models/transformer_models/preprocessors.py:144
↓ 1 callersMethodget_advantages_and_returns
Compute advantages and returns using Generalized Advantage Estimation (GAE).
align_anything/trainers/text_to_text/ppo_remote_rm.py:595
↓ 1 callersMethodget_advantages_and_returns
( self, values: torch.Tensor, rewards: torch.Tensor, sequence_mask: torch.Bool
align_anything/trainers/text_to_text/multi_ppo.py:510
↓ 1 callersMethodget_advantages_and_returns
Compute advantages and returns using Generalized Advantage Estimation (GAE).
align_anything/trainers/text_to_text/ppo.py:487
↓ 1 callersMethodget_advantages_and_returns
Compute advantages and returns using Generalized Advantage Estimation (GAE).
align_anything/trainers/text_image_to_text/ppo.py:402
↓ 1 callersMethodget_advantages_and_returns
Compute advantages and returns using Generalized Advantage Estimation (GAE).
align_anything/trainers/text_audio_to_text/ppo.py:415
↓ 1 callersFunctionget_all_files
(path)
projects/eval-anything/eval_anything/benchmarks/text_to_text/MoralBench/utils.py:71
↓ 1 callersFunctionget_all_synsets_in_spoc
()
projects/eval-anything/eval_anything/third_party/SPOC/utils/synset_utils.py:43
↓ 1 callersFunctionget_all_synsets_in_spoc
()
align_anything/utils/spoc_utils/synset_utils.py:58
↓ 1 callersMethodget_approx_object_mask
( self, object_id: str, which_camera: Literal['nav', 'manip'], divisions: int )
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:581
↓ 1 callersMethodget_arm_proprioception
(self)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:991
↓ 1 callersMethodget_arm_wrist_absolute_position
(self)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:979
← previousnext →701–800 of 3,036, ranked by callers