Adapting commited on
Commit
cc21441
1 Parent(s): 4f9ee8b

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -0
README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+
5
+ # Usage
6
+
7
+ ```python
8
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
9
+
10
+ tokenizer = AutoTokenizer.from_pretrained("Adapting/KeyBartAdapter")
11
+
12
+ model = AutoModelForSeq2SeqLM.from_pretrained("Adapting/KeyBartAdapter")
13
+ ```
14
+
15
+ **1. inference**
16
+
17
+ ```python
18
+ from transformers import Text2TextGenerationPipeline
19
+ pipe = Text2TextGenerationPipeline(model=model,tokenizer=tokenizer)
20
+
21
+
22
+ abstract = '''Non-referential face image quality assessment methods have gained popularity as a pre-filtering step on face recognition systems. In most of them, the quality score is usually designed with face matching in mind. However, a small amount of work has been done on measuring their impact and usefulness on Presentation Attack Detection (PAD). In this paper, we study the effect of quality assessment methods on filtering bona fide and attack samples, their impact on PAD systems, and how the performance of such systems is improved when training on a filtered (by quality) dataset. On a Vision Transformer PAD algorithm, a reduction of 20% of the training dataset by removing lower quality samples allowed us to improve the BPCER by 3% in a cross-dataset test.'''
23
+
24
+ pipe(abstract)
25
+ ```