nviraj's picture
Added App files
ebb41db
raw
history blame contribute delete
No virus
916 Bytes
# Alert: Change these when running in production
# Constants naming convention: All caps separated by underscore
# https://realpython.com/python-constants/
# Where do we store the data?
MISCLASSIFIED_PATH = "./assets/model/Misclassified_Data.pt"
MODEL_PATH = "./assets/model/CustomResNet.pt"
# Set seed value for reproducibility
SEED = 53
# What is the mean and std deviation of the dataset?
CIFAR_MEAN = (0.4915, 0.4823, 0.4468)
CIFAR_STD = (0.2470, 0.2435, 0.2616)
# What are the classes in CIFAR10?
# Create class labels and convert to tuple
CIFAR_CLASSES = tuple(
c.capitalize()
for c in [
"plane",
"car",
"bird",
"cat",
"deer",
"dog",
"frog",
"horse",
"ship",
"truck",
]
)
# Needed to load model module
# What is the start LR and weight decay you'd prefer?
PREFERRED_START_LR = 5e-3
PREFERRED_WEIGHT_DECAY = 1e-5