Spaces:
Running
Running
File size: 392 Bytes
ada63c0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import os
import string
from dataclasses import dataclass
@dataclass
class Config:
data_root: str = os.getenv("DATA_ROOT","Dataset_test\captchas")
chars: str = string.ascii_letters + string.digits
H: int = 48
W_max: int = 224
grayscale: bool = True
total_stride: int = 4 #
batch_size: int = 32
num_workers: int = 4
amp: bool = True
cfg = Config() |