MCPcopy Create free account

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

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

↓ 2 callersMethodclear
Clear model and release memory.
projects/eval-anything/eval_anything/benchmarks/text_to_text/salad_bench/evaluator.py:165
↓ 2 callersMethodcompute
(self, predictions, references)
projects/eval-anything/eval_anything/benchmarks/text_to_text/TruthfulQA/metrics.py:34
↓ 2 callersMethodcompute_log_probs
Compute log probabilities of given sequences.
align_anything/trainers/text_image_to_text/dpo.py:85
↓ 2 callersMethodcompute_log_probs
Compute log probabilities of given sequences.
align_anything/trainers/text_audio_to_text/dpo.py:86
↓ 2 callersMethodcompute_log_probs
Compute log probabilities of given sequences.
align_anything/trainers/janus/dpo_und.py:96
↓ 2 callersMethodcompute_log_probs
Compute log probabilities of given sequences.
align_anything/trainers/janus/dpo_gen.py:93
↓ 2 callersFunctionconvert_world_to_relative_coordinate
(world_obj, relative_location, relative_rotation)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_state.py:441
↓ 2 callersFunctioncreate_text_encoder
(encoder_name)
align_anything/models/spoc_models/models/transformer_models/text_cond_visual_encoder.py:53
↓ 2 callersMethodcumulative_returns
(self, rewards, mask, start)
align_anything/trainers/text_to_text/multi_ppo.py:572
↓ 2 callersMethoddecode_and_get_logits
(self, embedded_features, text_feats, padding_mask=None, start_pos=0)
align_anything/models/spoc_models/models/transformer_models/early_fusion_tsfm_models.py:160
↓ 2 callersMethoddecode_base64_to_audio
Decode base64 string to audio. Args: base64_string: Base64 encoded audio string Returns: tuple: (sa
projects/eval-anything/eval_anything/utils/mm_data_manager.py:213
↓ 2 callersMethoddecode_base64_to_video
Decode base64 string to video frames. Args: base64_string: Base64 encoded video string Returns: Lis
projects/eval-anything/eval_anything/utils/mm_data_manager.py:403
↓ 2 callersMethoddifference
(cls, final_state, initial_state)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_state.py:163
↓ 2 callersMethoddist_from_arm_sphere_center_to_obj_colliders_closest_to_point
(self, object_id)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:1051
↓ 2 callersMethodembed_tokens
(self)
align_anything/models/qwen2_vl.py:38
↓ 2 callersFunctionencode_image
Open an image from various sources (base64, URL, local path) and encode it as base64. Args: image_path: Path or data of the imag
projects/intermt/intermt_bench/score_evaluation/api_utils.py:22
↓ 2 callersFunctionencode_image
Open an image from various sources (base64, URL, local path) and encode it as base64. Args: image_path: Path or data of the imag
projects/intermt/intermt_bench/pair_comparison/api_utils.py:22
↓ 2 callersFunctionencode_image
Open an image from various sources (base64, URL, local path) and encode it as base64. Args: image_path: Path or data of the imag
projects/intermt/intermt_bench/crucial_step_recognition/api_utils.py:22
↓ 2 callersMethodencode_text
(self, preproc_text_input)
projects/eval-anything/eval_anything/third_party/SPOC/spoc_model/text_cond_visual_encoder.py:171
↓ 2 callersMethodencode_text
(self, preproc_text_input)
align_anything/models/spoc_models/models/transformer_models/text_cond_visual_encoder.py:420
↓ 2 callersFunctionextract_by_format
(output_text, category, format_type)
projects/intermt/intermt_bench/score_evaluation/score_inference.py:114
↓ 2 callersFunctionextract_by_format
(output_text, category, format_type)
projects/intermt/intermt_bench/pair_comparison/pair_inference.py:127
↓ 2 callersFunctionextract_preference_and_reasons
Extract preference (ResponseA or ResponseB) and reasons for each category from model output Args: output: Model output text
projects/intermt/intermt_bench/pair_comparison/pair_inference.py:70
↓ 2 callersFunctionextract_scores_and_reasons
(output, categories, include_reason=True)
projects/intermt/intermt_bench/score_evaluation/score_inference.py:67
↓ 2 callersMethodformat_diffusion_preference_sample
(self, raw_sample: dict[str, Any])
align_anything/configs/format_dataset.py:935
↓ 2 callersMethodformat_diffusion_supervised_sample
(self, raw_sample: dict[str, Any])
align_anything/configs/template.py:49
↓ 2 callersMethodformat_sample
(self, raw_sample: dict[str, Any], path: str = None)
align_anything/configs/format_dataset.py:1225
↓ 2 callersMethodforward
Forward pass through the RMSNorm layer. Args: x (torch.Tensor): The input tensor. Returns: torch.Te
align_anything/models/spoc_models/models/llama/model.py:74
↓ 2 callersMethodforward
Forward pass through the RMSNorm layer. Args: x (torch.Tensor): The input tensor. Returns: torch.Te
align_anything/models/spoc_models/models/transformer_models/llama_model.py:75
↓ 2 callersMethodforward_batch
(self, batch)
align_anything/trainers/text_video_to_action/sft.py:162
↓ 2 callersMethodfrom_hf_output
(cls, task, uuid, response, hf_output: torch.Tensor, store_raw: bool = False)
projects/eval-anything/eval_anything/utils/data_type.py:210
↓ 2 callersMethodfrom_jsonlgz
Load the houses from a .jsonl.gz file.
align_anything/utils/spoc_utils/data_utils.py:108
↓ 2 callersMethodfrom_vllm_output
( cls, task, ref_answer, uuid, vllm_output: RequestOutput, store_raw: bool = False )
projects/eval-anything/eval_anything/utils/data_type.py:195
↓ 2 callersMethodget_action_list
(self)
align_anything/models/spoc_models/models/allenact_transformer_models/inference_agent.py:179
↓ 2 callersMethodget_advantages_and_returns
Compute advantages and returns using Generalized Advantage Estimation (GAE).
align_anything/trainers/text_image_to_text/saferlhf.py:772
↓ 2 callersMethodget_agent_loc
(self)
align_anything/utils/spoc_utils/reward/reward_shaper.py:209
↓ 2 callersFunctionget_all_files
(path)
projects/eval-anything/eval_anything/benchmarks/text_to_text/MoralBench/main.py:72
↓ 2 callersMethodget_arm_sphere_center
(self)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:135
↓ 2 callersMethodget_arm_wrist_rotation
(self)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:984
↓ 2 callersFunctionget_audio_processor
( clip_duration: float = 2, clips_per_audio: int = 1, num_mel_bins: int = 128, max_frames: int
align_anything/utils/process_audio.py:32
↓ 2 callersMethodget_current_agent_rotation
(self)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:699
↓ 2 callersMethodget_dataloader
(cls, name: str)
projects/eval-anything/eval_anything/utils/register.py:148
↓ 2 callersMethodget_dataloader
(self, subset: str)
align_anything/trainers/text_video_to_action/sft.py:250
↓ 2 callersFunctionget_full_transformation_list
(size, version='v2')
projects/eval-anything/eval_anything/third_party/SPOC/utils/transformation_util.py:17
↓ 2 callersMethodget_houses
(self, subset)
align_anything/utils/spoc_utils/online_base.py:175
↓ 2 callersFunctionget_image_processor
(resolution: int)
align_anything/utils/process_image.py:21
↓ 2 callersMethodget_image_text_feats
(self, frames, goals, text_feats)
projects/eval-anything/eval_anything/third_party/SPOC/spoc_model/text_cond_visual_encoder.py:198
↓ 2 callersMethodget_input_embedding_per_timestep
( self, visual_sensors, non_visual_sensors, goals, time_ids, t
align_anything/models/spoc_models/models/transformer_models/early_fusion_tsfm_models.py:125
↓ 2 callersFunctionget_messages
(modality, prompt)
projects/eval-anything/eval_anything/utils/utils.py:158
↓ 2 callersMethodget_metric
(cls, name: str, *args, **kwargs)
projects/eval-anything/eval_anything/utils/register.py:34
↓ 2 callersMethodget_obj_pos_from_obj_id
(self, object_id)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:789
↓ 2 callersFunctionget_objaverse_annotations
()
align_anything/utils/spoc_utils/objaverse_annotation.py:30
↓ 2 callersMethodget_objects_in_hand_sphere
(self)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:129
↓ 2 callersMethodget_objects_of_synset_list
( self, target_object_synsets: Iterable[str], include_hyponyms: bool, all_objs
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:723
↓ 2 callersMethodget_observation
( # type:ignore self, env: StretchController, task: AbstractSPOCTask, *args,
projects/eval-anything/eval_anything/third_party/SPOC/environment/navigation_sensors.py:881
↓ 2 callersFunctionget_optimizer_grouped_parameters
Get parameter groups with customized weight decay value.
align_anything/utils/tools.py:241
↓ 2 callersMethodget_ref_answer
Get reference answers from input data Args: input_data (list[InferenceInput]): input data inference_outputs (list[Infe
projects/eval-anything/eval_anything/pipeline/base_benchmark.py:310
↓ 2 callersMethodget_segmentation_mask_of_object
( self, object_id: str, which_camera: Literal['nav', 'manip'] )
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:223
↓ 2 callersMethodget_shortest_path_to_object
Computes the shortest path to an object from an initial position using a controller :param object_id: string with id of the object
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:998
↓ 2 callersMethodget_shortest_path_to_point
Computes the shortest path to an object from an initial position using a controller :param controller: agent controller :para
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:1091
↓ 2 callersMethodget_shortest_path_to_room
( self, room_id, specific_agent_meshes=None, max_tries: int = 5, room_
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:1237
↓ 2 callersFunctionget_status_change_objects
( task, primary_objects, update_objects, threshold_position, threshold_rotation )
projects/eval-anything/eval_anything/third_party/SPOC/tasks/safety_components.py:116
↓ 2 callersFunctionget_task_relevant_synsets
Given an input task spec, returns a list of all synsets relevant to that task's success.
projects/eval-anything/eval_anything/third_party/SPOC/utils/type_utils.py:260
↓ 2 callersMethodget_template
(cls, name: str, *args, **kwargs)
projects/eval-anything/eval_anything/utils/register.py:53
↓ 2 callersMethodget_top_down_path_view
(self, agent_path, targets_to_highlight=None)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:422
↓ 2 callersFunctionget_transformation
(size=(224, 384))
projects/eval-anything/eval_anything/third_party/SPOC/utils/transformation_util.py:54
↓ 2 callersFunctionget_uuid_key
(item: Union[InferenceInput, InferenceOutput])
projects/eval-anything/eval_anything/utils/utils.py:146
↓ 2 callersFunctionget_video_processor
( sample_frames: int, resolution: int, do_resize: bool = True, **kwargs )
align_anything/utils/process_video.py:26
↓ 2 callersMethodget_vocab
(self)
align_anything/models/modeling_emu3/mllm/tokenization_emu3.py:151
↓ 2 callersFunctionget_wall_center_floor_level
(wall_id, y)
projects/eval-anything/eval_anything/third_party/SPOC/utils/data_generation_utils/navigation_utils.py:119
↓ 2 callersFunctiongpt_evaluate_alignment
GPT-based alignment evaluation function for assessing alignment between internal beliefs and external outputs. Args: inner_belie
projects/eval-anything/eval_anything/benchmarks/text_to_text/DeceptionBench/utils.py:161
↓ 2 callersFunctiongpt_evaluate_consistency
GPT-based consistency evaluation function for assessing consistency between CoT and final output. Args: cots: List of chain of t
projects/eval-anything/eval_anything/benchmarks/text_to_text/DeceptionBench/utils.py:303
↓ 2 callersFunctiongpt_evaluate_cot_inner_alignment
GPT-based CoT and internal belief alignment evaluation function. Args: cots: List of chain of thoughts inner_beliefs: Li
projects/eval-anything/eval_anything/benchmarks/text_to_text/DeceptionBench/utils.py:232
↓ 2 callersFunctionhf_batch_completion_local
替代 litellm.batch_completion 的 HuggingFace 本地推理函数。 Args: model_path: 本地模型路径或 HuggingFace repo 名称。 messages: 一个列表,列表中的每一项是一个 c
projects/eval-anything/eval_anything/benchmarks/text_to_text/jbb_behaviors/classifier.py:213
↓ 2 callersMethodinclude_object_metadata_context
(self)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_controller.py:629
↓ 2 callersMethodinit_check
Initial configuration checking.
align_anything/trainers/text_to_text/rm.py:70
↓ 2 callersFunctioninit_new_embeddings
( embeddings: nn.Embedding | nn.Linear | None, new_num_embeddings: int, num_new_embedd
align_anything/models/pretrained_model.py:86
↓ 2 callersFunctionis_any_object_sufficiently_visible_and_in_center_frame
( controller: 'StretchController', object_ids: List[str], scale: float = 1.5e4, manipulation_c
projects/eval-anything/eval_anything/third_party/SPOC/utils/data_generation_utils/navigation_utils.py:191
↓ 2 callersFunctionis_helpful_response
Check if the response provides helpful technical information
projects/eval-anything/eval_anything/benchmarks/text_to_text/TDCRedTeaming/utils.py:60
↓ 2 callersFunctionis_helpful_response
Check if the response provides helpful technical information
projects/eval-anything/eval_anything/benchmarks/text_to_text/XSTest/utils.py:148
↓ 2 callersFunctionis_physical_entity
(synset)
projects/eval-anything/eval_anything/third_party/SPOC/utils/task_spec_to_instruction.py:69
↓ 2 callersFunctionis_physical_entity
(synset)
align_anything/utils/spoc_utils/task_spec_to_instruction.py:91
↓ 2 callersFunctionjson_templated_task_string
(task_info)
projects/eval-anything/eval_anything/third_party/SPOC/utils/string_utils.py:26
↓ 2 callersMethodjudge_cost_collided
(self, event)
projects/eval-anything/eval_anything/third_party/SPOC/tasks/abstract_task.py:349
↓ 2 callersFunctionload_data
(test_file)
projects/intermt/intermt_bench/pair_comparison/pair_inference.py:65
↓ 2 callersFunctionload_image
(image_path: str)
projects/text_image_to_text_image/preference_tokenize_example.py:41
↓ 2 callersFunctionload_image
(image_path: str)
projects/janus/preference_text_to_image.py:31
↓ 2 callersFunctionload_image_from_base64
(base64_string)
align_anything/configs/format_dataset.py:47
↓ 2 callersMethodloss
Loss function for supervised finetuning.
align_anything/trainers/text_to_text/sft.py:95
↓ 2 callersFunctionmake_boxed_pattern
(base_pattern)
projects/intermt/intermt_bench/pair_comparison/pair_inference.py:93
↓ 2 callersFunctionmake_room
e.g. in the bedroom
projects/eval-anything/eval_anything/third_party/SPOC/utils/task_spec_to_instruction.py:194
↓ 2 callersFunctionmake_room
e.g. in the bedroom
align_anything/utils/spoc_utils/task_spec_to_instruction.py:216
↓ 2 callersFunctionmake_rotation_matrix
(position, rotation)
projects/eval-anything/eval_anything/third_party/SPOC/environment/stretch_state.py:420
↓ 2 callersFunctionmap_task_type
(task_type: str)
align_anything/utils/spoc_utils/download_training_data.py:11
↓ 2 callersMethodmarge_QA
(self, question: str, candidate_answers: list[str], ground_truth: str = '')
projects/eval-anything/eval_anything/utils/prompt_builders.py:42
↓ 2 callersMethodmarge_QA
(self, question: str, candidate_answers: list[str], ground_truth: str = '')
projects/eval-anything/eval_anything/utils/prompt_builders.py:118
↓ 2 callersMethodmarge_QA
(self, question: str, ground_truth: str = '')
projects/eval-anything/eval_anything/utils/prompt_builders.py:258
↓ 2 callersMethodmarge_QA
(self, question: str, ground_truth: str = '')
projects/eval-anything/eval_anything/utils/prompt_builders.py:293
↓ 2 callersMethodmarge_QA
(self, question: str, candidate_answers: list[str], ground_truth: str = '')
projects/eval-anything/eval_anything/benchmarks/text_to_text/TruthfulQA/dataloader.py:149
↓ 2 callersMethodmodel_inference
Model inference. Support multi-round inference. Args: input_data (list[InferenceInput]): input data Returns:
projects/eval-anything/eval_anything/pipeline/base_benchmark.py:221
← previousnext →301–400 of 3,036, ranked by callers