File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
transformers_utils/processors Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ def _pixel_values_to_embedding(
509509 _ , hw , n_dim = images_embeds .shape
510510 h = w = int (hw ** 0.5 )
511511
512- # 根据self .tile_tag & self.global_view_pos填充image token sequence
512+ # fill image token based on self .tile_tag & self.global_view_pos
513513 tile_index = 0
514514 vision_embeddings = []
515515 for jdx in range (images_spatial_crop .size (0 )):
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ def process_one(
226226 input_ids [input_ids < 0 ] = self .pad_id
227227
228228 if inference_mode :
229- # 去掉结尾的eos token
229+ # Remove the ending eos token
230230 assert input_ids [- 1 ] == self .eos_id
231231 input_ids = input_ids [:- 1 ]
232232 target_ids = target_ids [:- 1 ]
You can’t perform that action at this time.
0 commit comments