janaSunrise/Plant-disease-detection ? reverse-engineered prompt

Reverse engineered prompt

Build me a plant disease detection project that can look at a leaf image and tell me what disease it has, or if it looks healthy. I want the training part in a notebook so it’s easy to follow, and I want a simple Python script I can run from the command line to test an image and print the prediction. If you can, also add a way to convert the trained model into a smaller format for mobile or lightweight use.

Please set it up so I can install everything with pipenv, train the model, save the final model and the class labels, and then run inference on new images without needing to open the notebook. Keep the code clean and easy to understand, with a few comments where it helps. If you need to check current docs for anything, feel free to look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab