Git Product home page Git Product logo

-'s Introduction

基于卷积神经网络的农作物病虫害识别程序设计

本项目以神经网络VGG16和AlexNet为基础实现对农作物病虫害的识别任务,在识别任务中加载网络在ImageNet上的训练得到的权重文件,固定了网络的卷积层进行微调,从而达到较好的识别效果。

环境配置

  • macOS 10.15.3
  • Python3.7
  • Pytorch1.1.0、
  • pycharm

AtrainDataset & Atestdataset

数据集来源于PlantVillage,将数据集分成80%的为训练集AtrainDataset,20%的为测试集Atestdataset。

权重

Alex.pth和VGG16.pth分别是在Alex和VGG16上训练得到的权重。

代码介绍

  • Alexnet.py Alexnet模型搭建代码。
  • model.py VGG16模型搭建代码。
  • Classify.py 训练代码,分别可以使用AlexNet和VGG16对数据集进行训练。
  • detect.py 对VGG16进行模型的测试,获得VGG16在测试集上的准确率。
  • detectAlexnet.py 对AlexNet进行模型的测试,获得AlexNet在测试集上的准确率。

训练

python Classify.py

测试

python detect.py & python deteceAlexNet.py

Headmap

  • headmap.py headmp的生成程序
  • VGG16.py VGG16网络模型
  • pca_project.py 对feature进行主成分分析

生成headmap

python headmap.py

(Alt text

结果

模型 AlexNet VGG16
准确率 96.82% 97.40%

-'s People

Contributors

buster-maker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar 沧月倾 avatar  avatar drive in kindergarten avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.