![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
人工智能
文章平均质量分 83
XianxinMao
这个作者很懒,什么都没留下…
展开
-
简单聊一聊 Python 有哪几方面的应用
Python:首先我们来讲一下 Python 能够做什么,我查了下官网,主要把几个可以应用的方面罗列下:Web and Internet DevelopmentScientific and NumericEducationDesktop GUIsSoftware DevelopmentBusiness Applications对于每个应用方面,下面展开简单说一说。Web and Internet Development:Python 为 Web 开发 提供了多种选择:比如有 Dj原创 2022-01-28 14:31:13 · 1397 阅读 · 0 评论 -
A very simple framework for state-of-the-art Natural Language Processing (NLP) ------ note-2
flairNLP-1Let’s use a pre-trained model for named entity recognition (NER). This model was trained over the English CoNLL-03 task and can recognize 4 different entity types.All you need to do is use the predict() method of the tagger on a sentence. This原创 2021-12-04 22:51:50 · 320 阅读 · 0 评论 -
A very simple framework for state-of-the-art Natural Language Processing (NLP) ------ note-1
flairNLPFlair is:A powerful NLP library. Flair allows you to apply our state-of-the-art natural language processing (NLP) models to your text, such as named entity recognition (NER), part-of-speech tagging (PoS), special support for biomedical data, sen原创 2021-12-04 22:50:55 · 524 阅读 · 0 评论 -
知识图谱笔记(三)
知识图谱笔记(三)知识图谱基础之RDF,RDFS与OWL本文将结合实例,对RDF和RDFS/OWL,这两种知识图谱基础技术作进一步的介绍。其实,RDF、RDFS/OWL是类语义网概念背后通用的基本技术,而知识图谱是其中最广为人知的概念RDF(Resource Description Framework),即资源描述框架,其本质是一个数据模型(Data Model)。它提供了一个统一的标准,用于描述实体/资源。简单来说,就是表示事物的一种方法和手段。RDF形式上表示为SPO三元组,有时候也称为一条语句(原创 2021-11-23 11:06:33 · 288 阅读 · 0 评论 -
知识图谱笔记(二)
知识图谱笔记(二)对于初学者来讲,这个概念很容易和语义网(Semantic Web)相混淆。为了行文一致,除非特别说明,语义网络指Semantic Network,语义网指Semantic Web语义网络是由Quillian于上世纪60年代提出的知识表达模式,其用相互连接的节点和边来表示知识。节点表示对象、概念,边表示节点之间的关系语义网络的优点:容易理解和展示相关概念容易聚类语义网络的缺点:节点和边的值没有标准,完全是由用户自己定义多源数据融合比较困难,因为没有标准无法区分概念节原创 2021-11-22 18:50:06 · 289 阅读 · 0 评论 -
知识图谱笔记(一)
知识图谱笔记(一)为什么需要知识图谱?什么是知识图谱?——KG的前世今生第一个部分介绍我们为什么需要知识图谱,第二个部分介绍知识图谱的相关概念及其形式化表示之所以举这样一个例子,是因为,计算机一直面临着这样的困境——无法获取网络文本的语义信息如同上面的例子,机器看到文本的反应和我们看到罗纳尔多葡萄牙语原名的反应别无二致。为了让机器能够理解文本背后的含义,我们需要对可描述的事物(实体)进行建模,填充它的属性,拓展它和其他事物的联系,即,构建机器的先验知识机器拥有了这样的先验知识,当它再次看到Ron原创 2021-11-22 16:25:32 · 418 阅读 · 0 评论 -
Approximate Nearest Neighbors -----最邻近搜索工具(一)
AnnoyAnnoy (Approximate Nearest Neighbors Oh Yeah) is a C++ library with Python bindings to search for points in space that are close to a given query point. It also creates large read-only file-based data structures that are mmapped into memory so that m原创 2021-11-19 14:26:42 · 707 阅读 · 0 评论 -
Tensorflow Lite Model Maker --- 物体检测篇+笔记
tflite_object_detectionThe Model Maker library uses transfer learning to simplify the process of training a TensorFlow Lite model using a custom dataset. Retraining a TensorFlow Lite model with your own custom dataset reduces the amount of training data r原创 2021-10-09 18:04:46 · 2268 阅读 · 2 评论 -
Tensorflow Lite Model Maker --- 图像分类篇+源码
TFLite_tutorialsThe TensorFlow Lite Model Maker library simplifies the process of adapting and converting a TensorFlow neural-network model to particular input data when deploying this model for on-device ML applications.解读: 此处我们想要得到的是 .tflite 格式的模型,用于在移原创 2021-10-07 21:49:59 · 1096 阅读 · 5 评论 -
Tensorflow Lite 笔记(二)
tensorflow lite model makermetadata which provides a standard for model descriptionsThe default model is EfficientNet-Lite0.Currently, we support several models such as EfficientNet-Lite* models, MobileNetV2, ResNet50 as pre-trained models for image cla原创 2021-10-04 23:08:51 · 270 阅读 · 0 评论 -
Tensorflow Lite 笔记(一)
TensorFlow Litehttps://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/python/TensorFlow Lite Python image classification demo# Get photocurl https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/lite/examples/原创 2021-09-28 21:46:02 · 188 阅读 · 0 评论 -
简单的 OCR 识别验证码 Demo | Keras 实现
How to implement an OCR model using CNNs, RNNs, and CTC loss.This example demonstrates a simple OCR model built with the Functional API. Apart from combining CNN and RNN, it also illustrates how you can instantiate a new layer and use it as an “Endpoint l原创 2021-09-24 17:24:34 · 2691 阅读 · 1 评论 -
论文解读 - An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
目前我认为在分类领域上,最有研究价值的是 ResNet、Transformer。一个是从 Papers with code 的 benchmark 判断,另外一个是对以往 DenseNet、Inception 等网络的实验。深度学习从 2012 年的 AlexNet 开始,然后是 VGG,网络是往更深的方向发展,直到遇到一个问题,网络越深,模型性能开始下降。在排除了梯度消失/爆炸以及过拟合问题之后,发现是网络的优化困难问题。这时候提出的 Residual Learning,也就是 ResNet 解决了该问题原创 2021-09-22 15:28:34 · 1875 阅读 · 2 评论 -
图像分类 - scene classification 研究
首先把数据集的情况放上来,如下图所示:然后再看一下要用到的一些组件,如下图所示:最后一起看下模型的训练流程:最后一起看下训练的结果日志,如下图所示,可以看到 testAcc = 93.86%,此处用的是双卡 2080Ti,比单卡来说,训练的 batch_size 更大,所以准确率略微提升:还有一些地方可以总结下:模型在训练过程当中的指标有 loss 和 accuracy,从长期来看 loss 呈下降趋势,accuracy 呈上升趋势为了加快训练速度,可以在训练过程中不计算 train_a原创 2021-09-22 10:00:53 · 515 阅读 · 0 评论 -
图像分类 - cifar100 实验研究
为了解决 cifar100 val_acc 过低的问题,本质上是过拟合问题,所以特地去 papers with code 网站上看了下 cifar100 benchmark 目前第一名做到了多少,如下图所示,val_cc = 0.96,有点东西哈,所以目前要做的是研究 SAM (Sharpness-Aware Minimization),主要用于提升模型的泛化性。我这里先把拿到的代码跑了下,不过数据集是 cifar10,val_acc = 0.97,我觉得还是很稳的,目前正在跑 cifar100,不过代原创 2021-09-22 09:58:59 · 1777 阅读 · 2 评论 -
flower_photos train analysis
补充思考:flower_photos 数据量比较小,所以 simple_cnn 可以在 trainset 上拟合到 0.99,意思就是数据复杂度 < 模型复杂度添加数据增强的本质是扩大模型见过的数据量想要模型泛化性好,只有一个关键因素,数据量如果让 simple_cnn 在 ImageNet 上做预训练,然后 flower_photos 上做训练,效果会更好吗?从模型的浅层、中层、深层提取到的不同层次抽象特征来看,MobileNet 等网络无疑更加符合这个划分,此处 simple_cnn 过原创 2021-09-22 09:56:44 · 226 阅读 · 0 评论 -
Spatial Transformer Network with image classification
In this tutorial, you will learn how to augment your network using a visual attention mechanism called spatial transformer networks.Spatial transformer networks are a generalization of differentiable attention to any spatial transformation. Spatial trans原创 2021-09-22 09:53:13 · 149 阅读 · 0 评论 -
Introduction to the Keras Tuner
OverviewThe Keras Tuner is a library that helps you pick the optimal set of hyperparameters for your TensorFlow program. The process of selecting the right set of hyperparameters for your machine learning (ML) application is called hyperparameter tuning原创 2021-07-31 21:38:40 · 160 阅读 · 0 评论 -
花朵分类(一)
本次教程的目的是带领大家学会基本的花朵图像分类首先我们来介绍下数据集,该数据集有5种花,一共有3670张图片,分别是daisy、dandelion、roses、sunflowers、tulips,数据存放结构如下所示我们可以展示下roses的几张图片接下来我们需要加载数据集,然后对数据集进行划分,最后形成训练集、验证集、测试集,注意此处的验证集是从训练集切分出来的,比例是8:2对数据进行探索的时候,我们发现原始的像素值是0-255,为了模型训练更稳定以及更容易收敛,我们需要标准化数据原创 2021-07-29 15:02:53 · 872 阅读 · 0 评论 -
教学小视频
教学小视频Pycharm解释器选择 Pycharm解释器选择 Pycharm里打开notebook Pycharm里打开notebook 云平台复制下载链接 云平台复制下载链接原创 2020-11-14 19:19:31 · 157 阅读 · 0 评论 -
Linux系统安装miniconda搭建深度学习环境
1.下载Miniconda我们直接去国内的清华源下载,下面是链接地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/下载完之后,我们开始安装2.安装Miniconda首先进入~/Downloads目录我们完成了安装执行换源操作channels: - defaultsshow_channel_urls: truechannel_alias: https://mirrors.tuna.tsinghua.edu.原创 2020-08-29 14:20:03 · 1180 阅读 · 0 评论 -
第三章yolov4云平台训练步骤
第一种训练方式(长时间训练容易断网)第二种训练方式(适合长时间训练断网也没事)预测运行 python predict.py原创 2020-08-29 14:18:32 · 761 阅读 · 1 评论 -
常见问题解答指南
数据下载百度网盘链接Fashion Mnist数据集链接:https://pan.baidu.com/s/1lV19WNCa1cOaa3EVtwQw6w提取码:vkd8Cifar10数据集链接:https://pan.baidu.com/s/1NM9h0JxTk5EWy37RwCojNw提取码:7vwzconda相关虚拟环境配置文件导出conda env export > conda-gpu.ymlpip freeze > conda-gpu.txt通过配置文件方式创建原创 2020-08-29 14:16:39 · 303 阅读 · 0 评论 -
量化训练
tensorflow量化训练:post-training quantization: 剪枝,稀疏编码,对模型存储体积进行压缩quatization-aware training: forward F32==>int8 映射,backward F32梯度更新,保存模型int8,quantize/dequantize还有一种训练和推理都用int8在训练过程中引入精度带来的误差,然后整个...原创 2019-07-19 13:12:55 · 970 阅读 · 0 评论 -
开发环境
必备软件:VNote(主用+git管理)+cherrytree(备用)+leanote(发博客)pycharm(IDE)+kite(代码自动补全)+virtualenvwrapper(python虚拟环境管理)wiznote(微信文章收藏)gradio(模型网页接口)gitkraken(git管理软件)auto-keras(神经架构搜索)+NNI(超参数搜索)tfslim(teno...原创 2019-07-19 13:12:06 · 208 阅读 · 0 评论 -
命令使用手册
Linux command:nautilus /path/to/that/folder 从终端打开文件夹sudo nvidia-docker run -it --name tf -p 8888:8888 -p 6006:6006 -v /home/mao/data:/home/mao/data 413b9533f92anohup jupyter lab --ip 0.0.0.0 --no-...原创 2019-07-19 13:11:08 · 397 阅读 · 0 评论