Coder Social home page Coder Social logo

sml's Introduction

文件说明

  • DataSet 文件夹里是数据集
  • models 文件夹里是训练生成的模型

使用方式

  • 运行train.m,就可以进行训练,给的训练集总共有260个语义类。
    • 扩展EM部分(mixGaussEmExtension.m)迭代会比较慢。
    • 训练完成后,会在models文件夹里生成260个.mat文件,代表每个语义类的模型。
    • 每个语义类的模型都是一个struct格式。
    • 还会在models文件夹里生成一个PW.mat文件,表示每个语义类的概率。
  • 运行predict.m可以对单张图片进行预测。
  • 运行predict_demo.m,可以随机抽取测试集的12张图片,然后预测他们的标签后,在界面上显示出来,是一个展示的demo.

建议

  • 模型训练的速度会比较慢,建议没有足够多的时间的话,就只训练20个语义类就好,可以控制训练哪几个语义类,在 train.m里修改第八行代码即可,比如:
for i=1:ClassNum %代表训练完
for i=1:20 %代表前20个类
for i= 3:3:200
...
  • 提供的数据集每一个语义类的图片数目差别比较大,可以更换更好的数据集。

更新

  • 260个类的模型我都已经跑出来了,但是太大就不上传到github了,如有需要,请email我[email protected]
  • 下面上两张结果图:
    result1.png-883.8kB result2.png-893.5kB

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.