Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMs