PyTorch model, trained on the beans dataset