File size: 789 Bytes
028951c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class CONFIG:
    debug = False
    accelerator = "cpu" if debug else "gpu"
    devices = "auto" if accelerator == "cpu" else [1]
    batch_size = 2 if debug else 1
    limit_train_batches = 2 if debug else None
    limit_val_batches = 2 if debug else 100
    learning_rate = 3e-5
    val_fraction = 0.1
    seed = 42
    train_val_indices_path = "data/train_val_indices.pickle"
    float_scientific_notation_string_precision = 5
    pretrained_model_name = "naver-clova-ix/donut-base"
    image_width = 720
    image_height = 512
    unknown_tokens_for_tokenizer_path = "data/unknown_tokens_for_tokenizer.pickle"
    decoder_sequence_max_length = 512
    num_workers = 4
    training_directory = "training"
    save_top_k_checkpoints = 3
    wandb_project_name = "MakingGraphsAccessible"