Skip to content

Commit

Permalink
fix: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sokovninn committed Dec 11, 2023
1 parent ff4ad53 commit 2757a96
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/datadreamer/dataset_annotation/kosmos2_annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ def annotate(self, image, prompts, conf_threshold=0.1, use_tta=False):
generated_text = self.processor.batch_decode(
generated_ids, skip_special_tokens=True
)[0]
processed_text = self.processor.post_process_generation(
generated_text, cleanup_and_extract=False
)

caption, entities = self.processor.post_process_generation(generated_text)

Expand Down

0 comments on commit 2757a96

Please sign in to comment.