Rename recipe to ocsrglyph-recipe.json (drop internal version tag)
Browse files- ocsrglyph-recipe.json +34 -0
ocsrglyph-recipe.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"encoder_name": "swin_base_patch4_window12_384",
|
| 3 |
+
"input_size": 384,
|
| 4 |
+
"use_checkpoint": true,
|
| 5 |
+
"backbone_pretrained": true,
|
| 6 |
+
"decoder_kind": "transformer",
|
| 7 |
+
"embed_dim": 256,
|
| 8 |
+
"dec_num_layers": 6,
|
| 9 |
+
"dec_attn_heads": 8,
|
| 10 |
+
"dec_ff_dim": 1024,
|
| 11 |
+
"max_target_len": 480,
|
| 12 |
+
"label_smoothing": 0.1,
|
| 13 |
+
"encoder_lr": 0.0004,
|
| 14 |
+
"decoder_lr": 0.0004,
|
| 15 |
+
"weight_decay": 1e-06,
|
| 16 |
+
"warmup_ratio": 0.02,
|
| 17 |
+
"cosine_schedule": true,
|
| 18 |
+
"grad_clip_max_norm": 5.0,
|
| 19 |
+
"epochs": 40,
|
| 20 |
+
"batch_size": 256,
|
| 21 |
+
"num_workers": 8,
|
| 22 |
+
"vocab_size": 101,
|
| 23 |
+
"sos_id": 1,
|
| 24 |
+
"eos_id": 2,
|
| 25 |
+
"pad_id": 0,
|
| 26 |
+
"seed": 42,
|
| 27 |
+
"notes": {
|
| 28 |
+
"primary_recipe": "MolNexTR",
|
| 29 |
+
"secondary_recipe": "MolScribe",
|
| 30 |
+
"imagenet_pretrained_backbone_allowed": true,
|
| 31 |
+
"ocsr_specific_pretrained_checkpoints_forbidden": true,
|
| 32 |
+
"single_inference_model": true
|
| 33 |
+
}
|
| 34 |
+
}
|