dltjwl commited on
Commit
c5c962e
โ€ข
1 Parent(s): 0b2fee3

Modify : Code and Evaluation Result

Browse files
Files changed (1) hide show
  1. README.md +6 -7
README.md CHANGED
@@ -20,13 +20,10 @@ Model predict the data table of text form in the image.
20
  ์ด๋ฏธ์ง€๋ฅผ ๋ชจ๋ธ์— ์ž…๋ ฅํ•˜๋ฉด ๋ชจ๋ธ์€ ์ด๋ฏธ์ง€๋กœ๋ถ€ํ„ฐ ํ‘œ ํ˜•ํƒœ์˜ ๋ฐ์ดํ„ฐ ํ…Œ์ด๋ธ”์„ ์˜ˆ์ธกํ•ฉ๋‹ˆ๋‹ค.
21
 
22
  ```python
23
- from transformers import Pix2StructForConditionalGeneration, Pix2StructImageProcessor, AutoTokenizer, Pix2StructProcessor
24
  from PIL import Image
25
 
26
- image_processor = Pix2StructImageProcessor()
27
- tokenizer = AutoTokenizer.from_pretrained("brainventures/deplot_kr")
28
- processor = Pix2StructProcessor(image_processor=image_processor, tokenizer=tokenizer)
29
-
30
  model = Pix2StructForConditionalGeneration.from_pretrained("brainventures/deplot_kr")
31
 
32
  image_path = "IMAGE_PATH"
@@ -76,8 +73,10 @@ This model achieves the following results:
76
 
77
  |metrics name | % |
78
  |:---|---:|
79
- | RNSS (Relative Number Set Similarity)| 99.5483 |
80
- | RMS F1 (Relative Mapping Similarity)| 16.6401 |
 
 
81
 
82
  ## Contact
83
 
 
20
  ์ด๋ฏธ์ง€๋ฅผ ๋ชจ๋ธ์— ์ž…๋ ฅํ•˜๋ฉด ๋ชจ๋ธ์€ ์ด๋ฏธ์ง€๋กœ๋ถ€ํ„ฐ ํ‘œ ํ˜•ํƒœ์˜ ๋ฐ์ดํ„ฐ ํ…Œ์ด๋ธ”์„ ์˜ˆ์ธกํ•ฉ๋‹ˆ๋‹ค.
21
 
22
  ```python
23
+ from transformers import Pix2StructForConditionalGeneration, AutoProcessor
24
  from PIL import Image
25
 
26
+ processor = AutoProcessor.from_pretrained("brainventures/deplot_kr")
 
 
 
27
  model = Pix2StructForConditionalGeneration.from_pretrained("brainventures/deplot_kr")
28
 
29
  image_path = "IMAGE_PATH"
 
73
 
74
  |metrics name | % |
75
  |:---|---:|
76
+ | RNSS (Relative Number Set Similarity)| 98.1615 |
77
+ |RMS (Relative Mapping Similarity) Precision | 83.1615 |
78
+ |RMS Recall | 26.3549 |
79
+ | RMS F1 Score | 31.5633 |
80
 
81
  ## Contact
82