Deep learning projects: Cloud-based AI or dedicated hardware?