Skip to content

Commit

Permalink
remove Copied from in processing Udop as change of input orders cause…
Browse files Browse the repository at this point in the history
…d by BatchEncoding -> BatchFeature
  • Loading branch information
yonigozlan committed Aug 9, 2024
1 parent d29e2bb commit 02a4ec3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/transformers/models/udop/processing_udop.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,5 @@ def post_process_image_text_to_text(self, generated_outputs):
return self.tokenizer.batch_decode(generated_outputs, skip_special_tokens=True)

@property
# Copied from transformers.models.layoutlmv3.processing_layoutlmv3.LayoutLMv3Processor.model_input_names
def model_input_names(self):
return ["pixel_values", "input_ids", "attention_mask", "bbox"]

0 comments on commit 02a4ec3

Please sign in to comment.