xrayreport / config.py
adithiyyha's picture
Update config.py
2e62993 verified
raw
history blame contribute delete
597 Bytes
import albumentations as A
import torch
from albumentations.pytorch import ToTensorV2
CHECKPOINT_FILE = 'x_ray_model.pth.tar'
DATASET_PATH = './dataset'
IMAGES_DATASET = './dataset/images'
DEVICE = 'cpu'
BATCH_SIZE = 16
PIN_MEMORY = False
VOCAB_THRESHOLD = 2
FEATURES_SIZE = 1024
EMBED_SIZE = 300
HIDDEN_SIZE = 256
LEARNING_RATE = 4e-5
EPOCHS = 50
LOAD_MODEL = True
SAVE_MODEL = True
basic_transforms = A.Compose([
A.Resize(
height=256,
width=256
),
A.Normalize(
mean=(0.485, 0.456, 0.406),
std=(0.229, 0.224, 0.225),
),
ToTensorV2()
])