prasadsachin commited on
Commit
ba590ca
·
verified ·
1 Parent(s): 0b888cb

Update README.md with new model card content

Browse files
Files changed (1) hide show
  1. README.md +32 -18
README.md CHANGED
@@ -2,21 +2,35 @@
2
  library_name: keras-hub
3
  pipeline_tag: text-generation
4
  ---
5
- This is a [`PARSeq` model](https://keras.io/api/keras_hub/models/par_seq) uploaded using the KerasHub library and can be used with JAX, TensorFlow, and PyTorch backends.
6
- This model is related to a `CausalLM` task.
7
-
8
- Model config:
9
- * **name:** par_seq_backbone
10
- * **trainable:** True
11
- * **dtype:** {'module': 'keras', 'class_name': 'DTypePolicy', 'config': {'name': 'float32'}, 'registered_name': None}
12
- * **image_encoder:** {'module': 'keras_hub.src.models.vit.vit_backbone', 'class_name': 'ViTBackbone', 'config': {'name': 'encoder', 'trainable': True, 'dtype': {'module': 'keras', 'class_name': 'DTypePolicy', 'config': {'name': 'float32'}, 'registered_name': None}, 'image_shape': [32, 128, 3], 'patch_size': [4, 8], 'num_layers': 12, 'num_heads': 6, 'hidden_dim': 384, 'mlp_dim': 1536, 'dropout_rate': 0.0, 'attention_dropout': 0.0, 'layer_norm_epsilon': 1e-06, 'use_mha_bias': True, 'use_mlp_bias': True, 'use_class_token': False, 'use_patch_bias': True}, 'registered_name': 'keras_hub>ViTBackbone'}
13
- * **vocabulary_size:** 97
14
- * **max_label_length:** 25
15
- * **decoder_hidden_dim:** 384
16
- * **num_decoder_layers:** 1
17
- * **num_decoder_heads:** 12
18
- * **decoder_mlp_dim:** 1536
19
- * **dropout_rate:** 0.1
20
- * **attention_dropout:** 0.1
21
-
22
- This model card has been generated automatically and should be completed by the model author. See [Model Cards documentation](https://huggingface.co/docs/hub/model-cards) for more information.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  library_name: keras-hub
3
  pipeline_tag: text-generation
4
  ---
5
+ ### Model Overview
6
+ Permuted autoregressive sequence (PARSeq) model for Scene Text Recognition (STR)
7
+
8
+ This model is designed for Scene Text Recognition (STR), which involves reading text from images. You can load and use the pre-trained PARSeq model with the following Python code snippet. The model takes an image as input and outputs the recognized text.
9
+
10
+ ## Links
11
+
12
+ * [PARSeq Quickstart Notebook]()
13
+ * [PARSeq API Documentation](https://keras.io/api/keras_hub/models/parseq/)
14
+ * [PARSeq Model Card](https://www.kaggle.com/models/keras/parseq)
15
+ * [KerasHub Beginner Guide](https://keras.io/guides/keras_hub/getting_started/)
16
+ * [KerasHub Model Publishing Guide](https://keras.io/guides/keras_hub/upload/)
17
+
18
+ ## Installation
19
+
20
+ Keras and KerasHub can be installed with:
21
+
22
+ ```
23
+ pip install -U -q keras-hub
24
+ pip install -U -q keras>=3
25
+ ```
26
+
27
+ Jax, TensorFlow, and Torch come preinstalled in Kaggle Notebooks. For instructions on installing them in another environment see the [Keras Getting Started](https://keras.io/getting_started/) page.
28
+
29
+ ## Presets
30
+
31
+ The following model checkpoints are provided by the Keras team. Full code examples for each are available below.
32
+
33
+ | Preset name | Parameters | Description |
34
+ |----------------------------------------|------------|----------------------------------------------|
35
+ | `parseq` | 23.8M | 23 million parameter base model. |
36
+