A package for KeyBartAdapter
Project description
KeyBartAdapter
A neural model that extends KeyBart with adapter layers.
Usage
pip instal KeyBartAdapter
from models import KeyBartAdapter
model = KeyBartAdapter(256)
Huggingface
Trained checkpoints on huggingface: link
Inference
from transformers import AutoTokenizer
from transformers import Text2TextGenerationPipeline
tokenizer = AutoTokenizer.from_pretrained("bloomberg/KeyBART")
pipe = Text2TextGenerationPipeline(model=model,tokenizer=tokenizer)
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.'''
pipe(abstract)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
KeyBartAdapter-0.1.12.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for KeyBartAdapter-0.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8d2a7892c68df6166d1aef61cf7562e87f17cc7c214541005f505c3198e2b36 |
|
MD5 | c63e455ed5cb01735585f13b8443ca6e |
|
BLAKE2b-256 | ae00ae2eb41f9df220d70dc6d0894c8abd6b8df6842de3682aebc41431bff336 |