diff --git a/train.py b/train.py index aa42f780..8c8e5b15 100644 --- a/train.py +++ b/train.py @@ -66,7 +66,7 @@ def train( # Configure run data_cfg = parse_data_cfg(data_cfg) train_path = data_cfg['train'] - nc = data_cfg['classes'] # number of classes + nc = int(data_cfg['classes']) # number of classes # Initialize model model = Darknet(cfg, img_size).to(device)