资源简介
MatConvNet是一个实现卷积神经网络(CNN)的MATLAB工具箱,用于计算机视觉应用。 用这个工具箱,能很方便地在MATLAB中用GPU来进行训练。

代码片段和文件信息
# file: matdoc.py
# author: Andrea Vedaldi
# brief: Extact comments from a MATLAB mfile and generate a Markdown file
import sys os re shutil
import subprocess signal
import string fnmatch
from matdocparser import *
from optparse import OptionParser
usage = “““usage: %prog [options]
Extracts the comments from the specified and prints a Markdown
version of them.“““
optparser = OptionParser(usage=usage)
optparser.add_option(
“-v“ “--verbose“
dest = “verb“
default = False
action = “store_true“
help = “print debug information“)
findFunction = re.compile(r“^\s*(function|classdef).*$“ re.MULTILINE)
getFunction = re.compile(r“\s*%\s*(\w+)\s*(.*)\n“
“((\s*%.*\n)+)“)
cleanComments = re.compile(“^\s*%“ re.MULTILINE)
# --------------------------------------------------------------------
def readText(path):
# --------------------------------------------------------------------
with open (path “r“) as myfile:
text=myfile.read()
return text
# --------------------------------------------------------------------
class MatlabFunction:
# --------------------------------------------------------------------
def __init__(self name nature brief body):
self.name = name
self.nature = nature
self.brief = brief
self.body = body
def __str__(self):
return “%s (%s)“ % (self.name self.nature)
# --------------------------------------------------------------------
def findNextFunction(test pos):
# --------------------------------------------------------------------
if pos == 0 and test[0] == ‘%‘:
# This is an M-file with a MEX implementation
return (pos ‘function‘)
m = findFunction.search(test pos)
if m:
return (m.end()+1 m.group(1))
else:
return (None None)
# --------------------------------------------------------------------
def getFunctionDoc(text nature pos):
# --------------------------------------------------------------------
m = getFunction.match(text pos)
if m:
name = m.group(1)
brief = m.group(2).strip()
body = clean(m.group(3))
return (MatlabFunction(name nature brief body) m.end()+1)
else:
return (None pos)
# --------------------------------------------------------------------
def clean(text):
# --------------------------------------------------------------------
return cleanComments.sub(““ text)
# --------------------------------------------------------------------
def extract(text):
# --------------------------------------------------------------------
funcs = []
pos = 0
while True:
(pos nature) = findNextFunction(text pos)
if nature is None: break
(f pos) = getFunctionDoc(text nature pos)
if f:
funcs.append(f)
return funcs
# --------------------------------------------------------------------
class frame(object):
# ------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 119 2017-08-17 16:06 matconvnet-1.0-beta25\.gitattributes
文件 885 2017-08-17 16:06 matconvnet-1.0-beta25\.gitignore
文件 0 2017-08-17 16:06 matconvnet-1.0-beta25\.gitmodules
文件 1562 2017-08-17 16:06 matconvnet-1.0-beta25\CONTRIBUTING.md
文件 741 2017-08-17 16:06 matconvnet-1.0-beta25\COPYING
文件 32022 2017-08-17 16:06 matconvnet-1.0-beta25\doc\blocks.tex
文件 18884 2017-08-17 16:06 matconvnet-1.0-beta25\doc\figures\imnet.pdf
文件 702358 2017-08-17 16:06 matconvnet-1.0-beta25\doc\figures\pepper.pdf
文件 68592 2017-08-17 16:06 matconvnet-1.0-beta25\doc\figures\svg\conv.svg
文件 65347 2017-08-17 16:06 matconvnet-1.0-beta25\doc\figures\svg\convt.svg
文件 6561 2017-08-17 16:06 matconvnet-1.0-beta25\doc\figures\svg\matconvnet-blue.svg
文件 6734 2017-08-17 16:06 matconvnet-1.0-beta25\doc\figures\svg\matconvnet-white.svg
文件 33879 2017-08-17 16:06 matconvnet-1.0-beta25\doc\fundamentals.tex
文件 16551 2017-08-17 16:06 matconvnet-1.0-beta25\doc\geometry.tex
文件 26898 2017-08-17 16:06 matconvnet-1.0-beta25\doc\impl.tex
文件 17869 2017-08-17 16:06 matconvnet-1.0-beta25\doc\intro.tex
文件 4269 2017-08-17 16:06 matconvnet-1.0-beta25\doc\Makefile
文件 4412 2017-08-17 16:06 matconvnet-1.0-beta25\doc\matconvnet-manual.tex
文件 7192 2017-08-17 16:06 matconvnet-1.0-beta25\doc\matdoc.py
文件 11110 2017-08-17 16:06 matconvnet-1.0-beta25\doc\matdocparser.py
文件 4639 2017-08-17 16:06 matconvnet-1.0-beta25\doc\references.bib
文件 10722 2017-08-17 16:06 matconvnet-1.0-beta25\doc\site\docs\about.md
文件 2957 2017-08-17 16:06 matconvnet-1.0-beta25\doc\site\docs\css\fixes.css
文件 3393 2017-08-17 16:06 matconvnet-1.0-beta25\doc\site\docs\developers.md
文件 7480 2017-08-17 16:06 matconvnet-1.0-beta25\doc\site\docs\faq.md
文件 59846 2017-08-17 16:06 matconvnet-1.0-beta25\doc\site\docs\figures\stn-perf.png
文件 32055 2017-08-17 16:06 matconvnet-1.0-beta25\doc\site\docs\figures\stn-samples.png
文件 3336 2017-08-17 16:06 matconvnet-1.0-beta25\doc\site\docs\functions.md
文件 1148 2017-08-17 16:06 matconvnet-1.0-beta25\doc\site\docs\gpu.md
文件 4440 2017-08-17 16:06 matconvnet-1.0-beta25\doc\site\docs\index.md
............此处省略384个文件信息
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论